Trait gfx::format::Formatted
[−]
[src]
pub trait Formatted {
type Surface: SurfaceTyped;
type Channel: ChannelTyped;
type View;
fn get_format() -> Format { ... }
}Compile-time full format trait.
Associated Types
type Surface: SurfaceTyped
Associated surface type.
type Channel: ChannelTyped
Associated channel type.
type View
Shader view type of this format.
Provided Methods
fn get_format() -> Format
Return the run-time value of the type.
Implementations on Foreign Types
impl Formatted for [f32; 2][src]
type Surface = R32_G32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16_A16, Unorm)[src]
type Surface = R16_G16_B16_A16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16_A16, Uint)[src]
type Surface = R16_G16_B16_A16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R5_G5_B5_A1, Unorm)[src]
type Surface = R5_G5_B5_A1
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8_G8_B8_A8, Inorm)[src]
type Surface = R8_G8_B8_A8
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16, Float)[src]
type Surface = R16
type Channel = Float
type View = <Float as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R16_G16, Float)[src]
type Surface = R16_G16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [U8Norm; 4][src]
type Surface = R8_G8_B8_A8
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32, Float)[src]
type Surface = R32
type Channel = Float
type View = <Float as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32, Float)[src]
type Surface = R32_G32_B32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [U8Norm; 2][src]
type Surface = R8_G8
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R8_G8, Int)[src]
type Surface = R8_G8
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R5_G6_B5, Unorm)[src]
type Surface = R5_G6_B5
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [i32; 3][src]
type Surface = R32_G32_B32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [u8; 2][src]
type Surface = R8_G8
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16, Inorm)[src]
type Surface = R16_G16_B16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [i8; 4][src]
type Surface = R8_G8_B8_A8
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32, Uint)[src]
type Surface = R32
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [i16; 4][src]
type Surface = R16_G16_B16_A16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16, Unorm)[src]
type Surface = R16_G16_B16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (D32, Float)[src]
type Surface = D32
type Channel = Float
type View = <Float as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R16_G16, Inorm)[src]
type Surface = R16_G16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16, Uint)[src]
type Surface = R16_G16_B16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (D24, Unorm)[src]
type Surface = D24
type Channel = Unorm
type View = <Unorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R8, Int)[src]
type Surface = R8
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [U16Norm; 4][src]
type Surface = R16_G16_B16_A16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8_G8_B8_A8, Unorm)[src]
type Surface = R8_G8_B8_A8
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32_G32, Float)[src]
type Surface = R32_G32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [I8Norm; 2][src]
type Surface = R8_G8
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16, Inorm)[src]
type Surface = R16
type Channel = Inorm
type View = <Inorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for i16[src]
type Surface = R16
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R8, Uint)[src]
type Surface = R8
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R8_G8, Unorm)[src]
type Surface = R8_G8
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [f32; 3][src]
type Surface = R32_G32_B32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [i16; 2][src]
type Surface = R16_G16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (D24_S8, Unorm)[src]
type Surface = D24_S8
type Channel = Unorm
type View = <Unorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [i32; 4][src]
type Surface = R32_G32_B32_A32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16, Int)[src]
type Surface = R16_G16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16, Unorm)[src]
type Surface = R16
type Channel = Unorm
type View = <Unorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R16_G16, Uint)[src]
type Surface = R16_G16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for i8[src]
type Surface = R8
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [I16Norm; 2][src]
type Surface = R16_G16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R11_G11_B10, Unorm)[src]
type Surface = R11_G11_B10
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8_G8_B8_A8, Int)[src]
type Surface = R8_G8_B8_A8
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for [u32; 4][src]
type Surface = R32_G32_B32_A32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for [u32; 2][src]
type Surface = R32_G32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16_A16, Float)[src]
type Surface = R16_G16_B16_A16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16, Int)[src]
type Surface = R16_G16_B16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [I16Norm; 3][src]
type Surface = R16_G16_B16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (D16, Unorm)[src]
type Surface = D16
type Channel = Unorm
type View = <Unorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [u16; 2][src]
type Surface = R16_G16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [f32; 4][src]
type Surface = R32_G32_B32_A32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for [F16; 2][src]
type Surface = R16_G16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16_A16, Inorm)[src]
type Surface = R16_G16_B16_A16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8_G8, Uint)[src]
type Surface = R8_G8
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (D24_S8, Uint)[src]
type Surface = D24_S8
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R16_G16, Unorm)[src]
type Surface = R16_G16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R4_G4_B4_A4, Unorm)[src]
type Surface = R4_G4_B4_A4
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R10_G10_B10_A2, Unorm)[src]
type Surface = R10_G10_B10_A2
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8, Inorm)[src]
type Surface = R8
type Channel = Inorm
type View = <Inorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R8_G8_B8_A8, Uint)[src]
type Surface = R8_G8_B8_A8
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32_A32, Uint)[src]
type Surface = R32_G32_B32_A32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32, Uint)[src]
type Surface = R32_G32_B32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (R16, Uint)[src]
type Surface = R16
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [u8; 4][src]
type Surface = R8_G8_B8_A8
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32_A32, Float)[src]
type Surface = R32_G32_B32_A32
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16_A16, Int)[src]
type Surface = R16_G16_B16_A16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16_G16_B16, Float)[src]
type Surface = R16_G16_B16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [u16; 3][src]
type Surface = R16_G16_B16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (R32_G32, Uint)[src]
type Surface = R32_G32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for u16[src]
type Surface = R16
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R11_G11_B10, Float)[src]
type Surface = R11_G11_B10
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R16, Int)[src]
type Surface = R16
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R32_G32, Int)[src]
type Surface = R32_G32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [u16; 4][src]
type Surface = R16_G16_B16_A16
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32, Int)[src]
type Surface = R32_G32_B32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (R4_G4, Unorm)[src]
type Surface = R4_G4
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for (R8, Unorm)[src]
type Surface = R8
type Channel = Unorm
type View = <Unorm as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [i32; 2][src]
type Surface = R32_G32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [i16; 3][src]
type Surface = R16_G16_B16
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (R8_G8, Inorm)[src]
type Surface = R8_G8
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [I16Norm; 4][src]
type Surface = R16_G16_B16_A16
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for (R8_G8_B8_A8, Srgb)[src]
type Surface = R8_G8_B8_A8
type Channel = Srgb
type View = [<Srgb as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for [U16Norm; 2][src]
type Surface = R16_G16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for [u32; 3][src]
type Surface = R32_G32_B32
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [F16; 3][src]
type Surface = R16_G16_B16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for (R32, Int)[src]
type Surface = R32
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [i8; 2][src]
type Surface = R8_G8
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 2]
fn get_format() -> Format[src]
impl Formatted for u8[src]
type Surface = R8
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R32_G32_B32_A32, Int)[src]
type Surface = R32_G32_B32_A32
type Channel = Int
type View = [<Int as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for u32[src]
type Surface = R32
type Channel = Uint
type View = <Uint as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [F16; 4][src]
type Surface = R16_G16_B16_A16
type Channel = Float
type View = [<Float as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for i32[src]
type Surface = R32
type Channel = Int
type View = <Int as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for [U16Norm; 3][src]
type Surface = R16_G16_B16
type Channel = Unorm
type View = [<Unorm as ChannelTyped>::ShaderType; 3]
fn get_format() -> Format[src]
impl Formatted for [I8Norm; 4][src]
type Surface = R8_G8_B8_A8
type Channel = Inorm
type View = [<Inorm as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
impl Formatted for f32[src]
type Surface = R32
type Channel = Float
type View = <Float as ChannelTyped>::ShaderType
fn get_format() -> Format[src]
impl Formatted for (R10_G10_B10_A2, Uint)[src]
type Surface = R10_G10_B10_A2
type Channel = Uint
type View = [<Uint as ChannelTyped>::ShaderType; 4]
fn get_format() -> Format[src]
Implementors
impl Formatted for U16Norm type Surface = R16; type Channel = Unorm; type View = <Unorm as ChannelTyped>::ShaderType;impl Formatted for I16Norm type Surface = R16; type Channel = Inorm; type View = <Inorm as ChannelTyped>::ShaderType;impl Formatted for I8Norm type Surface = R8; type Channel = Inorm; type View = <Inorm as ChannelTyped>::ShaderType;impl Formatted for U8Norm type Surface = R8; type Channel = Unorm; type View = <Unorm as ChannelTyped>::ShaderType;impl Formatted for F16 type Surface = R16; type Channel = Float; type View = <Float as ChannelTyped>::ShaderType;