rendy_texture::pixel

Trait AsPixel

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

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

§Example

struct Rgba([u8; 4]);

Required Associated Constants§

Source

const NAME: &'static str

Name of the pixel type.

Source

const SIZE: u32

Size of the pixel.

Source

const FORMAT: Format

Pixel format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AsPixel for Abgr8Sint

Source§

const NAME: &'static str = "Abgr8Sint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Sint

Source§

impl AsPixel for Abgr8Snorm

Source§

const NAME: &'static str = "Abgr8Snorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Snorm

Source§

impl AsPixel for Abgr8Srgb

Source§

const NAME: &'static str = "Abgr8Srgb"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Srgb

Source§

impl AsPixel for Abgr8Sscaled

Source§

const NAME: &'static str = "Abgr8Sscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Sscaled

Source§

impl AsPixel for Abgr8Uint

Source§

const NAME: &'static str = "Abgr8Uint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Uint

Source§

impl AsPixel for Abgr8Unorm

Source§

const NAME: &'static str = "Abgr8Unorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Unorm

Source§

impl AsPixel for Abgr8Uscaled

Source§

const NAME: &'static str = "Abgr8Uscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Abgr8Uscaled

Source§

impl AsPixel for Bgr8Sint

Source§

const NAME: &'static str = "Bgr8Sint"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Sint

Source§

impl AsPixel for Bgr8Snorm

Source§

const NAME: &'static str = "Bgr8Snorm"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Snorm

Source§

impl AsPixel for Bgr8Srgb

Source§

const NAME: &'static str = "Bgr8Srgb"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Srgb

Source§

impl AsPixel for Bgr8Sscaled

Source§

const NAME: &'static str = "Bgr8Sscaled"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Sscaled

Source§

impl AsPixel for Bgr8Uint

Source§

const NAME: &'static str = "Bgr8Uint"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Uint

Source§

impl AsPixel for Bgr8Unorm

Source§

const NAME: &'static str = "Bgr8Unorm"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Unorm

Source§

impl AsPixel for Bgr8Uscaled

Source§

const NAME: &'static str = "Bgr8Uscaled"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgr8Uscaled

Source§

impl AsPixel for Bgra8Sint

Source§

const NAME: &'static str = "Bgra8Sint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Sint

Source§

impl AsPixel for Bgra8Snorm

Source§

const NAME: &'static str = "Bgra8Snorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Snorm

Source§

impl AsPixel for Bgra8Srgb

Source§

const NAME: &'static str = "Bgra8Srgb"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Srgb

Source§

impl AsPixel for Bgra8Sscaled

Source§

const NAME: &'static str = "Bgra8Sscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Sscaled

Source§

impl AsPixel for Bgra8Uint

Source§

const NAME: &'static str = "Bgra8Uint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Uint

Source§

impl AsPixel for Bgra8Unorm

Source§

const NAME: &'static str = "Bgra8Unorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Unorm

Source§

impl AsPixel for Bgra8Uscaled

Source§

const NAME: &'static str = "Bgra8Uscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Bgra8Uscaled

Source§

impl AsPixel for R8Sint

Source§

const NAME: &'static str = "R8Sint"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Sint

Source§

impl AsPixel for R8Snorm

Source§

const NAME: &'static str = "R8Snorm"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Snorm

Source§

impl AsPixel for R8Srgb

Source§

const NAME: &'static str = "R8Srgb"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Srgb

Source§

impl AsPixel for R8Sscaled

Source§

const NAME: &'static str = "R8Sscaled"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Sscaled

Source§

impl AsPixel for R8Uint

Source§

const NAME: &'static str = "R8Uint"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Uint

Source§

impl AsPixel for R8Unorm

Source§

const NAME: &'static str = "R8Unorm"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Unorm

Source§

impl AsPixel for R8Uscaled

Source§

const NAME: &'static str = "R8Uscaled"

Source§

const SIZE: u32 = 1u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R8Uscaled

Source§

impl AsPixel for R16Sint

Source§

const NAME: &'static str = "R16Sint"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Sint

Source§

impl AsPixel for R16Snorm

Source§

const NAME: &'static str = "R16Snorm"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Snorm

Source§

impl AsPixel for R16Sscaled

Source§

const NAME: &'static str = "R16Sscaled"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Sscaled

Source§

impl AsPixel for R16Uint

Source§

const NAME: &'static str = "R16Uint"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Uint

Source§

impl AsPixel for R16Unorm

Source§

const NAME: &'static str = "R16Unorm"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Unorm

Source§

impl AsPixel for R16Uscaled

Source§

const NAME: &'static str = "R16Uscaled"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R16Uscaled

Source§

impl AsPixel for R32Sfloat

Source§

const NAME: &'static str = "R32Sfloat"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R32Sfloat

Source§

impl AsPixel for R32Sint

Source§

const NAME: &'static str = "R32Sint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R32Sint

Source§

impl AsPixel for R32Uint

Source§

const NAME: &'static str = "R32Uint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R32Uint

Source§

impl AsPixel for R64Sfloat

Source§

const NAME: &'static str = "R64Sfloat"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R64Sfloat

Source§

impl AsPixel for R64Sint

Source§

const NAME: &'static str = "R64Sint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R64Sint

Source§

impl AsPixel for R64Uint

Source§

const NAME: &'static str = "R64Uint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::R64Uint

Source§

impl AsPixel for Rg8Sint

Source§

const NAME: &'static str = "Rg8Sint"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Sint

Source§

impl AsPixel for Rg8Snorm

Source§

const NAME: &'static str = "Rg8Snorm"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Snorm

Source§

impl AsPixel for Rg8Srgb

Source§

const NAME: &'static str = "Rg8Srgb"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Srgb

Source§

impl AsPixel for Rg8Sscaled

Source§

const NAME: &'static str = "Rg8Sscaled"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Sscaled

Source§

impl AsPixel for Rg8Uint

Source§

const NAME: &'static str = "Rg8Uint"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Uint

Source§

impl AsPixel for Rg8Unorm

Source§

const NAME: &'static str = "Rg8Unorm"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Unorm

Source§

impl AsPixel for Rg8Uscaled

Source§

const NAME: &'static str = "Rg8Uscaled"

Source§

const SIZE: u32 = 2u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg8Uscaled

Source§

impl AsPixel for Rg16Sint

Source§

const NAME: &'static str = "Rg16Sint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Sint

Source§

impl AsPixel for Rg16Snorm

Source§

const NAME: &'static str = "Rg16Snorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Snorm

Source§

impl AsPixel for Rg16Sscaled

Source§

const NAME: &'static str = "Rg16Sscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Sscaled

Source§

impl AsPixel for Rg16Uint

Source§

const NAME: &'static str = "Rg16Uint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Uint

Source§

impl AsPixel for Rg16Unorm

Source§

const NAME: &'static str = "Rg16Unorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Unorm

Source§

impl AsPixel for Rg16Uscaled

Source§

const NAME: &'static str = "Rg16Uscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg16Uscaled

Source§

impl AsPixel for Rg32Sfloat

Source§

const NAME: &'static str = "Rg32Sfloat"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg32Sfloat

Source§

impl AsPixel for Rg32Sint

Source§

const NAME: &'static str = "Rg32Sint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg32Sint

Source§

impl AsPixel for Rg32Uint

Source§

const NAME: &'static str = "Rg32Uint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg32Uint

Source§

impl AsPixel for Rg64Sfloat

Source§

const NAME: &'static str = "Rg64Sfloat"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg64Sfloat

Source§

impl AsPixel for Rg64Sint

Source§

const NAME: &'static str = "Rg64Sint"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg64Sint

Source§

impl AsPixel for Rg64Uint

Source§

const NAME: &'static str = "Rg64Uint"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rg64Uint

Source§

impl AsPixel for Rgb8Sint

Source§

const NAME: &'static str = "Rgb8Sint"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Sint

Source§

impl AsPixel for Rgb8Snorm

Source§

const NAME: &'static str = "Rgb8Snorm"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Snorm

Source§

impl AsPixel for Rgb8Srgb

Source§

const NAME: &'static str = "Rgb8Srgb"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Srgb

Source§

impl AsPixel for Rgb8Sscaled

Source§

const NAME: &'static str = "Rgb8Sscaled"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Sscaled

Source§

impl AsPixel for Rgb8Uint

Source§

const NAME: &'static str = "Rgb8Uint"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Uint

Source§

impl AsPixel for Rgb8Unorm

Source§

const NAME: &'static str = "Rgb8Unorm"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Unorm

Source§

impl AsPixel for Rgb8Uscaled

Source§

const NAME: &'static str = "Rgb8Uscaled"

Source§

const SIZE: u32 = 3u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb8Uscaled

Source§

impl AsPixel for Rgb16Sint

Source§

const NAME: &'static str = "Rgb16Sint"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Sint

Source§

impl AsPixel for Rgb16Snorm

Source§

const NAME: &'static str = "Rgb16Snorm"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Snorm

Source§

impl AsPixel for Rgb16Sscaled

Source§

const NAME: &'static str = "Rgb16Sscaled"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Sscaled

Source§

impl AsPixel for Rgb16Uint

Source§

const NAME: &'static str = "Rgb16Uint"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Uint

Source§

impl AsPixel for Rgb16Unorm

Source§

const NAME: &'static str = "Rgb16Unorm"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Unorm

Source§

impl AsPixel for Rgb16Uscaled

Source§

const NAME: &'static str = "Rgb16Uscaled"

Source§

const SIZE: u32 = 6u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb16Uscaled

Source§

impl AsPixel for Rgb32Sfloat

Source§

const NAME: &'static str = "Rgb32Sfloat"

Source§

const SIZE: u32 = 12u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb32Sfloat

Source§

impl AsPixel for Rgb32Sint

Source§

const NAME: &'static str = "Rgb32Sint"

Source§

const SIZE: u32 = 12u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb32Sint

Source§

impl AsPixel for Rgb32Uint

Source§

const NAME: &'static str = "Rgb32Uint"

Source§

const SIZE: u32 = 12u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb32Uint

Source§

impl AsPixel for Rgb64Sfloat

Source§

const NAME: &'static str = "Rgb64Sfloat"

Source§

const SIZE: u32 = 24u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb64Sfloat

Source§

impl AsPixel for Rgb64Sint

Source§

const NAME: &'static str = "Rgb64Sint"

Source§

const SIZE: u32 = 24u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb64Sint

Source§

impl AsPixel for Rgb64Uint

Source§

const NAME: &'static str = "Rgb64Uint"

Source§

const SIZE: u32 = 24u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgb64Uint

Source§

impl AsPixel for Rgba8Sint

Source§

const NAME: &'static str = "Rgba8Sint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Sint

Source§

impl AsPixel for Rgba8Snorm

Source§

const NAME: &'static str = "Rgba8Snorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Snorm

Source§

impl AsPixel for Rgba8Srgb

Source§

const NAME: &'static str = "Rgba8Srgb"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Srgb

Source§

impl AsPixel for Rgba8Sscaled

Source§

const NAME: &'static str = "Rgba8Sscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Sscaled

Source§

impl AsPixel for Rgba8Uint

Source§

const NAME: &'static str = "Rgba8Uint"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Uint

Source§

impl AsPixel for Rgba8Unorm

Source§

const NAME: &'static str = "Rgba8Unorm"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Unorm

Source§

impl AsPixel for Rgba8Uscaled

Source§

const NAME: &'static str = "Rgba8Uscaled"

Source§

const SIZE: u32 = 4u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba8Uscaled

Source§

impl AsPixel for Rgba16Sint

Source§

const NAME: &'static str = "Rgba16Sint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Sint

Source§

impl AsPixel for Rgba16Snorm

Source§

const NAME: &'static str = "Rgba16Snorm"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Snorm

Source§

impl AsPixel for Rgba16Sscaled

Source§

const NAME: &'static str = "Rgba16Sscaled"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Sscaled

Source§

impl AsPixel for Rgba16Uint

Source§

const NAME: &'static str = "Rgba16Uint"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Uint

Source§

impl AsPixel for Rgba16Unorm

Source§

const NAME: &'static str = "Rgba16Unorm"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Unorm

Source§

impl AsPixel for Rgba16Uscaled

Source§

const NAME: &'static str = "Rgba16Uscaled"

Source§

const SIZE: u32 = 8u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba16Uscaled

Source§

impl AsPixel for Rgba32Sfloat

Source§

const NAME: &'static str = "Rgba32Sfloat"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba32Sfloat

Source§

impl AsPixel for Rgba32Sint

Source§

const NAME: &'static str = "Rgba32Sint"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba32Sint

Source§

impl AsPixel for Rgba32Uint

Source§

const NAME: &'static str = "Rgba32Uint"

Source§

const SIZE: u32 = 16u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba32Uint

Source§

impl AsPixel for Rgba64Sfloat

Source§

const NAME: &'static str = "Rgba64Sfloat"

Source§

const SIZE: u32 = 32u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba64Sfloat

Source§

impl AsPixel for Rgba64Sint

Source§

const NAME: &'static str = "Rgba64Sint"

Source§

const SIZE: u32 = 32u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba64Sint

Source§

impl AsPixel for Rgba64Uint

Source§

const NAME: &'static str = "Rgba64Uint"

Source§

const SIZE: u32 = 32u32

Source§

const FORMAT: Format = rendy_core::hal::format::Format::Rgba64Uint