pub struct Accessor<'a> {
pub name: Option<Cow<'a, str>>,
pub buffer_view: Idx<BufferView<'static>>,
pub byte_offset: u64,
pub ty: ElementType<'a>,
pub component_type: ComponentType,
pub normalized: bool,
pub count: u64,
pub max: Option<Vec<Number>>,
pub min: Option<Vec<Number>>,
pub sparse: Option<Sparse<'a>>,
pub extensions: Option<Extensions<'a>>,
pub extras: Option<Extras<'a>>,
}Expand description
A typed view into a buffer view that contains raw binary data.
Fields§
§name: Option<Cow<'a, str>>The user-defined name of this object.
buffer_view: Idx<BufferView<'static>>The index of the buffer view.
byte_offset: u64The offset relative to the start of the buffer view in bytes.
ty: ElementType<'a>Specifies if the accessor’s elements are scalars, vectors, or matrices.
component_type: ComponentTypeThe data type of the accessor’s components.
normalized: boolSpecifies whether integer data values are normalized to [0, 1] (for unsigned types) or to [-1, 1] (for signed types) when they are accessed.
count: u64The number of elements referenced by this accessor.
max: Option<Vec<Number>>Maximum value of each component in this accessor.
min: Option<Vec<Number>>Minimum value of each component in this accessor.
sparse: Option<Sparse<'a>>Sparse storage of elements that deviate from their initialization value.
extensions: Option<Extensions<'a>>§extras: Option<Extras<'a>>Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Accessor<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Accessor<'a>
Source§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<'a> Freeze for Accessor<'a>
impl<'a> RefUnwindSafe for Accessor<'a>
impl<'a> Send for Accessor<'a>
impl<'a> Sync for Accessor<'a>
impl<'a> Unpin for Accessor<'a>
impl<'a> UnsafeUnpin for Accessor<'a>
impl<'a> UnwindSafe for Accessor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more