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

# D3D12XboxGetCachedReadPointer (XBOX One 系列)

> 取得指定 CPU 描述元控制代碼的快取讀取指標。

取得指定 CPU 描述元控制代碼的快取讀取指標。

## 語法

```cpp theme={null}
const void* D3D12XboxGetCachedReadPointer(  
         const D3D12_CPU_DESCRIPTOR_HANDLE& Handle  
)  
```

### 參數

*Handle*   \
類型：D3D12\_CPU\_DESCRIPTOR\_HANDLE&

包含 CPU 描述元控制代碼的 [D3D12\_CPU\_DESCRIPTOR\_HANDLE](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/ns-d3d12-d3d12_cpu_descriptor_handle) 結構。

### 傳回值

類型：const void\*

指定 CPU 描述元控制代碼的快取讀取指標。

## 備註

傳回的指標已快取，並指向唯讀記憶體。寫入傳回的指標將導致存取違規。

描述元的快取檢視會與對傳回之記憶體區段的寫入合併 (write-combined) 寫入同步。

## 需求

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

**程式庫:** 使用 d3d12\_x.h (內嵌函式)

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

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)\
[D3D12\_CPU\_DESCRIPTOR\_HANDLE](https://learn.microsoft.com/en-us/windows/desktop/api/d3d12/ns-d3d12-d3d12_cpu_descriptor_handle)\
[D3D12XboxGetWritePointer](/zh-TW/reference/graphics/d3d12_x/functions/d3d12xboxgetwritepointer)


## Related topics

- [D3D12_CACHED_PIPELINE_STATE](/zh-CN/reference/graphics/d3d12/structs/d3d12_cached_pipeline_state_public.md)
- [GetShapePcmReadPointer](/zh-CN/reference/audio/shapepcmcontext/functions/getshapepcmreadpointer.md)
- [GetShapeDmaReadPointer](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmareadpointer.md)
- [SetShapePcmReadPointer](/zh-CN/reference/audio/shapepcmcontext/functions/setshapepcmreadpointer.md)
- [SetShapeDmaReadPointer](/zh-CN/reference/audio/shapedmacontext/functions/setshapedmareadpointer.md)
