pub struct ParticleRenderer { /* private fields */ }Expand description
Scratch is allocated once. Alpha 3D particles sort by camera depth with an allocation-free unstable sort and explicit tie order. Oversized pools are truncated to this renderer’s capacity, independently of the geometry budget.
Implementations§
Source§impl ParticleRenderer
impl ParticleRenderer
pub fn new(capacity: usize) -> Result<ParticleRenderer, EffectError>
pub fn capacity(&self) -> usize
pub fn draw_2d( &mut self, pool: &ParticlePool, style: ParticleStyle, ) -> Result<DrawReport, EffectError>
pub fn draw_3d( &mut self, pool: &ParticlePool, view: BillboardView, style: ParticleStyle, ) -> Result<DrawReport, EffectError>
Auto Trait Implementations§
impl Freeze for ParticleRenderer
impl RefUnwindSafe for ParticleRenderer
impl Send for ParticleRenderer
impl Sync for ParticleRenderer
impl Unpin for ParticleRenderer
impl UnwindSafe for ParticleRenderer
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