ID3D12GraphicsCommandList2::WriteBufferImmediate method

Writes a number of 32-bit immediate values to the specified buffer locations directly from the command stream.

Syntax

void WriteBufferImmediate(
  UINT                                       Count,
  const D3D12_WRITEBUFFERIMMEDIATE_PARAMETER *pParams,
  const D3D12_WRITEBUFFERIMMEDIATE_MODE      *pModes
);

Parameters

Count

The number of D3D12_WRITEBUFFERIMMEDIATE_PARAMETER structures that are pointed to by pParams and pModes.

pParams

The address of an array containing a number of D3D12_WRITEBUFFERIMMEDIATE_PARAMETER structures equal to Count.

pModes

The address of an array containing a number of D3D12_WRITEBUFFERIMMEDIATE_MODE structures equal to Count. The default value is null; passing null causes the system to write all immediate values using D3D12_WRITEBUFFERIMMEDIATE_MODE_DEFAULT.

Return Value

This method does not return a value.

Remarks

WriteBufferImmediate performs Count number of 32-bit writes: one for each value and destination specified in pParams.

The receiving buffer (resource) must be in the D3D12_RESOURCE_STATE_COPY_DEST state to be a valid destination for WriteBufferImmediate.

Requirements

   
Target Platform Windows
Header d3d12.h

See Also

ID3D12GraphicsCommandList2