ID3D12GraphicsCommandList::SetGraphicsRootConstantBufferView method (d3d12.h)

Sets a CPU descriptor handle for the constant buffer in the graphics root signature.

Syntax

void SetGraphicsRootConstantBufferView(
  [in] UINT                      RootParameterIndex,
  [in] D3D12_GPU_VIRTUAL_ADDRESS BufferLocation
);

Parameters

[in] RootParameterIndex

Type: UINT

The slot number for binding.

[in] BufferLocation

Type: D3D12_GPU_VIRTUAL_ADDRESS

The GPU virtual address of the constant buffer. D3D12_GPU_VIRTUAL_ADDRESS is a typedef'd alias of UINT64.

Return value

None

Requirements

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3d12.lib
DLL D3d12.dll

See also

ID3D12GraphicsCommandList