pub trait SampleType<const FORMAT: u32>: Scalar {
    type Vec2: Default;
    type Vec3: Default;
    type Vec4: Default;
}
Expand description

Marker trait for arguments that accept single scalar values or vectors of scalars. Defines 2-, 3- and 4-component vector types based on the sample type.

Required Associated Types§

source

type Vec2: Default

A 2-component vector of this sample type

source

type Vec3: Default

A 3-component vector of this sample type

source

type Vec4: Default

A 4-component vector of this sample type

Implementations on Foreign Types§

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i64

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i8

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u64

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i16

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i64

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u16

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u64

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u8

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f64

§

type Vec2 = DVec2

§

type Vec3 = DVec3

§

type Vec4 = DVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for f32

§

type Vec2 = Vec2

§

type Vec3 = Vec3

§

type Vec4 = Vec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for i32

§

type Vec2 = IVec2

§

type Vec3 = IVec3

§

type Vec4 = IVec4

source§

impl SampleType<{ ImageFormat::$fmt as u32 }> for u32

§

type Vec2 = UVec2

§

type Vec3 = UVec3

§

type Vec4 = UVec4

Implementors§