Struct gltf_json::Accessor [−][src]
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
buffer_view: Index<View>
The parent buffer view this accessor reads from.
byte_offset: u32
The offset relative to the start of the parent BufferView in bytes.
count: u32
The number of components within the buffer view - not to be confused with the number of bytes in the buffer view.
component_type: Checked<GenericComponentType>
The data type of components in the attribute.
extensions: Accessor
Extension specific data.
extras: Extras
Optional application specific data.
type_: Checked<Type>
Specifies if the attribute is a scalar, vector, or matrix.
min: Option<Value>
Minimum value of each component in this attribute.
max: Option<Value>
Maximum value of each component in this attribute.
normalized: bool
Specifies whether integer data values should be normalized.
sparse: Option<Sparse>
Sparse storage of attributes that deviate from their initialization value.
Trait Implementations
impl Clone for Accessor[src]
impl Clone for Accessorfn clone(&self) -> Accessor[src]
fn clone(&self) -> AccessorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Accessor[src]
impl Debug for Accessorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Validate for Accessor[src]
impl Validate for Accessorfn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), [src]
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
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]
fn validate_completely<P, R>(&self, _root: &Root, _path: P, _report: &mut R) where
P: Fn() -> Path,
R: FnMut(&Fn() -> Path, Error), Validates the data against the glTF 2.0 specification. Read more
impl<'a> Get<Accessor> for Root[src]
impl<'a> Get<Accessor> for Root