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

# ID3D12XboxDmaCommandList::CopyMemoryToMemoryX

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

將資料從一個 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 系列

## 另請參閱

[ID3D12XboxDmaCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12xboxdmacommandlist/id3d12xboxdmacommandlist)


## Related topics

- [NDA topic directory - live Microsoft Learn links](/nda/nda-topic-directory.md)
- [NDA 토픽 디렉터리 - Microsoft Learn 라이브 링크](/ko/nda/nda-topic-directory.md)
- [Répertoire des rubriques NDA : liens actifs vers Microsoft Learn](/fr-CA/nda/nda-topic-directory.md)
- [Diretório de tópicos NDA: links ativos do Microsoft Learn](/pt-BR/nda/nda-topic-directory.md)
- [Directorio de temas NDA: enlaces activos a Microsoft Learn](/es/nda/nda-topic-directory.md)
