pub struct MeshAsset {
pub name: String,
pub source_mesh_index: usize,
pub primitives: Vec<Primitive>,
}Expand description
One source mesh definition, independent of any node that instances it.
Fields§
§name: StringMesh name.
source_mesh_index: usizeStable index of this definition in the source format.
glTF permits several nodes to instance one mesh definition. Loaders
preserve that distinction through SceneAssets::instances.
primitives: Vec<Primitive>Triangle-list primitives belonging to this mesh.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshAsset
impl RefUnwindSafe for MeshAsset
impl Send for MeshAsset
impl Sync for MeshAsset
impl Unpin for MeshAsset
impl UnsafeUnpin for MeshAsset
impl UnwindSafe for MeshAsset
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