# D3D12Texture::GetDepth 获取纹理深度。 ```cpp uint32_t GetDepth() const override; ``` **返回:** `uint32_t` - 纹理深度(3D纹理)或数组大小 ## 相关文档 - [D3D12Texture 总览](d3d12-texture.md)