Struct gltf_json::accessor::sparse::Sparse [−][src]
pub struct Sparse {
pub count: u32,
pub indices: Indices,
pub values: Values,
pub extensions: Option<Sparse>,
pub extras: Extras,
}Expand description
Sparse storage of attributes that deviate from their initialization value.
Fields
count: u32The number of attributes encoded in this sparse accessor.
indices: IndicesIndex array of size count that points to those accessor attributes
that deviate from their initialization value.
Indices must strictly increase.
values: ValuesArray 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: Option<Sparse>Extension specific data.
extras: ExtrasOptional application specific data.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Sparse
impl UnwindSafe for Sparse
Blanket Implementations
Mutably borrows from an owned value. Read more
