docs: update RHI API docs
This commit is contained in:
27
docs/api/rhi/d3d12/command-allocator/shutdown.md
Normal file
27
docs/api/rhi/d3d12/command-allocator/shutdown.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# D3D12CommandAllocator::Shutdown
|
||||
|
||||
```cpp
|
||||
void Shutdown();
|
||||
```
|
||||
|
||||
关闭 D3D12 命令分配器,释放底层 D3D12 资源。此方法通常不需要显式调用,析构函数会自动执行。
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12CommandAllocator allocator;
|
||||
if (allocator.Initialize(device)) {
|
||||
// 使用分配器
|
||||
allocator.Shutdown(); // 显式关闭
|
||||
}
|
||||
// 或者依靠析构函数自动关闭
|
||||
```
|
||||
|
||||
## 复杂度
|
||||
|
||||
O(1)
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandAllocator 总览](command-allocator.md) - 返回类总览
|
||||
- [D3D12CommandAllocator::Initialize](initialize.md) - 初始化分配器
|
||||
Reference in New Issue
Block a user