pub struct Texture {
pub sampler: Option<Index<Sampler>>,
pub source: Index<Image>,
pub extensions: Option<Texture>,
pub extras: Extras,
}
Expand description
A texture and its sampler.
Fields§
§sampler: Option<Index<Sampler>>
The index of the sampler used by this texture.
source: Index<Image>
The index of the image used by this texture.
extensions: Option<Texture>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Texture
impl<'de> Deserialize<'de> for Texture
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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