> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetGraphicsRoot32BitConstants

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

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

## 語法

```cpp theme={null}
void SetGraphicsRoot32BitConstants(
    UINT RootParameterIndex,
    UINT Num32BitValuesToSet,
    const void  pSrcData,
    UINT DestOffsetIn32BitValues
)
```

### 參數

*RootParameterIndex \[in]*\
類型：UINT

用於繫結的位置編號。

*Num32BitValuesToSet \[in]*\
類型：UINT

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

*pSrcData \[in]*\
類型：const void \*

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

*DestOffsetIn32BitValues \[in]*\
類型：UINT

在根簽章中設定群組第一個常數的位移 (以 32 位元值為單位)。

### 傳回值

類型：void

無。

## 需求

**標頭:** d3d12\_xs.h 或 d3d12\_x.h\
**程式庫:** d3d12\_xs.lib 或 d3d12\_x.lib\
**支援的平台**: XBOX Series 主機與 XBOX One 系列

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList/id3d12graphicscommandlist_xs)


## Related topics

- [SetGraphicsRoot32BitConstant](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsroot32bitconstant_public.md)
- [SetComputeRoot32BitConstant](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputeroot32bitconstant_public.md)
- [SetComputeRoot32BitConstants](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputeroot32bitconstants_public.md)
- [SetGraphicsRootConstantBufferView](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootconstantbufferview_public.md)
- [D3D12_ROOT_CONSTANTS](/zh-TW/reference/graphics/d3d12/structs/d3d12_root_constants_public.md)
