Files
XCEngine/docs/api/rhi/d3d12/texture/get-depth.md
ssdfasd 1358bb0a5a 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 缺少的头文件和类型字段
2026-03-22 02:08:51 +08:00

33 lines
537 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# D3D12Texture::GetDepth
获取纹理深度或数组大小。
```cpp
uint32_t GetDepth() const override;
```
## 参数
## 返回值
`uint32_t` - 纹理深度3D 纹理或数组大小1D/2D 纹理数组)
**线程安全:**
**复杂度:** O(1)
## 示例
```cpp
D3D12Texture texture;
texture.Initialize(device, desc);
uint32_t depth = texture.GetDepth();
```
## 相关文档
- [D3D12Texture 总览](texture.md)
- [GetWidth](get-width.md) - 获取纹理宽度
- [GetHeight](get-height.md) - 获取纹理高度