Share via


ID3D12GraphicsCommandList::SetGraphicsRoot32BitConstants 方法 (d3d12.h)

在圖形根簽章中設定常數群組。

語法

void SetGraphicsRoot32BitConstants(
  [in] UINT       RootParameterIndex,
  [in] UINT       Num32BitValuesToSet,
  [in] const void *pSrcData,
  [in] UINT       DestOffsetIn32BitValues
);

參數

[in] RootParameterIndex

類型: UINT

系結的位置編號。

[in] Num32BitValuesToSet

類型: UINT

在根簽章中設定的常數數目。

[in] pSrcData

類型: const void*

要設定之常數群組的來源資料。

[in] DestOffsetIn32BitValues

類型: UINT

位移在 32 位值中,設定根簽章中群組的第一個常數。

傳回值

需求

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

另請參閱

ID3D12GraphicsCommandList