docs: update RHI API docs
This commit is contained in:
31
docs/api/rhi/d3d12/depth-stencil-view/shutdown.md
Normal file
31
docs/api/rhi/d3d12/depth-stencil-view/shutdown.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# D3D12DepthStencilView::Shutdown
|
||||
|
||||
```cpp
|
||||
void Shutdown();
|
||||
```
|
||||
|
||||
关闭深度模板视图,释放关联的资源引用。
|
||||
|
||||
**返回:** 无
|
||||
|
||||
**复杂度:** O(1)
|
||||
|
||||
## 说明
|
||||
|
||||
此方法重置内部描述符句柄和资源指针,但不会释放描述符堆本身。调用后,视图对象处于未初始化状态,可以重新调用 `Initialize` 或 `InitializeAt` 进行初始化。
|
||||
|
||||
## 示例
|
||||
|
||||
```cpp
|
||||
D3D12DepthStencilView dsv;
|
||||
dsv.Initialize(device, depthBuffer, nullptr);
|
||||
|
||||
// 使用视图...
|
||||
dsv.Shutdown();
|
||||
```
|
||||
|
||||
## 相关文档
|
||||
|
||||
- [D3D12DepthStencilView 总览](depth-stencil-view.md) - 类总览
|
||||
- [Initialize](initialize.md) - 初始化视图
|
||||
- [InitializeAt](initialize-at.md) - 在指定位置初始化
|
||||
Reference in New Issue
Block a user