Files
XCEngine/docs/api/rhi/d3d12/command-allocator/is-ready.md

27 lines
438 B
Markdown
Raw Normal View History

# D3D12CommandAllocator::IsReady
```cpp
bool IsReady() const;
```
检查命令分配器是否准备就绪。
2026-03-20 02:35:45 +08:00
## 示例
```cpp
D3D12CommandAllocator allocator;
if (allocator.Initialize(device)) {
if (allocator.IsReady()) {
// 分配器就绪可以使用
}
}
```
**返回:** 分配器是否准备就绪
**复杂度:** O(1)
## 相关文档
- [D3D12CommandAllocator 总览](command-allocator.md) - 返回类总览