[][src]Enum vulkano::format::Format

#[repr(u32)]
pub enum Format {
    R4G4UnormPack8,
    R4G4B4A4UnormPack16,
    B4G4R4A4UnormPack16,
    R5G6B5UnormPack16,
    B5G6R5UnormPack16,
    R5G5B5A1UnormPack16,
    B5G5R5A1UnormPack16,
    A1R5G5B5UnormPack16,
    R8Unorm,
    R8Snorm,
    R8Uscaled,
    R8Sscaled,
    R8Uint,
    R8Sint,
    R8Srgb,
    R8G8Unorm,
    R8G8Snorm,
    R8G8Uscaled,
    R8G8Sscaled,
    R8G8Uint,
    R8G8Sint,
    R8G8Srgb,
    R8G8B8Unorm,
    R8G8B8Snorm,
    R8G8B8Uscaled,
    R8G8B8Sscaled,
    R8G8B8Uint,
    R8G8B8Sint,
    R8G8B8Srgb,
    B8G8R8Unorm,
    B8G8R8Snorm,
    B8G8R8Uscaled,
    B8G8R8Sscaled,
    B8G8R8Uint,
    B8G8R8Sint,
    B8G8R8Srgb,
    R8G8B8A8Unorm,
    R8G8B8A8Snorm,
    R8G8B8A8Uscaled,
    R8G8B8A8Sscaled,
    R8G8B8A8Uint,
    R8G8B8A8Sint,
    R8G8B8A8Srgb,
    B8G8R8A8Unorm,
    B8G8R8A8Snorm,
    B8G8R8A8Uscaled,
    B8G8R8A8Sscaled,
    B8G8R8A8Uint,
    B8G8R8A8Sint,
    B8G8R8A8Srgb,
    A8B8G8R8UnormPack32,
    A8B8G8R8SnormPack32,
    A8B8G8R8UscaledPack32,
    A8B8G8R8SscaledPack32,
    A8B8G8R8UintPack32,
    A8B8G8R8SintPack32,
    A8B8G8R8SrgbPack32,
    A2R10G10B10UnormPack32,
    A2R10G10B10SnormPack32,
    A2R10G10B10UscaledPack32,
    A2R10G10B10SscaledPack32,
    A2R10G10B10UintPack32,
    A2R10G10B10SintPack32,
    A2B10G10R10UnormPack32,
    A2B10G10R10SnormPack32,
    A2B10G10R10UscaledPack32,
    A2B10G10R10SscaledPack32,
    A2B10G10R10UintPack32,
    A2B10G10R10SintPack32,
    R16Unorm,
    R16Snorm,
    R16Uscaled,
    R16Sscaled,
    R16Uint,
    R16Sint,
    R16Sfloat,
    R16G16Unorm,
    R16G16Snorm,
    R16G16Uscaled,
    R16G16Sscaled,
    R16G16Uint,
    R16G16Sint,
    R16G16Sfloat,
    R16G16B16Unorm,
    R16G16B16Snorm,
    R16G16B16Uscaled,
    R16G16B16Sscaled,
    R16G16B16Uint,
    R16G16B16Sint,
    R16G16B16Sfloat,
    R16G16B16A16Unorm,
    R16G16B16A16Snorm,
    R16G16B16A16Uscaled,
    R16G16B16A16Sscaled,
    R16G16B16A16Uint,
    R16G16B16A16Sint,
    R16G16B16A16Sfloat,
    R32Uint,
    R32Sint,
    R32Sfloat,
    R32G32Uint,
    R32G32Sint,
    R32G32Sfloat,
    R32G32B32Uint,
    R32G32B32Sint,
    R32G32B32Sfloat,
    R32G32B32A32Uint,
    R32G32B32A32Sint,
    R32G32B32A32Sfloat,
    R64Uint,
    R64Sint,
    R64Sfloat,
    R64G64Uint,
    R64G64Sint,
    R64G64Sfloat,
    R64G64B64Uint,
    R64G64B64Sint,
    R64G64B64Sfloat,
    R64G64B64A64Uint,
    R64G64B64A64Sint,
    R64G64B64A64Sfloat,
    B10G11R11UfloatPack32,
    E5B9G9R9UfloatPack32,
    D16Unorm,
    X8_D24UnormPack32,
    D32Sfloat,
    S8Uint,
    D16Unorm_S8Uint,
    D24Unorm_S8Uint,
    D32Sfloat_S8Uint,
    BC1_RGBUnormBlock,
    BC1_RGBSrgbBlock,
    BC1_RGBAUnormBlock,
    BC1_RGBASrgbBlock,
    BC2UnormBlock,
    BC2SrgbBlock,
    BC3UnormBlock,
    BC3SrgbBlock,
    BC4UnormBlock,
    BC4SnormBlock,
    BC5UnormBlock,
    BC5SnormBlock,
    BC6HUfloatBlock,
    BC6HSfloatBlock,
    BC7UnormBlock,
    BC7SrgbBlock,
    ETC2_R8G8B8UnormBlock,
    ETC2_R8G8B8SrgbBlock,
    ETC2_R8G8B8A1UnormBlock,
    ETC2_R8G8B8A1SrgbBlock,
    ETC2_R8G8B8A8UnormBlock,
    ETC2_R8G8B8A8SrgbBlock,
    EAC_R11UnormBlock,
    EAC_R11SnormBlock,
    EAC_R11G11UnormBlock,
    EAC_R11G11SnormBlock,
    ASTC_4x4UnormBlock,
    ASTC_4x4SrgbBlock,
    ASTC_5x4UnormBlock,
    ASTC_5x4SrgbBlock,
    ASTC_5x5UnormBlock,
    ASTC_5x5SrgbBlock,
    ASTC_6x5UnormBlock,
    ASTC_6x5SrgbBlock,
    ASTC_6x6UnormBlock,
    ASTC_6x6SrgbBlock,
    ASTC_8x5UnormBlock,
    ASTC_8x5SrgbBlock,
    ASTC_8x6UnormBlock,
    ASTC_8x6SrgbBlock,
    ASTC_8x8UnormBlock,
    ASTC_8x8SrgbBlock,
    ASTC_10x5UnormBlock,
    ASTC_10x5SrgbBlock,
    ASTC_10x6UnormBlock,
    ASTC_10x6SrgbBlock,
    ASTC_10x8UnormBlock,
    ASTC_10x8SrgbBlock,
    ASTC_10x10UnormBlock,
    ASTC_10x10SrgbBlock,
    ASTC_12x10UnormBlock,
    ASTC_12x10SrgbBlock,
    ASTC_12x12UnormBlock,
    ASTC_12x12SrgbBlock,
}

An enumeration of all the possible formats.

Variants

R4G4UnormPack8
R4G4B4A4UnormPack16
B4G4R4A4UnormPack16
R5G6B5UnormPack16
B5G6R5UnormPack16
R5G5B5A1UnormPack16
B5G5R5A1UnormPack16
A1R5G5B5UnormPack16
R8Unorm
R8Snorm
R8Uscaled
R8Sscaled
R8Uint
R8Sint
R8Srgb
R8G8Unorm
R8G8Snorm
R8G8Uscaled
R8G8Sscaled
R8G8Uint
R8G8Sint
R8G8Srgb
R8G8B8Unorm
R8G8B8Snorm
R8G8B8Uscaled
R8G8B8Sscaled
R8G8B8Uint
R8G8B8Sint
R8G8B8Srgb
B8G8R8Unorm
B8G8R8Snorm
B8G8R8Uscaled
B8G8R8Sscaled
B8G8R8Uint
B8G8R8Sint
B8G8R8Srgb
R8G8B8A8Unorm
R8G8B8A8Snorm
R8G8B8A8Uscaled
R8G8B8A8Sscaled
R8G8B8A8Uint
R8G8B8A8Sint
R8G8B8A8Srgb
B8G8R8A8Unorm
B8G8R8A8Snorm
B8G8R8A8Uscaled
B8G8R8A8Sscaled
B8G8R8A8Uint
B8G8R8A8Sint
B8G8R8A8Srgb
A8B8G8R8UnormPack32
A8B8G8R8SnormPack32
A8B8G8R8UscaledPack32
A8B8G8R8SscaledPack32
A8B8G8R8UintPack32
A8B8G8R8SintPack32
A8B8G8R8SrgbPack32
A2R10G10B10UnormPack32
A2R10G10B10SnormPack32
A2R10G10B10UscaledPack32
A2R10G10B10SscaledPack32
A2R10G10B10UintPack32
A2R10G10B10SintPack32
A2B10G10R10UnormPack32
A2B10G10R10SnormPack32
A2B10G10R10UscaledPack32
A2B10G10R10SscaledPack32
A2B10G10R10UintPack32
A2B10G10R10SintPack32
R16Unorm
R16Snorm
R16Uscaled
R16Sscaled
R16Uint
R16Sint
R16Sfloat
R16G16Unorm
R16G16Snorm
R16G16Uscaled
R16G16Sscaled
R16G16Uint
R16G16Sint
R16G16Sfloat
R16G16B16Unorm
R16G16B16Snorm
R16G16B16Uscaled
R16G16B16Sscaled
R16G16B16Uint
R16G16B16Sint
R16G16B16Sfloat
R16G16B16A16Unorm
R16G16B16A16Snorm
R16G16B16A16Uscaled
R16G16B16A16Sscaled
R16G16B16A16Uint
R16G16B16A16Sint
R16G16B16A16Sfloat
R32Uint
R32Sint
R32Sfloat
R32G32Uint
R32G32Sint
R32G32Sfloat
R32G32B32Uint
R32G32B32Sint
R32G32B32Sfloat
R32G32B32A32Uint
R32G32B32A32Sint
R32G32B32A32Sfloat
R64Uint
R64Sint
R64Sfloat
R64G64Uint
R64G64Sint
R64G64Sfloat
R64G64B64Uint
R64G64B64Sint
R64G64B64Sfloat
R64G64B64A64Uint
R64G64B64A64Sint
R64G64B64A64Sfloat
B10G11R11UfloatPack32
E5B9G9R9UfloatPack32
D16Unorm
X8_D24UnormPack32
D32Sfloat
S8Uint
D16Unorm_S8Uint
D24Unorm_S8Uint
D32Sfloat_S8Uint
BC1_RGBUnormBlock
BC1_RGBSrgbBlock
BC1_RGBAUnormBlock
BC1_RGBASrgbBlock
BC2UnormBlock
BC2SrgbBlock
BC3UnormBlock
BC3SrgbBlock
BC4UnormBlock
BC4SnormBlock
BC5UnormBlock
BC5SnormBlock
BC6HUfloatBlock
BC6HSfloatBlock
BC7UnormBlock
BC7SrgbBlock
ETC2_R8G8B8UnormBlock
ETC2_R8G8B8SrgbBlock
ETC2_R8G8B8A1UnormBlock
ETC2_R8G8B8A1SrgbBlock
ETC2_R8G8B8A8UnormBlock
ETC2_R8G8B8A8SrgbBlock
EAC_R11UnormBlock
EAC_R11SnormBlock
EAC_R11G11UnormBlock
EAC_R11G11SnormBlock
ASTC_4x4UnormBlock
ASTC_4x4SrgbBlock
ASTC_5x4UnormBlock
ASTC_5x4SrgbBlock
ASTC_5x5UnormBlock
ASTC_5x5SrgbBlock
ASTC_6x5UnormBlock
ASTC_6x5SrgbBlock
ASTC_6x6UnormBlock
ASTC_6x6SrgbBlock
ASTC_8x5UnormBlock
ASTC_8x5SrgbBlock
ASTC_8x6UnormBlock
ASTC_8x6SrgbBlock
ASTC_8x8UnormBlock
ASTC_8x8SrgbBlock
ASTC_10x5UnormBlock
ASTC_10x5SrgbBlock
ASTC_10x6UnormBlock
ASTC_10x6SrgbBlock
ASTC_10x8UnormBlock
ASTC_10x8SrgbBlock
ASTC_10x10UnormBlock
ASTC_10x10SrgbBlock
ASTC_12x10UnormBlock
ASTC_12x10SrgbBlock
ASTC_12x12UnormBlock
ASTC_12x12SrgbBlock

Methods

impl Format[src]

pub fn size(&self) -> Option<usize>[src]

Returns the size in bytes of an element of this format. For block based formats this will be the size of a single block. Returns None if the size is irrelevant.

pub fn block_dimensions(&self) -> (u32, u32)[src]

Returns (width, heigh) of the dimensions for block based formats. For non block formats will return (1,1)

pub fn ty(&self) -> FormatTy[src]

Trait Implementations

impl AcceptsPixels<u8> for Format[src]

impl AcceptsPixels<i8> for Format[src]

impl AcceptsPixels<u16> for Format[src]

impl AcceptsPixels<i16> for Format[src]

impl AcceptsPixels<u32> for Format[src]

impl AcceptsPixels<i32> for Format[src]

impl AcceptsPixels<u64> for Format[src]

impl AcceptsPixels<i64> for Format[src]

impl AcceptsPixels<f16> for Format[src]

impl AcceptsPixels<f32> for Format[src]

impl AcceptsPixels<f64> for Format[src]

impl AcceptsPixels<[u8; 1]> for Format[src]

impl AcceptsPixels<[i8; 1]> for Format[src]

impl AcceptsPixels<[u16; 1]> for Format[src]

impl AcceptsPixels<[i16; 1]> for Format[src]

impl AcceptsPixels<[u32; 1]> for Format[src]

impl AcceptsPixels<[i32; 1]> for Format[src]

impl AcceptsPixels<[u64; 1]> for Format[src]

impl AcceptsPixels<[i64; 1]> for Format[src]

impl AcceptsPixels<[f16; 1]> for Format[src]

impl AcceptsPixels<[f32; 1]> for Format[src]

impl AcceptsPixels<[f64; 1]> for Format[src]

impl AcceptsPixels<[u8; 2]> for Format[src]

impl AcceptsPixels<[i8; 2]> for Format[src]

impl AcceptsPixels<[u16; 2]> for Format[src]

impl AcceptsPixels<[i16; 2]> for Format[src]

impl AcceptsPixels<[u32; 2]> for Format[src]

impl AcceptsPixels<[i32; 2]> for Format[src]

impl AcceptsPixels<[u64; 2]> for Format[src]

impl AcceptsPixels<[i64; 2]> for Format[src]

impl AcceptsPixels<[f16; 2]> for Format[src]

impl AcceptsPixels<[f32; 2]> for Format[src]

impl AcceptsPixels<[f64; 2]> for Format[src]

impl AcceptsPixels<[u8; 3]> for Format[src]

impl AcceptsPixels<[i8; 3]> for Format[src]

impl AcceptsPixels<[u16; 3]> for Format[src]

impl AcceptsPixels<[i16; 3]> for Format[src]

impl AcceptsPixels<[u32; 3]> for Format[src]

impl AcceptsPixels<[i32; 3]> for Format[src]

impl AcceptsPixels<[u64; 3]> for Format[src]

impl AcceptsPixels<[i64; 3]> for Format[src]

impl AcceptsPixels<[f16; 3]> for Format[src]

impl AcceptsPixels<[f32; 3]> for Format[src]

impl AcceptsPixels<[f64; 3]> for Format[src]

impl AcceptsPixels<[u8; 4]> for Format[src]

impl AcceptsPixels<[i8; 4]> for Format[src]

impl AcceptsPixels<[u16; 4]> for Format[src]

impl AcceptsPixels<[i16; 4]> for Format[src]

impl AcceptsPixels<[u32; 4]> for Format[src]

impl AcceptsPixels<[i32; 4]> for Format[src]

impl AcceptsPixels<[u64; 4]> for Format[src]

impl AcceptsPixels<[i64; 4]> for Format[src]

impl AcceptsPixels<[f16; 4]> for Format[src]

impl AcceptsPixels<[f32; 4]> for Format[src]

impl AcceptsPixels<[f64; 4]> for Format[src]

impl AcceptsPixels<(u8,)> for Format[src]

impl AcceptsPixels<(i8,)> for Format[src]

impl AcceptsPixels<(u16,)> for Format[src]

impl AcceptsPixels<(i16,)> for Format[src]

impl AcceptsPixels<(u32,)> for Format[src]

impl AcceptsPixels<(i32,)> for Format[src]

impl AcceptsPixels<(u64,)> for Format[src]

impl AcceptsPixels<(i64,)> for Format[src]

impl AcceptsPixels<(f16,)> for Format[src]

impl AcceptsPixels<(f32,)> for Format[src]

impl AcceptsPixels<(f64,)> for Format[src]

impl AcceptsPixels<(u8, u8)> for Format[src]

impl AcceptsPixels<(i8, i8)> for Format[src]

impl AcceptsPixels<(u16, u16)> for Format[src]

impl AcceptsPixels<(i16, i16)> for Format[src]

impl AcceptsPixels<(u32, u32)> for Format[src]

impl AcceptsPixels<(i32, i32)> for Format[src]

impl AcceptsPixels<(u64, u64)> for Format[src]

impl AcceptsPixels<(i64, i64)> for Format[src]

impl AcceptsPixels<(f16, f16)> for Format[src]

impl AcceptsPixels<(f32, f32)> for Format[src]

impl AcceptsPixels<(f64, f64)> for Format[src]

impl AcceptsPixels<(u8, u8, u8)> for Format[src]

impl AcceptsPixels<(i8, i8, i8)> for Format[src]

impl AcceptsPixels<(u16, u16, u16)> for Format[src]

impl AcceptsPixels<(i16, i16, i16)> for Format[src]

impl AcceptsPixels<(u32, u32, u32)> for Format[src]

impl AcceptsPixels<(i32, i32, i32)> for Format[src]

impl AcceptsPixels<(u64, u64, u64)> for Format[src]

impl AcceptsPixels<(i64, i64, i64)> for Format[src]

impl AcceptsPixels<(f16, f16, f16)> for Format[src]

impl AcceptsPixels<(f32, f32, f32)> for Format[src]

impl AcceptsPixels<(f64, f64, f64)> for Format[src]

impl AcceptsPixels<(u8, u8, u8, u8)> for Format[src]

impl AcceptsPixels<(i8, i8, i8, i8)> for Format[src]

impl AcceptsPixels<(u16, u16, u16, u16)> for Format[src]

impl AcceptsPixels<(i16, i16, i16, i16)> for Format[src]

impl AcceptsPixels<(u32, u32, u32, u32)> for Format[src]

impl AcceptsPixels<(i32, i32, i32, i32)> for Format[src]

impl AcceptsPixels<(u64, u64, u64, u64)> for Format[src]

impl AcceptsPixels<(i64, i64, i64, i64)> for Format[src]

impl AcceptsPixels<(f16, f16, f16, f16)> for Format[src]

impl AcceptsPixels<(f32, f32, f32, f32)> for Format[src]

impl AcceptsPixels<(f64, f64, f64, f64)> for Format[src]

impl FormatDesc for Format[src]

impl PossibleFloatFormatDesc for Format[src]

impl PossibleUintFormatDesc for Format[src]

impl PossibleSintFormatDesc for Format[src]

impl PossibleDepthFormatDesc for Format[src]

impl PossibleStencilFormatDesc for Format[src]

impl PossibleDepthStencilFormatDesc for Format[src]

impl PossibleCompressedFormatDesc for Format[src]

impl PossibleFloatOrCompressedFormatDesc for Format[src]

impl<W> ImageClearValue<<Format as FormatDesc>::ClearValue> for SwapchainImage<W>[src]

impl Eq for Format[src]

impl Clone for Format[src]

impl PartialEq<Format> for Format[src]

impl Copy for Format[src]

impl Hash for Format[src]

impl Debug for Format[src]

Auto Trait Implementations

impl Send for Format

impl Unpin for Format

impl Sync for Format

impl UnwindSafe for Format

impl RefUnwindSafe for Format

Blanket Implementations

impl<T> Content for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]