docs: update RHI API docs
This commit is contained in:
31
docs/api/rhi/d3d12/command-queue/shutdown.md
Normal file
31
docs/api/rhi/d3d12/command-queue/shutdown.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# D3D12CommandQueue::Shutdown
|
||||
|
||||
```cpp
|
||||
void Shutdown() override;
|
||||
```
|
||||
|
||||
关闭命令队列并释放底层 D3D12 资源。调用此方法后,命令队列将变为无效状态。
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**注意:**
|
||||
- 此方法由析构函数自动调用
|
||||
- 调用前应确保没有正在执行命令
|
||||
- 释放底层的 `ID3D12CommandQueue` 接口
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12CommandQueue commandQueue;
|
||||
commandQueue.Initialize(device, CommandQueueType::Direct);
|
||||
|
||||
// 使用命令队列...
|
||||
|
||||
// 关闭并释放资源
|
||||
commandQueue.Shutdown();
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12CommandQueue 总览](command-queue.md) - 返回类总览
|
||||
- [Initialize](initialize.md) - 初始化命令队列
|
||||
Reference in New Issue
Block a user