pub struct AccessorData {
pub count: usize,
pub accessor_type: String,
pub components: u8,
pub component_type: u32,
pub data_type: DataType,
pub normalized: bool,
pub bytes: Vec<u8>,
}Expand description
Tightly packed accessor payload for geometry consumers.
Fields§
§count: usizeNumber of elements in the accessor.
accessor_type: StringOriginal glTF accessor shape (SCALAR, VEC*, or MAT*).
components: u8Number of scalar components per element.
component_type: u32Original glTF component type code.
data_type: DataTypeDraco storage type used for materialization.
normalized: boolWhether integer values use normalized interpretation.
bytes: Vec<u8>Tightly packed accessor bytes in glTF component order.
Matrix columns retain glTF’s column-major order, with on-disk alignment padding removed.
Trait Implementations§
Source§impl Clone for AccessorData
impl Clone for AccessorData
Source§fn clone(&self) -> AccessorData
fn clone(&self) -> AccessorData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AccessorData
impl RefUnwindSafe for AccessorData
impl Send for AccessorData
impl Sync for AccessorData
impl Unpin for AccessorData
impl UnsafeUnpin for AccessorData
impl UnwindSafe for AccessorData
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