27 lines
438 B
Markdown
27 lines
438 B
Markdown
# D3D12CommandAllocator::IsReady
|
|
|
|
```cpp
|
|
bool IsReady() const;
|
|
```
|
|
|
|
检查命令分配器是否准备就绪。
|
|
|
|
## 示例
|
|
|
|
```cpp
|
|
D3D12CommandAllocator allocator;
|
|
if (allocator.Initialize(device)) {
|
|
if (allocator.IsReady()) {
|
|
// 分配器就绪可以使用
|
|
}
|
|
}
|
|
```
|
|
|
|
**返回:** 分配器是否准备就绪
|
|
|
|
**复杂度:** O(1)
|
|
|
|
## 相关文档
|
|
|
|
- [D3D12CommandAllocator 总览](command-allocator.md) - 返回类总览
|