pub type Vec4<T> = [T; 4];Expand description
Abstracted 4-element container for macro internal use
Trait Implementations§
Source§impl Formatted for Vec4<F16>
impl Formatted for Vec4<F16>
Source§type Surface = R16_G16_B16_A16
type Surface = R16_G16_B16_A16
Associated surface type.
Source§type View = [<Float as ChannelTyped>::ShaderType; 4]
type View = [<Float as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<I16Norm>
impl Formatted for Vec4<I16Norm>
Source§type Surface = R16_G16_B16_A16
type Surface = R16_G16_B16_A16
Associated surface type.
Source§type View = [<Inorm as ChannelTyped>::ShaderType; 4]
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<I8Norm>
impl Formatted for Vec4<I8Norm>
Source§type Surface = R8_G8_B8_A8
type Surface = R8_G8_B8_A8
Associated surface type.
Source§type View = [<Inorm as ChannelTyped>::ShaderType; 4]
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<U16Norm>
impl Formatted for Vec4<U16Norm>
Source§type Surface = R16_G16_B16_A16
type Surface = R16_G16_B16_A16
Associated surface type.
Source§type View = [<Unorm as ChannelTyped>::ShaderType; 4]
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<U8Norm>
impl Formatted for Vec4<U8Norm>
Source§type Surface = R8_G8_B8_A8
type Surface = R8_G8_B8_A8
Associated surface type.
Source§type View = [<Unorm as ChannelTyped>::ShaderType; 4]
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<f32>
impl Formatted for Vec4<f32>
Source§type Surface = R32_G32_B32_A32
type Surface = R32_G32_B32_A32
Associated surface type.
Source§type View = [<Float as ChannelTyped>::ShaderType; 4]
type View = [<Float as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<i16>
impl Formatted for Vec4<i16>
Source§type Surface = R16_G16_B16_A16
type Surface = R16_G16_B16_A16
Associated surface type.
Source§type View = [<Int as ChannelTyped>::ShaderType; 4]
type View = [<Int as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<i32>
impl Formatted for Vec4<i32>
Source§type Surface = R32_G32_B32_A32
type Surface = R32_G32_B32_A32
Associated surface type.
Source§type View = [<Int as ChannelTyped>::ShaderType; 4]
type View = [<Int as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<i8>
impl Formatted for Vec4<i8>
Source§type Surface = R8_G8_B8_A8
type Surface = R8_G8_B8_A8
Associated surface type.
Source§type View = [<Int as ChannelTyped>::ShaderType; 4]
type View = [<Int as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<u16>
impl Formatted for Vec4<u16>
Source§type Surface = R16_G16_B16_A16
type Surface = R16_G16_B16_A16
Associated surface type.
Source§type View = [<Uint as ChannelTyped>::ShaderType; 4]
type View = [<Uint as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<u32>
impl Formatted for Vec4<u32>
Source§type Surface = R32_G32_B32_A32
type Surface = R32_G32_B32_A32
Associated surface type.
Source§type View = [<Uint as ChannelTyped>::ShaderType; 4]
type View = [<Uint as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
Source§impl Formatted for Vec4<u8>
impl Formatted for Vec4<u8>
Source§type Surface = R8_G8_B8_A8
type Surface = R8_G8_B8_A8
Associated surface type.
Source§type View = [<Uint as ChannelTyped>::ShaderType; 4]
type View = [<Uint as ChannelTyped>::ShaderType; 4]
Shader view type of this format.
Source§fn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.