pub struct Footprint { /* private fields */ }
Expand description
Configuration for ASTC block footprint size
This struct provides predefined constants for supported footprint in the specification, as well as a constructor for custom footprint. It is recommended to use only the predefined constants. The constructor can be used when you want to pass in dimensions defined numerically in other file formats.
Implementations§
Source§impl Footprint
impl Footprint
pub const ASTC_4X4: Footprint
pub const ASTC_5X4: Footprint
pub const ASTC_5X5: Footprint
pub const ASTC_6X5: Footprint
pub const ASTC_6X6: Footprint
pub const ASTC_8X5: Footprint
pub const ASTC_8X6: Footprint
pub const ASTC_10X5: Footprint
pub const ASTC_10X6: Footprint
pub const ASTC_8X8: Footprint
pub const ASTC_10X8: Footprint
pub const ASTC_10X10: Footprint
pub const ASTC_12X10: Footprint
pub const ASTC_12X12: Footprint
Sourcepub fn new(block_width: u32, block_height: u32) -> Footprint
pub fn new(block_width: u32, block_height: u32) -> Footprint
Constructs custom footprint. Panic if any of the dimensions is zero.
Sourcepub fn block_width(&self) -> u32
pub fn block_width(&self) -> u32
Returns the block width.
Sourcepub fn block_height(&self) -> u32
pub fn block_height(&self) -> u32
Returns the block height.
Trait Implementations§
Source§impl Ord for Footprint
impl Ord for Footprint
Source§impl PartialOrd for Footprint
impl PartialOrd for Footprint
impl Copy for Footprint
impl Eq for Footprint
impl StructuralPartialEq for Footprint
Auto Trait Implementations§
impl Freeze for Footprint
impl RefUnwindSafe for Footprint
impl Send for Footprint
impl Sync for Footprint
impl Unpin for Footprint
impl UnwindSafe for Footprint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more