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

# ID3D12CommandAllocator (介面內容)

> 代表 GPU 命令的儲存體配置。

代表 GPU 命令的儲存體配置。

## 語法

```cpp theme={null}
class ID3D12CommandAllocator : public ID3D12Pageable  
```

## 公用方法

## 方法

| 方法 | 描述 |
| - | - |
| [SetAllocatorCallbackX](/zh-TW/reference/graphics/d3d12_x/interfaces/ID3D12CommandAllocator/methods/id3d12commandallocator_setallocatorcallbackx) | 為命令配置器設定配置回呼函式。 |

## 備註

此介面是 [ID3D12CommandAllocator](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nn-d3d12-id3d12commandallocator) 介面的 XBOX One 擴充功能。除了 Direct3D 12 參考中列出的函式之外，此介面還包含此處記載的 XBOX One 擴充方法。如需 **ID3D12CommandAllocator** 介面的詳細資訊，請參閱 Direct3D 12 參考。

## 需求

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

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

## 另請參閱

[d3d12\_x](/zh-TW/reference/graphics/d3d12_x/d3d12_x_members)\
[CreateCommandAllocator](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12device-createcommandallocator)


## Related topics

- [ID3D12CommandAllocator::Reset](/reference/graphics/d3d12/interfaces/id3d12commandallocator/methods/id3d12commandallocator_reset_public.md)
- [CreateCommandAllocator](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_createcommandallocator_public.md)
