> ## 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.

# SetComputeShaderLimitsX (XBOX One 系列)

> 設定計算著色器限制，包括作用中的著色器單元、波 (wave) 與執行緒群組屬性，以及要使用的 SIMD 走訪演算法。

設定計算著色器限制，包括作用中的著色器單元、波 (wave) 與執行緒群組屬性，以及要使用的單一指令多重資料 (SIMD) 走訪演算法。

## 語法

```cpp theme={null}
void SetComputeShaderLimitsX(  
         const D3D12XBOX_COMPUTE_SHADER_LIMITS_DESC* pShaderLimits  
)  
```

### 參數

*pShaderLimits*   \_In\_opt\_\
類型：[D3D12XBOX\_COMPUTE\_SHADER\_LIMITS\_DESC\*](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_compute_shader_limits_desc)

指向 **D3D12XBOX\_COMPUTE\_SHADER\_LIMITS\_DESC** 結構的指標，該結構描述計算著色器的限制。

### 傳回值

類型：void

## 備註

**SetComputeShaderLimitsX** 用於覆寫目前設定之管線狀態物件 (PSO) 所建立的著色器限制。覆寫的限制會持續有效，直到重設 PSO 或設定新的 PSO 為止；這包括 [ExecuteIndirect](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-executeindirect) 所參考的任何 PSO。

**SetComputeShaderLimitsX** 無法錄製到命令套件組合中。

## 需求

**標頭：** d3d12\_x.h

**程式庫：** d3d12\_x.lib

**支援的平台：** XBOX One 系列

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)\
[SetGraphicsShaderLimitsX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsshaderlimitsx)


## Related topics

- [SetComputeRootShaderResourceView](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootshaderresourceview_public.md)
- [SetComputeRootSignature](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootsignature_public.md)
- [SetComputeRoot32BitConstant](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputeroot32bitconstant_public.md)
- [SetComputeRoot32BitConstants](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputeroot32bitconstants_public.md)
- [SetComputeRootDescriptorTable](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootdescriptortable_public.md)
