docs: update RHI API docs

This commit is contained in:
2026-03-20 02:35:45 +08:00
parent ea756c0177
commit 070b444f8f
501 changed files with 13493 additions and 2022 deletions

View 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) - 关闭分配器