Add support for Rgb9e5Ufloat textures (#6781)
# Objective - Support textures in `Rgb9e5Ufloat` format. ## Solution - Add `TextureFormatPixelInfo` for `Rgb9e5Ufloat`. Tested this with a `Rgb9e5Ufloat` encoded KTX2 texture.
This commit is contained in:
parent
7963bb9ab3
commit
295faa02fc
@ -533,6 +533,7 @@ impl TextureFormatPixelInfo for TextureFormat {
|
||||
| TextureFormat::Depth32Float => 4,
|
||||
|
||||
// special cases
|
||||
TextureFormat::Rgb9e5Ufloat => 4,
|
||||
TextureFormat::Rgb10a2Unorm => 4,
|
||||
TextureFormat::Rg11b10Float => 4,
|
||||
TextureFormat::Depth24Plus => 3, // FIXME is this correct?
|
||||
@ -581,7 +582,8 @@ impl TextureFormatPixelInfo for TextureFormat {
|
||||
| TextureFormat::Rgba32Float => 4,
|
||||
|
||||
// special cases
|
||||
TextureFormat::Rgb10a2Unorm
|
||||
TextureFormat::Rgb9e5Ufloat
|
||||
| TextureFormat::Rgb10a2Unorm
|
||||
| TextureFormat::Rg11b10Float
|
||||
| TextureFormat::Depth32Float
|
||||
| TextureFormat::Depth24Plus
|
||||
|
||||
Loading…
Reference in New Issue
Block a user