docs: update RHI API docs
This commit is contained in:
22
docs/api/rhi/d3d12/command-allocator/destructor.md
Normal file
22
docs/api/rhi/d3d12/command-allocator/destructor.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# D3D12CommandAllocator::~D3D12CommandAllocator
|
||||
|
||||
```cpp
|
||||
~D3D12CommandAllocator();
|
||||
```
|
||||
|
||||
析构函数,自动调用 [`Shutdown`](shutdown.md) 释放底层 D3D12 资源。
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
{
|
||||
D3D12CommandAllocator allocator;
|
||||
allocator.Initialize(device);
|
||||
// 使用分配器
|
||||
} // 离开作用域时析构函数自动调用 Shutdown
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandAllocator 总览](command-allocator.md) - 返回类总览
|
||||
- [D3D12CommandAllocator::Shutdown](shutdown.md) - 关闭分配器
|
||||
Reference in New Issue
Block a user