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

# FillMemoryWith128BitValueX (XBOX One 系列)

> 以指定的 128 位元值填入指定範圍的 GPU 記憶體。

以指定的 128 位元值填入指定範圍的 GPU 記憶體。

## 語法

```cpp theme={null}
void FillMemoryWith128BitValueX(  
         D3D12_GPU_VIRTUAL_ADDRESS Destination,  
         UINT64 SizeBytes,  
         UINT Value,  
         D3D12XBOX_COPY_FLAGS Flags  
)  
```

### 參數

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

記憶體中要以 128 位元值填入的基底位址。

*SizeBytes*   \
類型：UINT64

要填入的記憶體大小 (以位元組為單位)。大小必須是 16 個位元組的倍數。

*Value*   \
類型：UINT

要寫入指定記憶體範圍的 128 位元值。

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

控制作業的 **D3D12XBOX\_COPY\_FLAGS** 列舉常數的位元 OR 組合。目前，*Flags* 必須設定為 **D3D12XBOX\_COPY\_FLAG\_NONE**。

### 傳回值

類型：void

## 需求

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

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

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

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)\
[FillMemoryWith32BitValueX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_fillmemorywith32bitvaluex)\
[FillMemoryWith64BitValueX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_fillmemorywith64bitvaluex)


## Related topics

- [D3D12_FILL_MODE](/zh-TW/reference/graphics/d3d12/enums/d3d12_fill_mode_public.md)
- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [GetXmaFrameBitPosition](/zh-TW/reference/audio/xma2defs/functions/getxmaframebitposition.md)
- [GetXmaFrameLengthInBits](/zh-TW/reference/audio/xma2defs/functions/getxmaframelengthinbits.md)
- [GetLastXmaFrameBitPosition](/zh-TW/reference/audio/xma2defs/functions/getlastxmaframebitposition.md)
