Struct gltf::Accessor
[−]
[src]
pub struct Accessor {
pub buffer_view: Id,
pub byte_offset: u32,
pub byte_stride: u32,
pub component_type: u32,
pub count: u32,
pub component_width: String,
pub extensions: Option<Map<String, Value>>,
pub extras: Option<Map<String, Value>>,
pub max: Option<Vec<f32>>,
pub min: Option<Vec<f32>>,
}Fields
buffer_view: Id
The identifier of the BufferView this accessor reads from.
byte_offset: u32
Where the data items begin from in the BufferView
byte_stride: u32
The size of each data item in the BufferView
component_type: u32
Possible values: GL_BYTE, GL_FLOAT, GL_SHORT, GL_UNSIGNED_BYTE, or GL_UNSIGNED_SHORT
count: u32
The number of attributes within the BufferView (N.B. not number of bytes)
component_width: String
Possible values: "SCALAR", "VEC2", "VEC3", "VEC4", "MAT2", "MAT3", or "MAT4"
extensions: Option<Map<String, Value>>
Optional data targeting official extensions
extras: Option<Map<String, Value>>
Optional application specific data
max: Option<Vec<f32>>
Maximum value of each component in the attribute
min: Option<Vec<f32>>
Minimum value of each component in the attribtue