[−][src]Enum vulkano::format::Format
An enumeration of all the possible formats.
Variants
Implementations
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<[f16; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f16; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f16; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f16; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f32; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f32; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f32; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f32; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f64; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f64; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f64; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[f64; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i16; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i16; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i16; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i16; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i32; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i32; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i32; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i32; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i64; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i64; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i64; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i64; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i8; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i8; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i8; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[i8; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u16; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u16; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u16; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u16; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u32; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u32; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u32; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u32; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u64; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u64; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u64; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u64; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u8; 1]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u8; 2]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u8; 3]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<[u8; 4]> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f16, f16, f16, f16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f16, f16, f16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f16, f16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f16,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f32, f32, f32, f32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f32, f32, f32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f32, f32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f32,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f64, f64, f64, f64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f64, f64, f64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f64, f64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(f64,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i16, i16, i16, i16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i16, i16, i16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i16, i16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i16,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i32, i32, i32, i32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i32, i32, i32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i32, i32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i32,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i64, i64, i64, i64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i64, i64, i64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i64, i64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i64,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i8, i8, i8, i8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i8, i8, i8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i8, i8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(i8,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u16, u16, u16, u16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u16, u16, u16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u16, u16)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u16,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u32, u32, u32, u32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u32, u32, u32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u32, u32)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u32,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u64, u64, u64, u64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u64, u64, u64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u64, u64)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u64,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u8, u8, u8, u8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u8, u8, u8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u8, u8)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<(u8,)> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<f16> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<f32> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<f64> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<i16> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<i32> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<i64> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<i8> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<u16> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<u32> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<u64> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl AcceptsPixels<u8> for Format
[src]
fn ensure_accepts(&self) -> Result<(), IncompatiblePixelsType>
[src]
fn rate(&self) -> u32
[src]
impl Clone for Format
[src]
impl Copy for Format
[src]
impl Debug for Format
[src]
impl Eq for Format
[src]
impl FormatDesc for Format
[src]
type ClearValue = ClearValue
fn format(&self) -> Format
[src]
fn decode_clear_value(&self, value: Self::ClearValue) -> ClearValue
[src]
impl Hash for Format
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<W> ImageClearValue<<Format as FormatDesc>::ClearValue> for SwapchainImage<W>
[src]
fn decode(
&self,
value: <Format as FormatDesc>::ClearValue
) -> Option<ClearValue>
[src]
&self,
value: <Format as FormatDesc>::ClearValue
) -> Option<ClearValue>
impl PartialEq<Format> for Format
[src]
impl PossibleCompressedFormatDesc for Format
[src]
fn is_compressed(&self) -> bool
[src]
impl PossibleDepthFormatDesc for Format
[src]
impl PossibleDepthStencilFormatDesc for Format
[src]
fn is_depth_stencil(&self) -> bool
[src]
impl PossibleFloatFormatDesc for Format
[src]
impl PossibleFloatOrCompressedFormatDesc for Format
[src]
fn is_float_or_compressed(&self) -> bool
[src]
impl PossibleSintFormatDesc for Format
[src]
impl PossibleStencilFormatDesc for Format
[src]
fn is_stencil(&self) -> bool
[src]
impl PossibleUintFormatDesc for Format
[src]
impl StructuralEq for Format
[src]
impl StructuralPartialEq for Format
[src]
Auto Trait Implementations
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,