Files
XCEngine/docs/api/rhi/d3d12/command-allocator/constructor.md
2026-03-20 02:35:45 +08:00

538 B

D3D12CommandAllocator::D3D12CommandAllocator

D3D12CommandAllocator();

默认构造函数,创建一个未初始化的命令分配器实例。创建后需要调用 Initialize 进行初始化。

示例

D3D12CommandAllocator allocator;
// 此时 allocator 未初始化,需要调用 Initialize
allocator.Initialize(device);

相关文档