docs: update RHI API docs
This commit is contained in:
@@ -6,6 +6,17 @@ bool IsReady() const;
|
||||
|
||||
检查命令分配器是否准备就绪。
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12CommandAllocator allocator;
|
||||
if (allocator.Initialize(device)) {
|
||||
if (allocator.IsReady()) {
|
||||
// 分配器就绪可以使用
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**返回:** 分配器是否准备就绪
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
Reference in New Issue
Block a user