Struct gltf_json::accessor::sparse::Sparse
[−]
[src]
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
count: u32
The number of attributes encoded in this sparse accessor.
indices: Indices
Index array of size count that points to those accessor attributes
that deviate from their initialization value.
Indices must strictly increase.
values: Values
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.
extensions: Sparse
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
impl Clone for Sparse[src]
fn clone(&self) -> Sparse[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Sparse[src]
impl Validate for Sparse[src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates only the invariants required for the library to function safely.
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error),
Validates the data against the glTF 2.0 specification. Read more