pub struct Texture {
pub image: Image,
pub sampler: Sampler,
pub name: Option<String>,
}Fields§
§image: ImageThe image from the image crate, Which is loaded into RAM
sampler: SamplerSampler which beining used on the Image
name: Option<String>Name of the Texture.
Some File Formats do not support Texture names, In this case this will be None
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