pub struct ParticleInstance2d { /* private fields */ }Expand description
One validated visual particle used by the optional instanced GPU renderer.
The type itself is renderer-independent so hosts can generate, validate,
serialize, or benchmark particle visual state without enabling wgpu.
world_position is measured in caller-defined world units, radius is in
logical screen pixels, color is linear RGBA, and depth is the scalar
consumed by crate::Projection2d.
Implementations§
Source§impl ParticleInstance2d
impl ParticleInstance2d
Trait Implementations§
Source§impl Clone for ParticleInstance2d
impl Clone for ParticleInstance2d
Source§fn clone(&self) -> ParticleInstance2d
fn clone(&self) -> ParticleInstance2d
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 moreimpl Copy for ParticleInstance2d
Source§impl Debug for ParticleInstance2d
impl Debug for ParticleInstance2d
Source§impl PartialEq for ParticleInstance2d
impl PartialEq for ParticleInstance2d
impl StructuralPartialEq for ParticleInstance2d
Auto Trait Implementations§
impl Freeze for ParticleInstance2d
impl RefUnwindSafe for ParticleInstance2d
impl Send for ParticleInstance2d
impl Sync for ParticleInstance2d
impl Unpin for ParticleInstance2d
impl UnsafeUnpin for ParticleInstance2d
impl UnwindSafe for ParticleInstance2d
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