logo
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.

Required Associated Types

Encoding of a single pixel. It should match the PixelFormat mapping.

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.

The type of sampler required to access this pixel format.

Required Methods

Implementors