- 修复 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 缺少的头文件和类型字段
33 lines
537 B
Markdown
33 lines
537 B
Markdown
# 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) - 获取纹理高度 |