pub struct Primitive {
pub attributes: BTreeMap<Checked<Semantic>, Index<Accessor>>,
pub extensions: Option<Primitive>,
pub extras: Extras,
pub indices: Option<Index<Accessor>>,
pub material: Option<Index<Material>>,
pub mode: Checked<Mode>,
pub targets: Option<Vec<MorphTarget>>,
}
Expand description
Geometry to be rendered with the given material.
Fields§
§attributes: BTreeMap<Checked<Semantic>, Index<Accessor>>
Maps attribute semantic names to the Accessor
s containing the
corresponding attribute data.
extensions: Option<Primitive>
Extension specific data.
extras: Extras
Optional application specific data.
indices: Option<Index<Accessor>>
The index of the accessor that contains the indices.
material: Option<Index<Material>>
The index of the material to apply to this primitive when rendering
mode: Checked<Mode>
The type of primitives to render.
targets: Option<Vec<MorphTarget>>
An array of Morph Targets, each Morph Target is a dictionary mapping
attributes (only POSITION
, NORMAL
, and TANGENT
supported) to their
deviations in the Morph Target.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Primitive
impl<'de> Deserialize<'de> for Primitive
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 RefUnwindSafe for Primitive
impl Send for Primitive
impl Sync for Primitive
impl Unpin for Primitive
impl UnwindSafe for Primitive
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