- 修复 texture/dtor.md 和 enums/enums.md 的错误链接 - 重命名 texture/ctor.md → constructor.md, texture/dtor.md → destructor.md - 创建 command-list, fence, device, query-heap, sampler 的 constructor/destructor 文档 - 创建 D3D12Texture 缺失的 16 个方法文档 - 创建 D3D12CommandList 缺失的 12 个 internal 方法文档 - 补充 shader-resource-view 缺少的头文件和类型字段
43 lines
648 B
Markdown
43 lines
648 B
Markdown
# D3D12Texture::~D3D12Texture
|
|
|
|
## 函数签名
|
|
|
|
```cpp
|
|
~D3D12Texture() override;
|
|
```
|
|
|
|
## 中文描述
|
|
|
|
析构函数,调用 `Shutdown` 释放资源并销毁 D3D12 资源对象。
|
|
|
|
## 参数
|
|
|
|
无
|
|
|
|
## 返回值
|
|
|
|
无
|
|
|
|
## 线程安全
|
|
|
|
非线程安全,请在所有 GPU 操作完成后销毁对象。
|
|
|
|
## 复杂度
|
|
|
|
O(n) - 取决于资源释放时间
|
|
|
|
## 示例
|
|
|
|
```cpp
|
|
{
|
|
D3D12Texture texture;
|
|
texture.Initialize(device, desc);
|
|
// ... 使用 texture ...
|
|
} // 超出作用域时自动调用析构函数,释放资源
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [D3D12Texture](texture.md) - 类总览
|
|
- [Shutdown](../../../texture/shutdown.md) - 关闭纹理
|