Struct gltf_json::texture::Texture [−][src]
pub struct Texture {
pub name: Option<String>,
pub sampler: Option<Index<Sampler>>,
pub source: Index<Image>,
pub extensions: Option<Texture>,
pub extras: Extras,
}
Expand description
A texture and its sampler.
Fields
name: Option<String>
Optional user-defined name for this object.
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
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 RefUnwindSafe for Texture
impl UnwindSafe for Texture
Blanket Implementations
Mutably borrows from an owned value. Read more