pub struct TextureMipLevel3D { /* private fields */ }Expand description
Single mipmap level storing packed RGBA8 texels.
Implementations§
Source§impl TextureMipLevel3D
Implements impl #impl_generics #name #ty_generics #where_clause.
impl TextureMipLevel3D
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_width(&self) -> u32
pub fn get_mut_width(&mut self) -> &mut u32
pub fn set_width(&mut self, val: u32) -> &mut Self
pub fn get_height(&self) -> u32
pub fn get_mut_height(&mut self) -> &mut u32
pub fn set_height(&mut self, val: u32) -> &mut Self
pub fn get_pixels(&self) -> &Vec<u8> ⓘ
pub fn get_mut_pixels(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_pixels(&mut self, val: Vec<u8>) -> &mut Self
Trait Implementations§
Source§impl Clone for TextureMipLevel3D
impl Clone for TextureMipLevel3D
Source§impl Debug for TextureMipLevel3D
impl Debug for TextureMipLevel3D
Source§impl Default for TextureMipLevel3D
impl Default for TextureMipLevel3D
impl Eq for TextureMipLevel3D
Source§impl PartialEq for TextureMipLevel3D
impl PartialEq for TextureMipLevel3D
impl StructuralPartialEq for TextureMipLevel3D
Auto Trait Implementations§
impl Forget for TextureMipLevel3D
impl Freeze for TextureMipLevel3D
impl Move for TextureMipLevel3D
impl RefUnwindSafe for TextureMipLevel3D
impl Send for TextureMipLevel3Dwhere
RawVecInner: Send,
impl Sync for TextureMipLevel3Dwhere
RawVecInner: Sync,
impl Unpin for TextureMipLevel3D
impl UnsafeUnpin for TextureMipLevel3D
impl UnwindSafe for TextureMipLevel3Dwhere
RawVecInner: UnwindSafe,
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