26 lines
336 B
Markdown
26 lines
336 B
Markdown
# RHITexture::GetFormat
|
|
|
|
```cpp
|
|
virtual Format GetFormat() const = 0;
|
|
```
|
|
|
|
获取纹理格式。
|
|
|
|
**参数:** 无
|
|
|
|
**返回:** 纹理格式枚举值
|
|
|
|
**线程安全:** ✅
|
|
|
|
**复杂度:** O(1)
|
|
|
|
**示例:**
|
|
|
|
```cpp
|
|
Format format = texture->GetFormat();
|
|
```
|
|
|
|
## 相关文档
|
|
|
|
- [RHITexture 总览](texture.md) - 返回类总览
|