docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
# D3D12Texture
|
|
|
|
|
|
|
|
|
|
**命名空间**: `XCEngine::RHI`
|
|
|
|
|
|
|
|
|
|
**描述**: DirectX 12 纹理的 D3D12 实现,继承自 `RHITexture`。
|
|
|
|
|
|
2026-03-19 02:01:18 +08:00
|
|
|
## 公共方法
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|
2026-03-19 02:01:18 +08:00
|
|
|
| 方法 | 描述 |
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|------|------|
|
2026-03-22 02:08:51 +08:00
|
|
|
| [`D3D12Texture`](constructor.md) | 默认构造函数 |
|
|
|
|
|
| [`~D3D12Texture`](destructor.md) | 析构函数 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`Initialize`](initialize.md) | 初始化纹理 |
|
|
|
|
|
| [`InitializeFromExisting`](initialize-from-existing.md) | 从现有资源初始化 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`InitializeFromData`](initialize-from-data.md) | 从数据初始化纹理 |
|
|
|
|
|
| [`InitializeDepthStencil`](initialize-depth-stencil.md) | 初始化深度模板纹理 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`Shutdown`](../../texture/shutdown.md) | 关闭纹理 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`GetResource`](../buffer/get-resource.md) | 获取 D3D12 资源 |
|
|
|
|
|
| [`GetDesc`](../buffer/get-desc.md) | 获取纹理描述符 |
|
|
|
|
|
| [`GetWidth`](../../texture/get-width.md) | 获取纹理宽度 |
|
|
|
|
|
| [`GetHeight`](../../texture/get-height.md) | 获取纹理高度 |
|
|
|
|
|
| [`GetDepth`](../../texture/get-depth.md) | 获取纹理深度 |
|
|
|
|
|
| [`GetMipLevels`](../../texture/get-mip-levels.md) | 获取 Mip 级别 |
|
|
|
|
|
| [`GetArraySize`](get-array-size.md) | 获取数组大小 |
|
|
|
|
|
| [`GetGPUAddress`](../buffer/get-gpu-address.md) | 获取 GPU 地址 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`GetSize`](get-size.md) | 获取纹理大小 |
|
|
|
|
|
| [`GetName`](../../texture/get-name.md) | 获取纹理名称 |
|
|
|
|
|
| [`SetName`](../../texture/set-name.md) | 设置纹理名称 |
|
2026-03-19 02:01:18 +08:00
|
|
|
| [`GetFormat`](../../texture/get-format.md) | 获取纹理格式 |
|
|
|
|
|
| [`GetTextureType`](../../texture/get-texture-type.md) | 获取纹理类型 |
|
2026-03-20 02:35:45 +08:00
|
|
|
| [`GetState`](../../texture/get-state.md) | 获取资源状态 |
|
|
|
|
|
| [`SetState`](../../texture/set-state.md) | 设置资源状态 |
|
|
|
|
|
| [`GetNativeHandle`](../../texture/get-native-handle.md) | 获取原生句柄 |
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
|
|
|
|
|
## 相关文档
|
|
|
|
|
|
2026-03-20 02:35:45 +08:00
|
|
|
- [D3D12 后端概览](../d3d12.md)
|
docs: 重构 API 文档结构并修正源码准确性
- 重组文档目录结构: 每个模块的概述页移动到模块子目录
- 重命名 index.md 为 main.md
- 修正所有模块文档中的错误:
- math: FromEuler→FromEulerAngles, TransformDirection 包含缩放, Box 是 OBB, Color::ToRGBA 格式
- containers: 新增 operator==/!= 文档, 补充 std::hash DJB 算法细节
- core: 修复 types 链接错误
- debug: LogLevelToString 返回大写, timestamp 是秒, Profiler 空实现标注, Windows API vs ANSI
- memory: 修复头文件路径, malloc vs operator new, 新增方法文档
- resources: 修复 Shader/Texture 链接错误
- threading: TaskSystem::Wait 空实现标注, ReadWriteLock 重入描述, LambdaTask 链接
- 验证: fix_links.py 确认 0 个断裂引用
2026-03-19 00:22:30 +08:00
|
|
|
- [RHITexture](../../texture/texture.md) - 抽象纹理接口
|