ID3D12GraphicsCommandList::SetGraphicsRootShaderResourceView 方法 (d3d12.h)

在圖形根簽章中設定著色器資源的 CPU 描述項控制碼。

語法

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

參數

[in] RootParameterIndex

類型: UINT

系結的位置編號。

[in] BufferLocation

類型: D3D12_GPU_VIRTUAL_ADDRESS

Buffer 的 GPU 虛擬位址。 不支援紋理。 D3D12_GPU_VIRTUAL_ADDRESS是 UINT64 的 typedef'd 別名。

傳回值

需求

   
目標平台 Windows
標頭 d3d12.h
程式庫 D3d12.lib
Dll D3d12.dll

另請參閱

ID3D12GraphicsCommandList