Struct gltf_json::accessor::Accessor []

pub struct Accessor {
    pub buffer_view: Index<View>,
    pub byte_offset: u32,
    pub count: u32,
    pub component_type: Checked<GenericComponentType>,
    pub extensions: Accessor,
    pub extras: Extras,
    pub type_: Checked<Type>,
    pub min: Option<Value>,
    pub max: Option<Value>,
    pub normalized: bool,
    pub sparse: Option<Sparse>,
}

A typed view into a buffer view.

Fields

The parent buffer view this accessor reads from.

The offset relative to the start of the parent BufferView in bytes.

The number of components within the buffer view - not to be confused with the number of bytes in the buffer view.

The data type of components in the attribute.

Extension specific data.

Optional application specific data.

Specifies if the attribute is a scalar, vector, or matrix.

Minimum value of each component in this attribute.

Maximum value of each component in this attribute.

Specifies whether integer data values should be normalized.

Sparse storage of attributes that deviate from their initialization value.

Trait Implementations

impl Clone for Accessor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Accessor
[src]

Formats the value using the given formatter.

impl Validate for Accessor

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

Validates the data against the glTF 2.0 specification. Read more