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

# ClearPageMappingsX (XBOX One 系列)

> 清除分頁對應。

清除分頁對應。

## 語法

```cpp theme={null}
HRESULT ClearPageMappingsX(  
         D3D12_GPU_VIRTUAL_ADDRESS DestinationAddress,  
         UINT PageCount,  
         D3D12XBOX_PAGE_MAPPING_FLAGS Flags  
)  
```

### 參數

*DestinationAddress*   \_In\_\
類型：D3D12\_GPU\_VIRTUAL\_ADDRESS

以 **D3D12\_GPU\_VIRTUAL\_ADDRESS** (UINT64) 表示的目的地位址。位址必須以 64KB 對齊。

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

分頁計數。必須是非零的值。

*Flags*   \_In\_\
類型：[D3D12XBOX\_PAGE\_MAPPING\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_page_mapping_flags)

指定分頁對應方式之其他詳細資料的旗標。

### 傳回值

類型：HRESULT

其中一個 [Direct3D 12 傳回碼](https://msdn.microsoft.com/library/windows/desktop/dn706075\(v=vs.85\).aspx)。

## 備註

此函式相當於以 **D3D12XBOX\_PAGE\_MAPPING\_RANGE\_TYPE\_NULL\_PAGES** 的單一分頁對應範圍呼叫 [CopyPageMappingsX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12commandqueue/methods/id3d12commandqueue_copypagemappingsx)。

## 需求

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

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

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

## 另請參閱

[ID3D12CommandQueue](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12commandqueue/id3d12commandqueue)\
[D3D12XBOX\_PAGE\_MAPPING\_RANGE\_TYPE](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_page_mapping_range_type)


## Related topics

- [ClearState](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearstate_public.md)
- [CopyTileMappings](/zh-CN/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_copytilemappings_public.md)
- [ClearUnorderedAccessViewFloat](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearunorderedaccessviewfloat_public.md)
- [ClearUnorderedAccessViewUint](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_clearunorderedaccessviewuint_public.md)
- [D3D12_CLEAR_VALUE](/zh-CN/reference/graphics/d3d12/structs/d3d12_clear_value_public.md)
