Trait vulkano::format::AcceptsPixels
[−]
[src]
pub unsafe trait AcceptsPixels<T> { fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>; fn rate(&self) -> u32 { ... } }
Required Methods
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
Returns an error if T
cannot be used as a source of pixels for Self
.
Provided Methods
fn rate(&self) -> u32
The number of T
s which make up a single pixel.
use vulkano::format::{AcceptsPixels, R8G8B8A8Srgb}; assert_eq!(<R8G8B8A8Srgb as AcceptsPixels<[u8; 4]>>::rate(&R8G8B8A8Srgb), 1); assert_eq!(<R8G8B8A8Srgb as AcceptsPixels<u8>>::rate(&R8G8B8A8Srgb), 4);
Panics
May panic if ensure_accepts
would not return Ok(())
.
Implementors
impl AcceptsPixels<u8> for R4G4UnormPack8
impl AcceptsPixels<u16> for R4G4B4A4UnormPack16
impl AcceptsPixels<u16> for B4G4R4A4UnormPack16
impl AcceptsPixels<u16> for R5G6B5UnormPack16
impl AcceptsPixels<u16> for B5G6R5UnormPack16
impl AcceptsPixels<u16> for R5G5B5A1UnormPack16
impl AcceptsPixels<u16> for B5G5R5A1UnormPack16
impl AcceptsPixels<u16> for A1R5G5B5UnormPack16
impl AcceptsPixels<u8> for R8Unorm
impl AcceptsPixels<i8> for R8Snorm
impl AcceptsPixels<u8> for R8Uscaled
impl AcceptsPixels<i8> for R8Sscaled
impl AcceptsPixels<u8> for R8Uint
impl AcceptsPixels<i8> for R8Sint
impl AcceptsPixels<u8> for R8Srgb
impl AcceptsPixels<[u8; 2]> for R8G8Unorm
impl AcceptsPixels<u8> for R8G8Unorm
impl AcceptsPixels<[i8; 2]> for R8G8Snorm
impl AcceptsPixels<i8> for R8G8Snorm
impl AcceptsPixels<[u8; 2]> for R8G8Uscaled
impl AcceptsPixels<u8> for R8G8Uscaled
impl AcceptsPixels<[i8; 2]> for R8G8Sscaled
impl AcceptsPixels<i8> for R8G8Sscaled
impl AcceptsPixels<[u8; 2]> for R8G8Uint
impl AcceptsPixels<u8> for R8G8Uint
impl AcceptsPixels<[i8; 2]> for R8G8Sint
impl AcceptsPixels<i8> for R8G8Sint
impl AcceptsPixels<[u8; 2]> for R8G8Srgb
impl AcceptsPixels<u8> for R8G8Srgb
impl AcceptsPixels<[u8; 3]> for R8G8B8Unorm
impl AcceptsPixels<u8> for R8G8B8Unorm
impl AcceptsPixels<[i8; 3]> for R8G8B8Snorm
impl AcceptsPixels<i8> for R8G8B8Snorm
impl AcceptsPixels<[u8; 3]> for R8G8B8Uscaled
impl AcceptsPixels<u8> for R8G8B8Uscaled
impl AcceptsPixels<[i8; 3]> for R8G8B8Sscaled
impl AcceptsPixels<i8> for R8G8B8Sscaled
impl AcceptsPixels<[u8; 3]> for R8G8B8Uint
impl AcceptsPixels<u8> for R8G8B8Uint
impl AcceptsPixels<[i8; 3]> for R8G8B8Sint
impl AcceptsPixels<i8> for R8G8B8Sint
impl AcceptsPixels<[u8; 3]> for R8G8B8Srgb
impl AcceptsPixels<u8> for R8G8B8Srgb
impl AcceptsPixels<[u8; 3]> for B8G8R8Unorm
impl AcceptsPixels<u8> for B8G8R8Unorm
impl AcceptsPixels<[i8; 3]> for B8G8R8Snorm
impl AcceptsPixels<i8> for B8G8R8Snorm
impl AcceptsPixels<[u8; 3]> for B8G8R8Uscaled
impl AcceptsPixels<u8> for B8G8R8Uscaled
impl AcceptsPixels<[i8; 3]> for B8G8R8Sscaled
impl AcceptsPixels<i8> for B8G8R8Sscaled
impl AcceptsPixels<[u8; 3]> for B8G8R8Uint
impl AcceptsPixels<u8> for B8G8R8Uint
impl AcceptsPixels<[i8; 3]> for B8G8R8Sint
impl AcceptsPixels<i8> for B8G8R8Sint
impl AcceptsPixels<[u8; 3]> for B8G8R8Srgb
impl AcceptsPixels<u8> for B8G8R8Srgb
impl AcceptsPixels<[u8; 4]> for R8G8B8A8Unorm
impl AcceptsPixels<u8> for R8G8B8A8Unorm
impl AcceptsPixels<[i8; 4]> for R8G8B8A8Snorm
impl AcceptsPixels<i8> for R8G8B8A8Snorm
impl AcceptsPixels<[u8; 4]> for R8G8B8A8Uscaled
impl AcceptsPixels<u8> for R8G8B8A8Uscaled
impl AcceptsPixels<[i8; 4]> for R8G8B8A8Sscaled
impl AcceptsPixels<i8> for R8G8B8A8Sscaled
impl AcceptsPixels<[u8; 4]> for R8G8B8A8Uint
impl AcceptsPixels<u8> for R8G8B8A8Uint
impl AcceptsPixels<[i8; 4]> for R8G8B8A8Sint
impl AcceptsPixels<i8> for R8G8B8A8Sint
impl AcceptsPixels<[u8; 4]> for R8G8B8A8Srgb
impl AcceptsPixels<u8> for R8G8B8A8Srgb
impl AcceptsPixels<[u8; 4]> for B8G8R8A8Unorm
impl AcceptsPixels<u8> for B8G8R8A8Unorm
impl AcceptsPixels<[i8; 4]> for B8G8R8A8Snorm
impl AcceptsPixels<i8> for B8G8R8A8Snorm
impl AcceptsPixels<[u8; 4]> for B8G8R8A8Uscaled
impl AcceptsPixels<u8> for B8G8R8A8Uscaled
impl AcceptsPixels<[i8; 4]> for B8G8R8A8Sscaled
impl AcceptsPixels<i8> for B8G8R8A8Sscaled
impl AcceptsPixels<[u8; 4]> for B8G8R8A8Uint
impl AcceptsPixels<u8> for B8G8R8A8Uint
impl AcceptsPixels<[i8; 4]> for B8G8R8A8Sint
impl AcceptsPixels<i8> for B8G8R8A8Sint
impl AcceptsPixels<[u8; 4]> for B8G8R8A8Srgb
impl AcceptsPixels<u8> for B8G8R8A8Srgb
impl AcceptsPixels<[u8; 4]> for A8B8G8R8UnormPack32
impl AcceptsPixels<u8> for A8B8G8R8UnormPack32
impl AcceptsPixels<[i8; 4]> for A8B8G8R8SnormPack32
impl AcceptsPixels<i8> for A8B8G8R8SnormPack32
impl AcceptsPixels<[u8; 4]> for A8B8G8R8UscaledPack32
impl AcceptsPixels<u8> for A8B8G8R8UscaledPack32
impl AcceptsPixels<[i8; 4]> for A8B8G8R8SscaledPack32
impl AcceptsPixels<i8> for A8B8G8R8SscaledPack32
impl AcceptsPixels<[u8; 4]> for A8B8G8R8UintPack32
impl AcceptsPixels<u8> for A8B8G8R8UintPack32
impl AcceptsPixels<[i8; 4]> for A8B8G8R8SintPack32
impl AcceptsPixels<i8> for A8B8G8R8SintPack32
impl AcceptsPixels<[u8; 4]> for A8B8G8R8SrgbPack32
impl AcceptsPixels<u8> for A8B8G8R8SrgbPack32
impl AcceptsPixels<u32> for A2R10G10B10UnormPack32
impl AcceptsPixels<u32> for A2R10G10B10SnormPack32
impl AcceptsPixels<u32> for A2R10G10B10UscaledPack32
impl AcceptsPixels<u32> for A2R10G10B10SscaledPack32
impl AcceptsPixels<u32> for A2R10G10B10UintPack32
impl AcceptsPixels<u32> for A2R10G10B10SintPack32
impl AcceptsPixels<u32> for A2B10G10R10UnormPack32
impl AcceptsPixels<u32> for A2B10G10R10SnormPack32
impl AcceptsPixels<u32> for A2B10G10R10UscaledPack32
impl AcceptsPixels<u32> for A2B10G10R10SscaledPack32
impl AcceptsPixels<u32> for A2B10G10R10UintPack32
impl AcceptsPixels<u32> for A2B10G10R10SintPack32
impl AcceptsPixels<u16> for R16Unorm
impl AcceptsPixels<i16> for R16Snorm
impl AcceptsPixels<u16> for R16Uscaled
impl AcceptsPixels<i16> for R16Sscaled
impl AcceptsPixels<u16> for R16Uint
impl AcceptsPixels<i16> for R16Sint
impl AcceptsPixels<f16> for R16Sfloat
impl AcceptsPixels<[u16; 2]> for R16G16Unorm
impl AcceptsPixels<u16> for R16G16Unorm
impl AcceptsPixels<[i16; 2]> for R16G16Snorm
impl AcceptsPixels<i16> for R16G16Snorm
impl AcceptsPixels<[u16; 2]> for R16G16Uscaled
impl AcceptsPixels<u16> for R16G16Uscaled
impl AcceptsPixels<[i16; 2]> for R16G16Sscaled
impl AcceptsPixels<i16> for R16G16Sscaled
impl AcceptsPixels<[u16; 2]> for R16G16Uint
impl AcceptsPixels<u16> for R16G16Uint
impl AcceptsPixels<[i16; 2]> for R16G16Sint
impl AcceptsPixels<i16> for R16G16Sint
impl AcceptsPixels<[f16; 2]> for R16G16Sfloat
impl AcceptsPixels<f16> for R16G16Sfloat
impl AcceptsPixels<[u16; 3]> for R16G16B16Unorm
impl AcceptsPixels<u16> for R16G16B16Unorm
impl AcceptsPixels<[i16; 3]> for R16G16B16Snorm
impl AcceptsPixels<i16> for R16G16B16Snorm
impl AcceptsPixels<[u16; 3]> for R16G16B16Uscaled
impl AcceptsPixels<u16> for R16G16B16Uscaled
impl AcceptsPixels<[i16; 3]> for R16G16B16Sscaled
impl AcceptsPixels<i16> for R16G16B16Sscaled
impl AcceptsPixels<[u16; 3]> for R16G16B16Uint
impl AcceptsPixels<u16> for R16G16B16Uint
impl AcceptsPixels<[i16; 3]> for R16G16B16Sint
impl AcceptsPixels<i16> for R16G16B16Sint
impl AcceptsPixels<[f16; 3]> for R16G16B16Sfloat
impl AcceptsPixels<f16> for R16G16B16Sfloat
impl AcceptsPixels<[u16; 4]> for R16G16B16A16Unorm
impl AcceptsPixels<u16> for R16G16B16A16Unorm
impl AcceptsPixels<[i16; 4]> for R16G16B16A16Snorm
impl AcceptsPixels<i16> for R16G16B16A16Snorm
impl AcceptsPixels<[u16; 4]> for R16G16B16A16Uscaled
impl AcceptsPixels<u16> for R16G16B16A16Uscaled
impl AcceptsPixels<[i16; 4]> for R16G16B16A16Sscaled
impl AcceptsPixels<i16> for R16G16B16A16Sscaled
impl AcceptsPixels<[u16; 4]> for R16G16B16A16Uint
impl AcceptsPixels<u16> for R16G16B16A16Uint
impl AcceptsPixels<[i16; 4]> for R16G16B16A16Sint
impl AcceptsPixels<i16> for R16G16B16A16Sint
impl AcceptsPixels<[f16; 4]> for R16G16B16A16Sfloat
impl AcceptsPixels<f16> for R16G16B16A16Sfloat
impl AcceptsPixels<u32> for R32Uint
impl AcceptsPixels<i32> for R32Sint
impl AcceptsPixels<f32> for R32Sfloat
impl AcceptsPixels<[u32; 2]> for R32G32Uint
impl AcceptsPixels<u32> for R32G32Uint
impl AcceptsPixels<[i32; 2]> for R32G32Sint
impl AcceptsPixels<i32> for R32G32Sint
impl AcceptsPixels<[f32; 2]> for R32G32Sfloat
impl AcceptsPixels<f32> for R32G32Sfloat
impl AcceptsPixels<[u32; 3]> for R32G32B32Uint
impl AcceptsPixels<u32> for R32G32B32Uint
impl AcceptsPixels<[i32; 3]> for R32G32B32Sint
impl AcceptsPixels<i32> for R32G32B32Sint
impl AcceptsPixels<[f32; 3]> for R32G32B32Sfloat
impl AcceptsPixels<f32> for R32G32B32Sfloat
impl AcceptsPixels<[u32; 4]> for R32G32B32A32Uint
impl AcceptsPixels<u32> for R32G32B32A32Uint
impl AcceptsPixels<[i32; 4]> for R32G32B32A32Sint
impl AcceptsPixels<i32> for R32G32B32A32Sint
impl AcceptsPixels<[f32; 4]> for R32G32B32A32Sfloat
impl AcceptsPixels<f32> for R32G32B32A32Sfloat
impl AcceptsPixels<u64> for R64Uint
impl AcceptsPixels<i64> for R64Sint
impl AcceptsPixels<f64> for R64Sfloat
impl AcceptsPixels<[u64; 2]> for R64G64Uint
impl AcceptsPixels<u64> for R64G64Uint
impl AcceptsPixels<[i64; 2]> for R64G64Sint
impl AcceptsPixels<i64> for R64G64Sint
impl AcceptsPixels<[f64; 2]> for R64G64Sfloat
impl AcceptsPixels<f64> for R64G64Sfloat
impl AcceptsPixels<[u64; 3]> for R64G64B64Uint
impl AcceptsPixels<u64> for R64G64B64Uint
impl AcceptsPixels<[i64; 3]> for R64G64B64Sint
impl AcceptsPixels<i64> for R64G64B64Sint
impl AcceptsPixels<[f64; 3]> for R64G64B64Sfloat
impl AcceptsPixels<f64> for R64G64B64Sfloat
impl AcceptsPixels<[u64; 4]> for R64G64B64A64Uint
impl AcceptsPixels<u64> for R64G64B64A64Uint
impl AcceptsPixels<[i64; 4]> for R64G64B64A64Sint
impl AcceptsPixels<i64> for R64G64B64A64Sint
impl AcceptsPixels<[f64; 4]> for R64G64B64A64Sfloat
impl AcceptsPixels<f64> for R64G64B64A64Sfloat
impl AcceptsPixels<u32> for B10G11R11UfloatPack32
impl AcceptsPixels<u32> for E5B9G9R9UfloatPack32
impl AcceptsPixels<u8> for Format
impl AcceptsPixels<i8> for Format
impl AcceptsPixels<u16> for Format
impl AcceptsPixels<i16> for Format
impl AcceptsPixels<u32> for Format
impl AcceptsPixels<i32> for Format
impl AcceptsPixels<u64> for Format
impl AcceptsPixels<i64> for Format
impl AcceptsPixels<f16> for Format
impl AcceptsPixels<f32> for Format
impl AcceptsPixels<f64> for Format
impl AcceptsPixels<[u8; 1]> for Format
impl AcceptsPixels<[i8; 1]> for Format
impl AcceptsPixels<[u16; 1]> for Format
impl AcceptsPixels<[i16; 1]> for Format
impl AcceptsPixels<[u32; 1]> for Format
impl AcceptsPixels<[i32; 1]> for Format
impl AcceptsPixels<[u64; 1]> for Format
impl AcceptsPixels<[i64; 1]> for Format
impl AcceptsPixels<[f16; 1]> for Format
impl AcceptsPixels<[f32; 1]> for Format
impl AcceptsPixels<[f64; 1]> for Format
impl AcceptsPixels<[u8; 2]> for Format
impl AcceptsPixels<[i8; 2]> for Format
impl AcceptsPixels<[u16; 2]> for Format
impl AcceptsPixels<[i16; 2]> for Format
impl AcceptsPixels<[u32; 2]> for Format
impl AcceptsPixels<[i32; 2]> for Format
impl AcceptsPixels<[u64; 2]> for Format
impl AcceptsPixels<[i64; 2]> for Format
impl AcceptsPixels<[f16; 2]> for Format
impl AcceptsPixels<[f32; 2]> for Format
impl AcceptsPixels<[f64; 2]> for Format
impl AcceptsPixels<[u8; 3]> for Format
impl AcceptsPixels<[i8; 3]> for Format
impl AcceptsPixels<[u16; 3]> for Format
impl AcceptsPixels<[i16; 3]> for Format
impl AcceptsPixels<[u32; 3]> for Format
impl AcceptsPixels<[i32; 3]> for Format
impl AcceptsPixels<[u64; 3]> for Format
impl AcceptsPixels<[i64; 3]> for Format
impl AcceptsPixels<[f16; 3]> for Format
impl AcceptsPixels<[f32; 3]> for Format
impl AcceptsPixels<[f64; 3]> for Format
impl AcceptsPixels<[u8; 4]> for Format
impl AcceptsPixels<[i8; 4]> for Format
impl AcceptsPixels<[u16; 4]> for Format
impl AcceptsPixels<[i16; 4]> for Format
impl AcceptsPixels<[u32; 4]> for Format
impl AcceptsPixels<[i32; 4]> for Format
impl AcceptsPixels<[u64; 4]> for Format
impl AcceptsPixels<[i64; 4]> for Format
impl AcceptsPixels<[f16; 4]> for Format
impl AcceptsPixels<[f32; 4]> for Format
impl AcceptsPixels<[f64; 4]> for Format
impl AcceptsPixels<(u8,)> for Format
impl AcceptsPixels<(i8,)> for Format
impl AcceptsPixels<(u16,)> for Format
impl AcceptsPixels<(i16,)> for Format
impl AcceptsPixels<(u32,)> for Format
impl AcceptsPixels<(i32,)> for Format
impl AcceptsPixels<(u64,)> for Format
impl AcceptsPixels<(i64,)> for Format
impl AcceptsPixels<(f16,)> for Format
impl AcceptsPixels<(f32,)> for Format
impl AcceptsPixels<(f64,)> for Format
impl AcceptsPixels<(u8, u8)> for Format
impl AcceptsPixels<(i8, i8)> for Format
impl AcceptsPixels<(u16, u16)> for Format
impl AcceptsPixels<(i16, i16)> for Format
impl AcceptsPixels<(u32, u32)> for Format
impl AcceptsPixels<(i32, i32)> for Format
impl AcceptsPixels<(u64, u64)> for Format
impl AcceptsPixels<(i64, i64)> for Format
impl AcceptsPixels<(f16, f16)> for Format
impl AcceptsPixels<(f32, f32)> for Format
impl AcceptsPixels<(f64, f64)> for Format
impl AcceptsPixels<(u8, u8, u8)> for Format
impl AcceptsPixels<(i8, i8, i8)> for Format
impl AcceptsPixels<(u16, u16, u16)> for Format
impl AcceptsPixels<(i16, i16, i16)> for Format
impl AcceptsPixels<(u32, u32, u32)> for Format
impl AcceptsPixels<(i32, i32, i32)> for Format
impl AcceptsPixels<(u64, u64, u64)> for Format
impl AcceptsPixels<(i64, i64, i64)> for Format
impl AcceptsPixels<(f16, f16, f16)> for Format
impl AcceptsPixels<(f32, f32, f32)> for Format
impl AcceptsPixels<(f64, f64, f64)> for Format
impl AcceptsPixels<(u8, u8, u8, u8)> for Format
impl AcceptsPixels<(i8, i8, i8, i8)> for Format
impl AcceptsPixels<(u16, u16, u16, u16)> for Format
impl AcceptsPixels<(i16, i16, i16, i16)> for Format
impl AcceptsPixels<(u32, u32, u32, u32)> for Format
impl AcceptsPixels<(i32, i32, i32, i32)> for Format
impl AcceptsPixels<(u64, u64, u64, u64)> for Format
impl AcceptsPixels<(i64, i64, i64, i64)> for Format
impl AcceptsPixels<(f16, f16, f16, f16)> for Format
impl AcceptsPixels<(f32, f32, f32, f32)> for Format
impl AcceptsPixels<(f64, f64, f64, f64)> for Format