pub struct Texture {
pub sampler: Option<usize>,
pub source: Option<usize>,
pub name: Option<String>,
pub extensions: Option<Extension>,
}
Expand description
A texture and its sampler.
Fields§
§sampler: Option<usize>
The index of the sampler used by this texture. When undefined, a sampler with repeat wrapping and auto filtering should be used.
source: Option<usize>
The index of the image used by this texture. When undefined, it is expected that an extension or other mechanism will supply an alternate texture source, otherwise behavior is undefined.
name: Option<String>
The user-defined name of this object.
extensions: Option<Extension>
Dictionary object with extension-specific objects.
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Texture
impl<'a> Deserialize<'a> for Texture
fn deserialize<D: Deserializer<'a>>(deserializer: &mut D) -> Option<Self>
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