pub fn components(&self) -> usize {
        match *self {
            TextureFormat::RGBA_F32 | TextureFormat::RGBA_F16 | TextureFormat::RGBA_8 => 4,
            TextureFormat::RGB_F32 | TextureFormat::RGB_F16 | TextureFormat::RGB_8 => 3,
            TextureFormat::R_F32 | TextureFormat::R_F16 | TextureFormat::R_8 => 1,
        }
    }
/// The number of components this color format has. For example, `RGB_8` has 3 components.
The number of components this color format has. For example, `RGB_8` has 3 components.
The number of components this color format has . For example ` RGB_8 ` has 3 components .
pub fn components(&self) -> usize {
        match *self {
            TextureFormat::RGBA_F32 | TextureFormat::RGBA_F16 | TextureFormat::RGBA_8 => 4,
            TextureFormat::RGB_F32 | TextureFormat::RGB_F16 | TextureFormat::RGB_8 => 3,
            TextureFormat::R_F32 | TextureFormat::R_F16 | TextureFormat::R_8 => 1,
        }
    }
pub fn components ( & self ) -> usize { match * self { TextureFormat :: RGBA_F32 | TextureFormat :: RGBA_F16 | TextureFormat :: RGBA_8 => 4 , TextureFormat :: RGB_F32 | TextureFormat :: RGB_F16 | TextureFormat :: RGB_8 => 3 , TextureFormat :: R_F32 | TextureFormat :: R_F16 | TextureFormat :: R_8 => 1 , } }
The number of components this color format has.
The number of components this color format has .
&self
&self