pub struct Texture {
pub id: u32,
pub width: u32,
pub height: u32,
pub format: TextureFormat,
pub data: TextureData,
}Expand description
A texture used by the puppet.
Fields§
§id: u32Unique ID (index inside the puppet texture array).
width: u32Width in pixels.
height: u32Height in pixels.
format: TextureFormatTexture data format.
data: TextureDataTexture data.
Implementations§
Trait 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 UnsafeUnpin 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