[][src]Trait rendy::texture::pixel::AsPixel

pub trait AsPixel: 'static + Send + Copy + Sync + Default + Debug {
    const NAME: &'static str;
    const SIZE: u32;
    const FORMAT: Format;
}

AsPixel trait for extracting the underlying data representation information from a Rust data type

Example

struct Rgba([u8; 4]);

Associated Constants

const NAME: &'static str

Name of the pixel type.

const SIZE: u32

Size of the pixel.

const FORMAT: Format

Pixel format.

Loading content...

Implementors

impl AsPixel for Pixel<Abgr, _8, Iscaled>[src]

impl AsPixel for Pixel<Abgr, _8, Inorm>[src]

impl AsPixel for Pixel<Abgr, _8, Uint>[src]

impl AsPixel for Pixel<Abgr, _8, Uscaled>[src]

impl AsPixel for Pixel<Abgr, _8, Int>[src]

impl AsPixel for Pixel<Abgr, _8, Unorm>[src]

impl AsPixel for Pixel<Abgr, _8, Srgb>[src]

impl AsPixel for Pixel<Bgr, _8, Inorm>[src]

impl AsPixel for Pixel<Bgr, _8, Uint>[src]

impl AsPixel for Pixel<Bgr, _8, Uscaled>[src]

impl AsPixel for Pixel<Bgr, _8, Int>[src]

impl AsPixel for Pixel<Bgr, _8, Srgb>[src]

impl AsPixel for Pixel<Bgr, _8, Iscaled>[src]

impl AsPixel for Pixel<Bgr, _8, Unorm>[src]

impl AsPixel for Pixel<Bgra, _8, Srgb>[src]

impl AsPixel for Pixel<Bgra, _8, Uint>[src]

impl AsPixel for Pixel<Bgra, _8, Iscaled>[src]

impl AsPixel for Pixel<Bgra, _8, Unorm>[src]

impl AsPixel for Pixel<Bgra, _8, Int>[src]

impl AsPixel for Pixel<Bgra, _8, Inorm>[src]

impl AsPixel for Pixel<Bgra, _8, Uscaled>[src]

impl AsPixel for Pixel<R, _16, Inorm>[src]

impl AsPixel for Pixel<R, _16, Uscaled>[src]

impl AsPixel for Pixel<R, _16, Uint>[src]

impl AsPixel for Pixel<R, _16, Int>[src]

impl AsPixel for Pixel<R, _16, Unorm>[src]

impl AsPixel for Pixel<R, _16, Iscaled>[src]

impl AsPixel for Pixel<R, _32, Int>[src]

impl AsPixel for Pixel<R, _32, Uint>[src]

impl AsPixel for Pixel<R, _32, Float>[src]

impl AsPixel for Pixel<R, _64, Int>[src]

impl AsPixel for Pixel<R, _64, Uint>[src]

impl AsPixel for Pixel<R, _64, Float>[src]

impl AsPixel for Pixel<R, _8, Srgb>[src]

impl AsPixel for Pixel<R, _8, Uscaled>[src]

impl AsPixel for Pixel<R, _8, Int>[src]

impl AsPixel for Pixel<R, _8, Unorm>[src]

impl AsPixel for Pixel<R, _8, Inorm>[src]

impl AsPixel for Pixel<R, _8, Uint>[src]

impl AsPixel for Pixel<R, _8, Iscaled>[src]

impl AsPixel for Pixel<Rg, _16, Iscaled>[src]

impl AsPixel for Pixel<Rg, _16, Unorm>[src]

impl AsPixel for Pixel<Rg, _16, Uint>[src]

impl AsPixel for Pixel<Rg, _16, Uscaled>[src]

impl AsPixel for Pixel<Rg, _16, Int>[src]

impl AsPixel for Pixel<Rg, _16, Inorm>[src]

impl AsPixel for Pixel<Rg, _32, Int>[src]

impl AsPixel for Pixel<Rg, _32, Uint>[src]

impl AsPixel for Pixel<Rg, _32, Float>[src]

impl AsPixel for Pixel<Rg, _64, Int>[src]

impl AsPixel for Pixel<Rg, _64, Uint>[src]

impl AsPixel for Pixel<Rg, _64, Float>[src]

impl AsPixel for Pixel<Rg, _8, Int>[src]

impl AsPixel for Pixel<Rg, _8, Uint>[src]

impl AsPixel for Pixel<Rg, _8, Uscaled>[src]

impl AsPixel for Pixel<Rg, _8, Unorm>[src]

impl AsPixel for Pixel<Rg, _8, Srgb>[src]

impl AsPixel for Pixel<Rg, _8, Iscaled>[src]

impl AsPixel for Pixel<Rg, _8, Inorm>[src]

impl AsPixel for Pixel<Rgb, _16, Uint>[src]

impl AsPixel for Pixel<Rgb, _16, Inorm>[src]

impl AsPixel for Pixel<Rgb, _16, Int>[src]

impl AsPixel for Pixel<Rgb, _16, Iscaled>[src]

impl AsPixel for Pixel<Rgb, _16, Unorm>[src]

impl AsPixel for Pixel<Rgb, _16, Uscaled>[src]

impl AsPixel for Pixel<Rgb, _32, Int>[src]

impl AsPixel for Pixel<Rgb, _32, Uint>[src]

impl AsPixel for Pixel<Rgb, _32, Float>[src]

impl AsPixel for Pixel<Rgb, _64, Float>[src]

impl AsPixel for Pixel<Rgb, _64, Uint>[src]

impl AsPixel for Pixel<Rgb, _64, Int>[src]

impl AsPixel for Pixel<Rgb, _8, Srgb>[src]

impl AsPixel for Pixel<Rgb, _8, Unorm>[src]

impl AsPixel for Pixel<Rgb, _8, Uint>[src]

impl AsPixel for Pixel<Rgb, _8, Iscaled>[src]

impl AsPixel for Pixel<Rgb, _8, Inorm>[src]

impl AsPixel for Pixel<Rgb, _8, Int>[src]

impl AsPixel for Pixel<Rgb, _8, Uscaled>[src]

impl AsPixel for Pixel<Rgba, _16, Uint>[src]

impl AsPixel for Pixel<Rgba, _16, Unorm>[src]

impl AsPixel for Pixel<Rgba, _16, Iscaled>[src]

impl AsPixel for Pixel<Rgba, _16, Uscaled>[src]

impl AsPixel for Pixel<Rgba, _16, Int>[src]

impl AsPixel for Pixel<Rgba, _16, Inorm>[src]

impl AsPixel for Pixel<Rgba, _32, Float>[src]

impl AsPixel for Pixel<Rgba, _32, Int>[src]

impl AsPixel for Pixel<Rgba, _32, Uint>[src]

impl AsPixel for Pixel<Rgba, _64, Uint>[src]

impl AsPixel for Pixel<Rgba, _64, Float>[src]

impl AsPixel for Pixel<Rgba, _64, Int>[src]

impl AsPixel for Pixel<Rgba, _8, Iscaled>[src]

impl AsPixel for Pixel<Rgba, _8, Uscaled>[src]

impl AsPixel for Pixel<Rgba, _8, Unorm>[src]

impl AsPixel for Pixel<Rgba, _8, Uint>[src]

impl AsPixel for Pixel<Rgba, _8, Inorm>[src]

impl AsPixel for Pixel<Rgba, _8, Srgb>[src]

impl AsPixel for Pixel<Rgba, _8, Int>[src]

Loading content...