pub const fn byte_size(&self) -> u32 {
        match self {
            Self::Uint8x2 | Self::Sint8x2 | Self::Unorm8x2 | Self::Snorm8x2 => 2,
            Self::Uint8x4
            | Self::Sint8x4
            | Self::Unorm8x4
            | Self::Snorm8x4
            | Self::Uint16x2
            | Self::Sint16x2
            | Self::Unorm16x2
            | Self::Snorm16x2
            | Self::Float16x2
            | Self::Float32 => 4,
            Self::Uint16x4
            | Self::Sint16x4
            | Self::Unorm16x4
            | Self::Snorm16x4
            | Self::Float16x4
            | Self::Float32x2 => 8,
            Self::Float32x3 => 12,
            Self::Float32x4 => 16,
        }
    }
/// Returns the byte size of the format.
Returns the byte size of the format.
Returns the byte size of the format .
pub const fn byte_size(&self) -> u32 {
        match self {
            Self::Uint8x2 | Self::Sint8x2 | Self::Unorm8x2 | Self::Snorm8x2 => 2,
            Self::Uint8x4
            | Self::Sint8x4
            | Self::Unorm8x4
            | Self::Snorm8x4
            | Self::Uint16x2
            | Self::Sint16x2
            | Self::Unorm16x2
            | Self::Snorm16x2
            | Self::Float16x2
            | Self::Float32 => 4,
            Self::Uint16x4
            | Self::Sint16x4
            | Self::Unorm16x4
            | Self::Snorm16x4
            | Self::Float16x4
            | Self::Float32x2 => 8,
            Self::Float32x3 => 12,
            Self::Float32x4 => 16,
        }
    }
pub const fn byte_size ( & self ) -> u32 { match self { Self :: Uint8x2 | Self :: Sint8x2 | Self :: Unorm8x2 | Self :: Snorm8x2 => 2 , Self :: Uint8x4 | Self :: Sint8x4 | Self :: Unorm8x4 | Self :: Snorm8x4 | Self :: Uint16x2 | Self :: Sint16x2 | Self :: Unorm16x2 | Self :: Snorm16x2 | Self :: Float16x2 | Self :: Float32 => 4 , Self :: Uint16x4 | Self :: Sint16x4 | Self :: Unorm16x4 | Self :: Snorm16x4 | Self :: Float16x4 | Self :: Float32x2 => 8 , Self :: Float32x3 => 12 , Self :: Float32x4 => 16 , } }
Returns the byte size of the format.
Returns the byte size of the format .
&self
&self