Struct gltf_json::texture::Texture[][src]

pub struct Texture {
    pub sampler: Option<Index<Sampler>>,
    pub source: Index<Image>,
    pub extensions: Texture,
    pub extras: Extras,
}

A texture and its sampler.

Fields

The index of the sampler used by this texture.

The index of the image used by this texture.

Extension specific data.

Optional application specific data.

Trait Implementations

impl<'a> Get<Texture> for Root
[src]

Retrieves a single value at the given index.

impl Clone for Texture
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Texture
[src]

Formats the value using the given formatter. Read more

impl Validate for Texture
[src]

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification. Read more

Auto Trait Implementations

impl Send for Texture

impl Sync for Texture