Type Definition gfx_core::format::Vec2[][src]

type Vec2<T> = [T; 2];

Abstracted 2-element container for macro internal use

Trait Implementations

impl Formatted for Vec2<u8>[src]

type Surface = R8_G8

Associated surface type.

type Channel = Uint

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<i8>[src]

type Surface = R8_G8

Associated surface type.

type Channel = Int

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<i32>[src]

type Surface = R32_G32

Associated surface type.

type Channel = Int

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<f32>[src]

type Surface = R32_G32

Associated surface type.

type Channel = Float

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<U8Norm>[src]

type Surface = R8_G8

Associated surface type.

type Channel = Unorm

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<I8Norm>[src]

type Surface = R8_G8

Associated surface type.

type Channel = Inorm

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<u16>[src]

type Surface = R16_G16

Associated surface type.

type Channel = Uint

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<i16>[src]

type Surface = R16_G16

Associated surface type.

type Channel = Int

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<U16Norm>[src]

type Surface = R16_G16

Associated surface type.

type Channel = Unorm

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<I16Norm>[src]

type Surface = R16_G16

Associated surface type.

type Channel = Inorm

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<F16>[src]

type Surface = R16_G16

Associated surface type.

type Channel = Float

Associated channel type.

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

Shader view type of this format.

impl Formatted for Vec2<u32>[src]

type Surface = R32_G32

Associated surface type.

type Channel = Uint

Associated channel type.

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

Shader view type of this format.