[−][src]Struct rendy_core::hal::format::FormatDesc
Description of a format.
Fields
bits: u16
Total number of bits.
- Depth/Stencil formats are opaque formats, where the total number of bits is unknown. A dummy value is used for these formats instead (sum of depth and stencil bits). For copy operations, the number of bits of the corresponding aspect should be used.
- The total number can be larger than the sum of individual format bits
(
color
,alpha
,depth
andstencil
) for packed formats. - For compressed formats, this denotes the number of bits per block.
dim: (u8, u8)
Dimensions (width, height) of the texel blocks.
packed: bool
The format representation depends on the endianness of the platform.
- On little-endian systems, the actual oreder of components is reverse of what a surface type specifies.
aspects: Aspects
Format aspects
Implementations
impl FormatDesc
[src]
pub fn is_compressed(&self) -> bool
[src]
Check if the format is compressed.
Trait Implementations
impl Clone for FormatDesc
[src]
fn clone(&self) -> FormatDesc
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FormatDesc
[src]
impl Debug for FormatDesc
[src]
impl Eq for FormatDesc
[src]
impl Hash for FormatDesc
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FormatDesc
[src]
fn cmp(&self, other: &FormatDesc) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<FormatDesc> for FormatDesc
[src]
fn eq(&self, other: &FormatDesc) -> bool
[src]
fn ne(&self, other: &FormatDesc) -> bool
[src]
impl PartialOrd<FormatDesc> for FormatDesc
[src]
fn partial_cmp(&self, other: &FormatDesc) -> Option<Ordering>
[src]
fn lt(&self, other: &FormatDesc) -> bool
[src]
fn le(&self, other: &FormatDesc) -> bool
[src]
fn gt(&self, other: &FormatDesc) -> bool
[src]
fn ge(&self, other: &FormatDesc) -> bool
[src]
impl StructuralEq for FormatDesc
[src]
impl StructuralPartialEq for FormatDesc
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormatDesc
impl Send for FormatDesc
impl Sync for FormatDesc
impl Unpin for FormatDesc
impl UnwindSafe for FormatDesc
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> 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>,