Trait luminance::pixel::Pixel [−][src]
pub unsafe trait Pixel { type Encoding: Copy; type RawEncoding: Copy; type SamplerType: SamplerType; fn pixel_format() -> PixelFormat; }
Expand description
Reify a static pixel format at runtime.
Associated Types
Encoding of a single pixel. It should match the PixelFormat
mapping.
type RawEncoding: Copy
type RawEncoding: Copy
Raw encoding of a single pixel; i.e. that is, encoding of underlying values in contiguous
texture memory, without taking into account channels. It should match the PixelFormat
mapping.
type SamplerType: SamplerType
type SamplerType: SamplerType
The type of sampler required to access this pixel format.
Required methods
fn pixel_format() -> PixelFormat
fn pixel_format() -> PixelFormat
Reify to PixelFormat
.