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