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

# NopX (XBOX One 系列)

> 將指定位元組數的無作業填補新增至目前的命令清單。

將指定位元組數的無作業填補新增至目前的命令清單。

## 語法

```cpp theme={null}
void NopX(  
         UINT SizeBytes  
)  
```

### 參數

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

指定填補量 (以位元組為單位)。必須是 4 的倍數、大於零且小於 64 KB。

### 傳回值

類型：void

## 備註

此 API 主要用於搭配 [ExecuteIndirectBundleX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/methods/id3d12graphicscommandlist_executeindirectbundlex) 來自行建置套件組合 (Build-Your-Own-Bundles)。它可用來對齊命令緩衝區資料以提升 CPU 或 GPU 效率，或允許在命令緩衝區串流中內嵌 GPU 會忽略的中繼資料。以此方式使用時可能會產生些許額外負荷，因為 GPU 命令處理器以每個時脈 0.5 個 DWORD 的速度讀取命令緩衝區。

## 需求

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

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

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

## 另請參閱

[ID3D12GraphicsCommandList](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12graphicscommandlist/id3d12graphicscommandlist)\
[CreateCommandListX](/zh-TW/reference/graphics/d3d12_x/interfaces/id3d12device/methods/id3d12device_createcommandlistx)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XBOX One 與 XBOX Series X|S GDK 工具](/zh-TW/tools/tools-console/tools-sdk.md)
- [XBOX 遊戲開發文件](/zh-TW/index.md)
- [跨世代遊戲開發](/zh-TW/build/console-features/cross-gen/gc-cross-gen-toc.md)
- [套件 (傳統體驗)](/zh-TW/publishing/game-publishing/concepts/packages-overview.md)
