ID3D12GraphicsCommandList::SetComputeRoot32BitConstant 方法 (d3d12.h)

在計算根簽章中設定常數。

語法

void SetComputeRoot32BitConstant(
  [in] UINT RootParameterIndex,
  [in] UINT SrcData,
  [in] UINT DestOffsetIn32BitValues
);

參數

[in] RootParameterIndex

類型: UINT

系結的插槽編號。

[in] SrcData

類型: UINT

要設定之常數的源數據。

[in] DestOffsetIn32BitValues

類型: UINT

以 32 位值表示的位移,以在根簽章中設定常數。

傳回值

規格需求

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

另請參閱

ID3D12GraphicsCommandList