33 lines
482 B
Markdown
33 lines
482 B
Markdown
|
|
# D3D12Texture::GetHeight
|
||
|
|
|
||
|
|
获取纹理高度。
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
uint32_t GetHeight() const override;
|
||
|
|
```
|
||
|
|
|
||
|
|
## 参数
|
||
|
|
|
||
|
|
无
|
||
|
|
|
||
|
|
## 返回值
|
||
|
|
|
||
|
|
`uint32_t` - 纹理高度(像素)
|
||
|
|
|
||
|
|
**线程安全:** ❌
|
||
|
|
|
||
|
|
**复杂度:** O(1)
|
||
|
|
|
||
|
|
## 示例
|
||
|
|
|
||
|
|
```cpp
|
||
|
|
D3D12Texture texture;
|
||
|
|
texture.Initialize(device, desc);
|
||
|
|
uint32_t height = texture.GetHeight();
|
||
|
|
```
|
||
|
|
|
||
|
|
## 相关文档
|
||
|
|
|
||
|
|
- [D3D12Texture 总览](texture.md)
|
||
|
|
- [GetWidth](get-width.md) - 获取纹理宽度
|
||
|
|
- [GetDepth](get-depth.md) - 获取纹理深度
|