pub struct TextureMipSpec { /* private fields */ }Expand description
Descriptor specifying per-tier VRAM footprints and dimensions for a progressive mipmapped texture.
Implementations§
Source§impl TextureMipSpec
Convenience accessors unpacking per-tier VRAM sizes and dimensions from TextureMipSpec.
impl TextureMipSpec
Convenience accessors unpacking per-tier VRAM sizes and dimensions from TextureMipSpec.
Sourcepub fn mip_tail_bytes(&self) -> usize
pub fn mip_tail_bytes(&self) -> usize
Sourcepub fn mid_mip_bytes(&self) -> usize
pub fn mid_mip_bytes(&self) -> usize
Sourcepub fn full_res_bytes(&self) -> usize
pub fn full_res_bytes(&self) -> usize
Source§impl TextureMipSpec
Implements impl #impl_generics #name #ty_generics #where_clause.
impl TextureMipSpec
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_key_hash(&self) -> u64
pub fn get_mut_key_hash(&mut self) -> &mut u64
pub fn set_key_hash(&mut self, val: u64) -> &mut Self
pub fn get_texture_slot(&self) -> u32
pub fn get_mut_texture_slot(&mut self) -> &mut u32
pub fn set_texture_slot(&mut self, val: u32) -> &mut Self
pub fn get_tier_vram_bytes(&self) -> [usize; 3]
pub fn get_mut_tier_vram_bytes(&mut self) -> &mut [usize; 3]
pub fn set_tier_vram_bytes(&mut self, val: [usize; 3]) -> &mut Self
pub fn get_dimensions(&self) -> [u32; 2]
pub fn get_mut_dimensions(&mut self) -> &mut [u32; 2]
pub fn set_dimensions(&mut self, val: [u32; 2]) -> &mut Self
pub fn get_total_mip_levels(&self) -> u8
pub fn get_mut_total_mip_levels(&mut self) -> &mut u8
pub fn set_total_mip_levels(&mut self, val: u8) -> &mut Self
pub fn get_is_srgb(&self) -> bool
pub fn get_mut_is_srgb(&mut self) -> &mut bool
pub fn set_is_srgb(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for TextureMipSpec
impl Clone for TextureMipSpec
impl Copy for TextureMipSpec
Source§impl Debug for TextureMipSpec
impl Debug for TextureMipSpec
Source§impl Default for TextureMipSpec
impl Default for TextureMipSpec
impl Eq for TextureMipSpec
Source§impl Hash for TextureMipSpec
impl Hash for TextureMipSpec
Source§impl PartialEq for TextureMipSpec
impl PartialEq for TextureMipSpec
impl StructuralPartialEq for TextureMipSpec
Auto Trait Implementations§
impl Forget for TextureMipSpec
impl Freeze for TextureMipSpec
impl Move for TextureMipSpec
impl RefUnwindSafe for TextureMipSpec
impl Send for TextureMipSpec
impl Sync for TextureMipSpec
impl Unpin for TextureMipSpec
impl UnsafeUnpin for TextureMipSpec
impl UnwindSafe for TextureMipSpec
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