ID3D12GraphicsCommandList::SetGraphicsRootShaderResourceView method

Sets a CPU descriptor handle for the shader resource in the graphics root signature.

Syntax


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

Parameters

RootParameterIndex [in]

Type: UINT

The slot number for binding.

BufferLocation [in]

Type: D3D12_GPU_VIRTUAL_ADDRESS

The GPU virtual address of the Buffer. Textures are not supported. D3D12_GPU_VIRTUAL_ADDRESS is a typedef'd alias of UINT64.

Return value

This method does not return a value.

Requirements

Header

D3d12.h

Library

D3d12.lib

DLL

D3d12.dll

See also

ID3D12GraphicsCommandList

 

 

Show: