docs: 修复 D3D12 后端 API 文档问题

- 修复 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 缺少的头文件和类型字段
This commit is contained in:
2026-03-22 02:08:51 +08:00
parent 2432a646ce
commit 1358bb0a5a
43 changed files with 1264 additions and 4 deletions

View File

@@ -0,0 +1,35 @@
# D3D12QueryHeap::D3D12QueryHeap
构造函数,创建一个空的 D3D12QueryHeap 对象。
```cpp
D3D12QueryHeap();
```
## 参数
## 返回值
**线程安全:** 非线程安全
**复杂度:** O(1)
## 示例
```cpp
#include "XCEngine/RHI/D3D12/D3D12QueryHeap.h"
D3D12QueryHeap queryHeap;
// 需要调用 Initialize 进行初始化
queryHeap.Initialize(device, QueryType::Timestamp, 1024);
```
## 相关文档
- [D3D12QueryHeap 总览](query-heap.md)
- [Initialize](initialize.md) - 初始化查询堆
- [Shutdown](shutdown.md) - 关闭查询堆

View File

@@ -0,0 +1,36 @@
# D3D12QueryHeap::~D3D12QueryHeap
析构函数,销毁 D3D12QueryHeap 对象。
```cpp
~D3D12QueryHeap();
```
## 参数
## 返回值
**线程安全:** 非线程安全,请在所有 GPU 操作完成后销毁对象
**复杂度:** O(n) - 取决于资源释放时间
## 示例
```cpp
#include "XCEngine/RHI/D3D12/D3D12QueryHeap.h"
{
D3D12QueryHeap queryHeap;
queryHeap.Initialize(device, QueryType::Timestamp, 1024);
// ... 使用 queryHeap ...
} // 超出作用域时自动调用析构函数
```
## 相关文档
- [D3D12QueryHeap 总览](query-heap.md)
- [Shutdown](shutdown.md) - 关闭查询堆