pub struct Texture {
pub texture_type: TextureType,
pub width: u32,
pub height: u32,
pub depth: u32,
pub rgba: Vec<u8>,
}
Fields§
§texture_type: TextureType
Type of texture
width: u32
Width of the texture in pixels
height: u32
Height of the texture in pixels
depth: u32
Depth of the texture in pixels
rgba: Vec<u8>
Raw RGBA data
Implementations§
Auto Trait Implementations§
impl Freeze for Texture
impl RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl UnwindSafe for Texture
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