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

# GetShaderResourceViewPRTLODIndexX (XBOX Series 主機)

> 如果已啟用 PRT LOD 追蹤，則傳回與此著色器資源檢視相關聯的 PRT LOD 計數器識別碼。

如果已啟用 PRT LOD 追蹤，則傳回與此著色器資源檢視相關聯的 PRT LOD 計數器識別碼。

## 語法

```cpp theme={null}
UINT GetShaderResourceViewPRTLODIndexX(  
         D3D12_CPU_DESCRIPTOR_HANDLE Descriptor  
)  
```

### 參數

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

指向有效著色器資源檢視描述元的指標。

### 傳回值

類型：UINT

如果此描述元已啟用 PRT LOD 追蹤，將會傳回 0-255 的計數器識別碼值。如果此描述元未啟用 PRT LOD 追蹤，或描述元無效，將會傳回 -1 值。

## 備註

所有著色器資源檢視描述元預設都會停用 PRT LOD 追蹤。若要啟用 PRT LOD 追蹤，請使用 [ID3D12Device8::SetShaderResourceViewPRTLODIndexX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device8/methods/id3d12device8_setshaderresourceviewprtlodindexx) API。

## 需求

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

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

## 另請參閱

[ID3D12Device8::SetShaderResourceViewPRTLODIndexX](/zh-TW/reference/graphics/d3d12_xs/interfaces/ID3D12Device8/methods/id3d12device8_setshaderresourceviewprtlodindexx)\
[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

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