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
.