545 B
545 B
Texture::GetFormat
TextureFormat GetFormat() const
获取纹理像素格式。
参数: 无
返回: TextureFormat 枚举值
线程安全: ✅
示例:
Texture tex;
tex.Create(1024, 1024, 1, 1,
TextureType::Texture2D,
TextureFormat::RGBA8_UNORM,
nullptr, 0);
TextureFormat format = tex.GetFormat(); // 返回 TextureFormat::RGBA8_UNORM
相关文档
- Texture 总览 - 返回类总览
- TextureFormat 枚举 - 格式枚举说明