pub struct InstanceOf(pub MeshHandle);Expand description
Marks an entity as a member of a GPU-instanced mesh batch.
When present, the renderer routes the entity’s transform into a shared
THREE.InstancedMesh keyed by the wrapped MeshHandle, instead of
creating a standalone Object3D per entity. Used for crowd-scale
rendering (1000+ entities sharing one geometry).
The wrapped MeshHandle is the instance-group identifier — entities that
share the same InstanceOf(handle) share the same InstancedMesh.
Tuple Fields§
§0: MeshHandleTrait Implementations§
Source§impl Clone for InstanceOf
impl Clone for InstanceOf
impl Component for InstanceOf
impl Copy for InstanceOf
Source§impl Debug for InstanceOf
impl Debug for InstanceOf
impl Eq for InstanceOf
Source§impl Hash for InstanceOf
impl Hash for InstanceOf
Source§impl PartialEq for InstanceOf
impl PartialEq for InstanceOf
impl StructuralPartialEq for InstanceOf
Auto Trait Implementations§
impl Freeze for InstanceOf
impl RefUnwindSafe for InstanceOf
impl Send for InstanceOf
impl Sync for InstanceOf
impl Unpin for InstanceOf
impl UnsafeUnpin for InstanceOf
impl UnwindSafe for InstanceOf
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