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

# SetShaderResourceViewPRTLODIndexX (XBOX Series 主機)

> 設定並啟用與此著色器資源檢視相關聯的 PRT LOD 計數器識別碼，或停用此著色器資源檢視的 PRT LOD 追蹤。

設定並啟用與此著色器資源檢視相關聯的 PRT LOD 計數器識別碼，或停用此著色器資源檢視的 PRT LOD 追蹤。

## 語法

```cpp theme={null}
void SetShaderResourceViewPRTLODIndexX(  
    _In_ D3D12_CPU_DESCRIPTOR_HANDLE DestDescriptor,
    _In_ UINT Index  
)  
```

### 參數

*DestDescriptor*   \_In\_\
類型：D3D12\_CPU\_DESCRIPTOR\_HANDLE

指向有效著色器資源檢視描述元的指標。此 API 會修改該描述元。

*Index*   \_In\_\
類型：UINT

使用 0-255 的計數器識別碼值來啟用此描述元的 PRT LOD 追蹤。使用較大的值 (例如 -1) 來停用此描述元的 PRT LOD 追蹤。

## 備註

PRT LOD 硬體最多可以同時追蹤 256 個描述元。

請注意，此 API 會立即更新著色器資源檢視描述元，而不進行任何同步處理。遊戲必須負責將描述元更新與任何進行中的 GPU 工作正確同步。

## 需求

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

**程式庫：** d3d12\_xs.lib\
**支援的平台：** XBOX Series 主機

## 另請參閱

[ID3D12Device8::GetShaderResourceViewPRTLODIndexX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device8/methods/id3d12device8_getshaderresourceviewprtlodindexx)\
[ID3D12GraphicsCommandList6::WritePRTLODStatisticsX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12GraphicsCommandList6/methods/id3d12graphicscommandlist6_writeprtlodstatisticsx)\
[ID3D12Device8](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device8/id3d12device8)


## Related topics

- [SetComputeRootShaderResourceView](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setcomputerootshaderresourceview_public.md)
- [SetGraphicsRootShaderResourceView](/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_setgraphicsrootshaderresourceview_public.md)
