Struct gltf_json::accessor::sparse::Sparse []

pub struct Sparse {
    pub count: u32,
    pub indices: Indices,
    pub values: Values,
    pub extensions: Sparse,
    pub extras: Extras,
}

Sparse storage of attributes that deviate from their initialization value.

Fields

The number of attributes encoded in this sparse accessor.

Index array of size count that points to those accessor attributes that deviate from their initialization value.

Indices must strictly increase.

Array of size count * number_of_components storing the displaced accessor attributes pointed by indices.

Substituted values must have the same component_type and number of components as the base Accessor.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for Sparse
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Sparse
[src]

Formats the value using the given formatter.

impl Validate for Sparse

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

Validates the data against the glTF 2.0 specification.