[][src]Trait rendy_texture::pixel::AsPixel

pub trait AsPixel: Copy + Debug + Default + Send + Sync + 'static {
    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 Abgr8Sint[src]

impl AsPixel for Abgr8Snorm[src]

impl AsPixel for Abgr8Srgb[src]

impl AsPixel for Abgr8Sscaled[src]

impl AsPixel for Abgr8Uint[src]

impl AsPixel for Abgr8Unorm[src]

impl AsPixel for Abgr8Uscaled[src]

impl AsPixel for Bgr8Sint[src]

impl AsPixel for Bgr8Snorm[src]

impl AsPixel for Bgr8Srgb[src]

impl AsPixel for Bgr8Sscaled[src]

impl AsPixel for Bgr8Uint[src]

impl AsPixel for Bgr8Unorm[src]

impl AsPixel for Bgr8Uscaled[src]

impl AsPixel for Bgra8Sint[src]

impl AsPixel for Bgra8Snorm[src]

impl AsPixel for Bgra8Srgb[src]

impl AsPixel for Bgra8Sscaled[src]

impl AsPixel for Bgra8Uint[src]

impl AsPixel for Bgra8Unorm[src]

impl AsPixel for Bgra8Uscaled[src]

impl AsPixel for R8Sint[src]

impl AsPixel for R8Snorm[src]

impl AsPixel for R8Srgb[src]

impl AsPixel for R8Sscaled[src]

impl AsPixel for R8Uint[src]

impl AsPixel for R8Unorm[src]

impl AsPixel for R8Uscaled[src]

impl AsPixel for R16Sint[src]

impl AsPixel for R16Snorm[src]

impl AsPixel for R16Sscaled[src]

impl AsPixel for R16Uint[src]

impl AsPixel for R16Unorm[src]

impl AsPixel for R16Uscaled[src]

impl AsPixel for R32Sfloat[src]

impl AsPixel for R32Sint[src]

impl AsPixel for R32Uint[src]

impl AsPixel for R64Sfloat[src]

impl AsPixel for R64Sint[src]

impl AsPixel for R64Uint[src]

impl AsPixel for Rg8Sint[src]

impl AsPixel for Rg8Snorm[src]

impl AsPixel for Rg8Srgb[src]

impl AsPixel for Rg8Sscaled[src]

impl AsPixel for Rg8Uint[src]

impl AsPixel for Rg8Unorm[src]

impl AsPixel for Rg8Uscaled[src]

impl AsPixel for Rg16Sint[src]

impl AsPixel for Rg16Snorm[src]

impl AsPixel for Rg16Sscaled[src]

impl AsPixel for Rg16Uint[src]

impl AsPixel for Rg16Unorm[src]

impl AsPixel for Rg16Uscaled[src]

impl AsPixel for Rg32Sfloat[src]

impl AsPixel for Rg32Sint[src]

impl AsPixel for Rg32Uint[src]

impl AsPixel for Rg64Sfloat[src]

impl AsPixel for Rg64Sint[src]

impl AsPixel for Rg64Uint[src]

impl AsPixel for Rgb8Sint[src]

impl AsPixel for Rgb8Snorm[src]

impl AsPixel for Rgb8Srgb[src]

impl AsPixel for Rgb8Sscaled[src]

impl AsPixel for Rgb8Uint[src]

impl AsPixel for Rgb8Unorm[src]

impl AsPixel for Rgb8Uscaled[src]

impl AsPixel for Rgb16Sint[src]

impl AsPixel for Rgb16Snorm[src]

impl AsPixel for Rgb16Sscaled[src]

impl AsPixel for Rgb16Uint[src]

impl AsPixel for Rgb16Unorm[src]

impl AsPixel for Rgb16Uscaled[src]

impl AsPixel for Rgb32Sfloat[src]

impl AsPixel for Rgb32Sint[src]

impl AsPixel for Rgb32Uint[src]

impl AsPixel for Rgb64Sfloat[src]

impl AsPixel for Rgb64Sint[src]

impl AsPixel for Rgb64Uint[src]

impl AsPixel for Rgba8Sint[src]

impl AsPixel for Rgba8Snorm[src]

impl AsPixel for Rgba8Srgb[src]

impl AsPixel for Rgba8Sscaled[src]

impl AsPixel for Rgba8Uint[src]

impl AsPixel for Rgba8Unorm[src]

impl AsPixel for Rgba8Uscaled[src]

impl AsPixel for Rgba16Sint[src]

impl AsPixel for Rgba16Snorm[src]

impl AsPixel for Rgba16Sscaled[src]

impl AsPixel for Rgba16Uint[src]

impl AsPixel for Rgba16Unorm[src]

impl AsPixel for Rgba16Uscaled[src]

impl AsPixel for Rgba32Sfloat[src]

impl AsPixel for Rgba32Sint[src]

impl AsPixel for Rgba32Uint[src]

impl AsPixel for Rgba64Sfloat[src]

impl AsPixel for Rgba64Sint[src]

impl AsPixel for Rgba64Uint[src]

Loading content...