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
Library D3d12.lib
DLL D3d12.dll

另请参阅

ID3D12GraphicsCommandList