共用方式為


ID3D12GraphicsCommandList::SetComputeRootShaderResourceView 方法 (d3d12.h)

設定計算根簽章中著色器資源的 CPU 描述元控制碼。

語法

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

參數

[in] RootParameterIndex

類型: UINT

系結的插槽編號。

[in] BufferLocation

類型: D3D12_GPU_VIRTUAL_ADDRESS

緩衝區的 GPU 虛擬位址。 D3D12_GPU_VIRTUAL_ADDRESS是 UINT64 的 typedef'd 別名。

傳回值

需求

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

另請參閱

ID3D12GraphicsCommandList