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

# CopyPageMappingsBatchX (XBOX One 系列)

> 以一或多個批次將記憶體分頁範圍對應到 GPU 虛擬位址空間。

以一或多個批次將記憶體分頁範圍對應到 GPU 虛擬位址空間。

## 語法

```cpp theme={null}
HRESULT CopyPageMappingsBatchX(  
         UINT BatchCount,  
         const D3D12XBOX_PAGE_MAPPING_BATCH* pBatches,  
         D3D12_GPU_VIRTUAL_ADDRESS SourcePagePoolAddress,  
         UINT SourcePagePoolPageCount,  
         D3D12XBOX_PAGE_MAPPING_FLAGS Flags  
)  
```

### 參數

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

要對應的批次數目。

*pBatches*   \_In\_reads\_(BatchCount)\
類型：[D3D12XBOX\_PAGE\_MAPPING\_BATCH\*](/zh-TW/reference/graphics/d3d12_x/structs/d3d12xbox_page_mapping_batch)

指向 **D3D12XBOX\_PAGE\_MAPPING\_BATCH** 結構陣列的指標，這些結構指定要對應的批次。陣列的長度由 **BatchCount** 指定。

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

作為分頁範圍對應來源之分頁集區的 64 位元 GPU 虛擬基底位址 (UINT64)。

*SourcePagePoolPageCount*   \_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)。

## 需求

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

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

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

## 另請參閱

[ID3D12CommandQueue](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12commandqueue/id3d12commandqueue)\
[CopyPageMappingsX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12commandqueue/methods/id3d12commandqueue_copypagemappingsx)


## Related topics

- [CopyTileMappings](/zh-CN/reference/graphics/d3d12/interfaces/id3d12commandqueue/methods/id3d12commandqueue_copytilemappings_public.md)
- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [CopyDescriptors](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_copydescriptors_public.md)
- [CopyTiles](/zh-CN/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
- [OpenExistingHeapFromFileMapping](/zh-CN/reference/graphics/d3d12/interfaces/id3d12device3/methods/id3d12device3_openexistingheapfromfilemapping_public.md)
