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

# ID3D12GraphicsCommandList::CopyMemoryToMemoryX

> ID3D12GraphicsCommandList::CopyMemoryToMemoryX (XBOX One 系列主機) — 將資料從一個 GPU 虛擬位址複製到另一個。

將資料從一個 GPU 虛擬位址複製到另一個。

## 語法

```cpp theme={null}
void CopyMemoryToMemoryX(  
         D3D12_GPU_VIRTUAL_ADDRESS Destination,  
         D3D12_GPU_VIRTUAL_ADDRESS Source,  
         UINT64 SizeBytes,  
         D3D12XBOX_COPY_FLAGS Flags  
)  
```

### 參數

*Destination*   \
類型：[D3D12\_GPU\_VIRTUAL\_ADDRESS](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12_gpu_virtual_address)

要複製到的位址。

*Source*   \
類型：[D3D12\_GPU\_VIRTUAL\_ADDRESS](https://learn.microsoft.com/en-us/windows/win32/direct3d12/d3d12_gpu_virtual_address)

要從中複製的位址。

*SizeBytes*   \
類型：UINT64

要複製的記憶體大小 (以位元組為單位)。

*Flags*   \
類型：[D3D12XBOX\_COPY\_FLAGS](/zh-TW/reference/graphics/d3d12_x/enums/d3d12xbox_copy_flags)

**D3D12XBOX\_COPY\_FLAGS** 列舉常數的位元 OR 組合，指定複製記憶體的方式。

### 傳回值

類型：void

## 需求

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

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

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

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)


## Related topics

- [D3D12_TILE_COPY_FLAGS](/zh-TW/reference/graphics/d3d12/enums/d3d12_tile_copy_flags_public.md)
- [CopyTiles](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copytiles_public.md)
- [CopyBufferRegion](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_copybufferregion_public.md)
- [D3D12_CPU_DESCRIPTOR_HANDLE](/zh-TW/reference/graphics/d3d12/structs/d3d12_cpu_descriptor_handle_public.md)
- [ID3D12GraphicsCommandList1](/zh-TW/reference/graphics/d3d12/interfaces/id3d12graphicscommandlist1/id3d12graphicscommandlist1_public.md)
