pub struct Texture<'a> {
pub name: Option<Cow<'a, str>>,
pub source: Option<Idx<Image<'static>>>,
pub sampler: Option<Idx<Sampler<'static>>>,
pub extensions: Option<Extensions<'a>>,
pub extras: Option<Extras<'a>>,
}Expand description
A texture and it’s sampler.
Fields§
§name: Option<Cow<'a, str>>The user-defined name of this object.
source: Option<Idx<Image<'static>>>The index of the image used by this texture
sampler: Option<Idx<Sampler<'static>>>The index of the sampler used by this texture.
extensions: Option<Extensions<'a>>§extras: Option<Extras<'a>>Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Texture<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Texture<'a>
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<'a> Freeze for Texture<'a>
impl<'a> RefUnwindSafe for Texture<'a>
impl<'a> Send for Texture<'a>
impl<'a> Sync for Texture<'a>
impl<'a> Unpin for Texture<'a>
impl<'a> UnsafeUnpin for Texture<'a>
impl<'a> UnwindSafe for Texture<'a>
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