Files
XCEngine/docs/api/rhi/texture/get-depth.md
2026-03-20 02:35:45 +08:00

26 lines
372 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.
# RHITexture::GetDepth
```cpp
virtual uint32_t GetDepth() const = 0;
```
获取纹理深度3D 纹理)。
**参数:**
**返回:** 纹理深度。对于 1D/2D 纹理返回 1
**线程安全:**
**复杂度:** O(1)
**示例:**
```cpp
uint32_t depth = texture->GetDepth();
```
## 相关文档
- [RHITexture 总览](texture.md) - 返回类总览