Trait gfx_core::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[src]

Associated surface type.

type Channel: ChannelTyped[src]

Associated channel type.

type View[src]

Shader view type of this format.

Loading content...

Provided methods

fn get_format() -> Format[src]

Return the run-time value of the type.

Loading content...

Implementations on Foreign Types

impl Formatted for (R4_G4, Unorm)[src]

type Surface = R4_G4

type Channel = Unorm

type View = Vec2<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R4_G4_B4_A4, Unorm)[src]

type Surface = R4_G4_B4_A4

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R5_G5_B5_A1, Unorm)[src]

type Surface = R5_G5_B5_A1

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R5_G6_B5, Unorm)[src]

type Surface = R5_G6_B5

type Channel = Unorm

type View = Vec3<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R8, Int)[src]

type Surface = R8

type Channel = Int

type View = Vec1<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R8, Uint)[src]

type Surface = R8

type Channel = Uint

type View = Vec1<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R8, Inorm)[src]

type Surface = R8

type Channel = Inorm

type View = Vec1<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R8, Unorm)[src]

type Surface = R8

type Channel = Unorm

type View = Vec1<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8, Int)[src]

type Surface = R8_G8

type Channel = Int

type View = Vec2<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8, Uint)[src]

type Surface = R8_G8

type Channel = Uint

type View = Vec2<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8, Inorm)[src]

type Surface = R8_G8

type Channel = Inorm

type View = Vec2<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8, Unorm)[src]

type Surface = R8_G8

type Channel = Unorm

type View = Vec2<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8_B8_A8, Int)[src]

type Surface = R8_G8_B8_A8

type Channel = Int

type View = Vec4<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8_B8_A8, Uint)[src]

type Surface = R8_G8_B8_A8

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8_B8_A8, Inorm)[src]

type Surface = R8_G8_B8_A8

type Channel = Inorm

type View = Vec4<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8_B8_A8, Unorm)[src]

type Surface = R8_G8_B8_A8

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R8_G8_B8_A8, Srgb)[src]

type Surface = R8_G8_B8_A8

type Channel = Srgb

type View = Vec4<<Srgb as ChannelTyped>::ShaderType>

impl Formatted for (R10_G10_B10_A2, Uint)[src]

type Surface = R10_G10_B10_A2

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R10_G10_B10_A2, Unorm)[src]

type Surface = R10_G10_B10_A2

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R11_G11_B10, Unorm)[src]

type Surface = R11_G11_B10

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R11_G11_B10, Float)[src]

type Surface = R11_G11_B10

type Channel = Float

type View = Vec4<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R16, Int)[src]

type Surface = R16

type Channel = Int

type View = Vec1<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R16, Uint)[src]

type Surface = R16

type Channel = Uint

type View = Vec1<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R16, Inorm)[src]

type Surface = R16

type Channel = Inorm

type View = Vec1<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R16, Unorm)[src]

type Surface = R16

type Channel = Unorm

type View = Vec1<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R16, Float)[src]

type Surface = R16

type Channel = Float

type View = Vec1<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16, Int)[src]

type Surface = R16_G16

type Channel = Int

type View = Vec2<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16, Uint)[src]

type Surface = R16_G16

type Channel = Uint

type View = Vec2<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16, Inorm)[src]

type Surface = R16_G16

type Channel = Inorm

type View = Vec2<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16, Unorm)[src]

type Surface = R16_G16

type Channel = Unorm

type View = Vec2<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16, Float)[src]

type Surface = R16_G16

type Channel = Float

type View = Vec2<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16, Int)[src]

type Surface = R16_G16_B16

type Channel = Int

type View = Vec3<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16, Uint)[src]

type Surface = R16_G16_B16

type Channel = Uint

type View = Vec3<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16, Inorm)[src]

type Surface = R16_G16_B16

type Channel = Inorm

type View = Vec3<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16, Unorm)[src]

type Surface = R16_G16_B16

type Channel = Unorm

type View = Vec3<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16, Float)[src]

type Surface = R16_G16_B16

type Channel = Float

type View = Vec3<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16_A16, Int)[src]

type Surface = R16_G16_B16_A16

type Channel = Int

type View = Vec4<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16_A16, Uint)[src]

type Surface = R16_G16_B16_A16

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16_A16, Inorm)[src]

type Surface = R16_G16_B16_A16

type Channel = Inorm

type View = Vec4<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16_A16, Unorm)[src]

type Surface = R16_G16_B16_A16

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (R16_G16_B16_A16, Float)[src]

type Surface = R16_G16_B16_A16

type Channel = Float

type View = Vec4<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R32, Int)[src]

type Surface = R32

type Channel = Int

type View = Vec1<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R32, Uint)[src]

type Surface = R32

type Channel = Uint

type View = Vec1<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R32, Float)[src]

type Surface = R32

type Channel = Float

type View = Vec1<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32, Int)[src]

type Surface = R32_G32

type Channel = Int

type View = Vec2<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32, Uint)[src]

type Surface = R32_G32

type Channel = Uint

type View = Vec2<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32, Float)[src]

type Surface = R32_G32

type Channel = Float

type View = Vec2<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32, Int)[src]

type Surface = R32_G32_B32

type Channel = Int

type View = Vec3<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32, Uint)[src]

type Surface = R32_G32_B32

type Channel = Uint

type View = Vec3<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32, Float)[src]

type Surface = R32_G32_B32

type Channel = Float

type View = Vec3<<Float as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32_A32, Int)[src]

type Surface = R32_G32_B32_A32

type Channel = Int

type View = Vec4<<Int as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32_A32, Uint)[src]

type Surface = R32_G32_B32_A32

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (R32_G32_B32_A32, Float)[src]

type Surface = R32_G32_B32_A32

type Channel = Float

type View = Vec4<<Float as ChannelTyped>::ShaderType>

impl Formatted for (B8_G8_R8_A8, Unorm)[src]

type Surface = B8_G8_R8_A8

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (B8_G8_R8_A8, Srgb)[src]

type Surface = B8_G8_R8_A8

type Channel = Srgb

type View = Vec4<<Srgb as ChannelTyped>::ShaderType>

impl Formatted for (D16, Unorm)[src]

type Surface = D16

type Channel = Unorm

type View = Vec1<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (D24, Unorm)[src]

type Surface = D24

type Channel = Unorm

type View = Vec1<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (D24_S8, Unorm)[src]

type Surface = D24_S8

type Channel = Unorm

type View = Vec1<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (D24_S8, Uint)[src]

type Surface = D24_S8

type Channel = Uint

type View = Vec1<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (D32, Float)[src]

type Surface = D32

type Channel = Float

type View = Vec1<<Float as ChannelTyped>::ShaderType>

impl Formatted for (BC1_R8_G8_B8, Int)[src]

type Surface = BC1_R8_G8_B8

type Channel = Int

type View = Vec4<<Int as ChannelTyped>::ShaderType>

impl Formatted for (BC1_R8_G8_B8, Uint)[src]

type Surface = BC1_R8_G8_B8

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (BC1_R8_G8_B8, Inorm)[src]

type Surface = BC1_R8_G8_B8

type Channel = Inorm

type View = Vec4<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (BC1_R8_G8_B8, Unorm)[src]

type Surface = BC1_R8_G8_B8

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (BC1_R8_G8_B8, Srgb)[src]

type Surface = BC1_R8_G8_B8

type Channel = Srgb

type View = Vec4<<Srgb as ChannelTyped>::ShaderType>

impl Formatted for (BC3_R8_G8_B8_A8, Int)[src]

type Surface = BC3_R8_G8_B8_A8

type Channel = Int

type View = Vec4<<Int as ChannelTyped>::ShaderType>

impl Formatted for (BC3_R8_G8_B8_A8, Uint)[src]

type Surface = BC3_R8_G8_B8_A8

type Channel = Uint

type View = Vec4<<Uint as ChannelTyped>::ShaderType>

impl Formatted for (BC3_R8_G8_B8_A8, Inorm)[src]

type Surface = BC3_R8_G8_B8_A8

type Channel = Inorm

type View = Vec4<<Inorm as ChannelTyped>::ShaderType>

impl Formatted for (BC3_R8_G8_B8_A8, Unorm)[src]

type Surface = BC3_R8_G8_B8_A8

type Channel = Unorm

type View = Vec4<<Unorm as ChannelTyped>::ShaderType>

impl Formatted for (BC3_R8_G8_B8_A8, Srgb)[src]

type Surface = BC3_R8_G8_B8_A8

type Channel = Srgb

type View = Vec4<<Srgb as ChannelTyped>::ShaderType>

Loading content...

Implementors

impl Formatted for Vec1<f32>[src]

impl Formatted for Vec1<i8>[src]

impl Formatted for Vec1<i16>[src]

impl Formatted for Vec1<i32>[src]

impl Formatted for Vec1<u8>[src]

impl Formatted for Vec1<u16>[src]

impl Formatted for Vec1<u32>[src]

impl Formatted for Vec1<F16>[src]

impl Formatted for Vec1<I8Norm>[src]

impl Formatted for Vec1<I16Norm>[src]

impl Formatted for Vec1<U8Norm>[src]

impl Formatted for Vec1<U16Norm>[src]

impl Formatted for Vec2<f32>[src]

impl Formatted for Vec2<i8>[src]

impl Formatted for Vec2<i16>[src]

impl Formatted for Vec2<i32>[src]

impl Formatted for Vec2<u8>[src]

impl Formatted for Vec2<u16>[src]

impl Formatted for Vec2<u32>[src]

impl Formatted for Vec2<F16>[src]

impl Formatted for Vec2<I8Norm>[src]

impl Formatted for Vec2<I16Norm>[src]

impl Formatted for Vec2<U8Norm>[src]

impl Formatted for Vec2<U16Norm>[src]

impl Formatted for Vec3<f32>[src]

impl Formatted for Vec3<i16>[src]

impl Formatted for Vec3<i32>[src]

impl Formatted for Vec3<u16>[src]

impl Formatted for Vec3<u32>[src]

impl Formatted for Vec3<F16>[src]

impl Formatted for Vec3<I16Norm>[src]

impl Formatted for Vec3<U16Norm>[src]

impl Formatted for Vec4<f32>[src]

impl Formatted for Vec4<i8>[src]

impl Formatted for Vec4<i16>[src]

impl Formatted for Vec4<i32>[src]

impl Formatted for Vec4<u8>[src]

impl Formatted for Vec4<u16>[src]

impl Formatted for Vec4<u32>[src]

impl Formatted for Vec4<F16>[src]

impl Formatted for Vec4<I8Norm>[src]

impl Formatted for Vec4<I16Norm>[src]

impl Formatted for Vec4<U8Norm>[src]

impl Formatted for Vec4<U16Norm>[src]

Loading content...