Struct gltf_json::texture::Texture []

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 Clone for Texture

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Texture

Formats the value using the given formatter.

impl Validate for Texture

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

Validates the data against the glTF 2.0 specification.