Trait luminance::pixel::Pixel
[−]
[src]
pub trait Pixel { type Encoding; type RawEncoding; fn pixel_format() -> PixelFormat; }
Reify a static pixel format to runtime.
Associated Types
type Encoding
Encoding of a single pixel. It should match the PixelFormat
mapping.
type RawEncoding
Raw encoding of a single pixel; i.e. that is, encoding of underlying values in contiguous
texture memory. It should be match the PixelFormat
mapping.
Required Methods
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.
Implementors
impl Pixel for RGB8UI type Encoding = (u8, u8, u8); type RawEncoding = u8;
impl Pixel for RGBA8UI type Encoding = (u8, u8, u8, u8); type RawEncoding = u8;
impl Pixel for R32F type Encoding = f32; type RawEncoding = f32;
impl Pixel for RGB32F type Encoding = (f32, f32, f32); type RawEncoding = f32;
impl Pixel for RGBA32F type Encoding = (f32, f32, f32, f32); type RawEncoding = f32;
impl Pixel for Depth32F type Encoding = f32; type RawEncoding = f32;