pub struct EmittersCache { /* private fields */ }
Expand description
Multiple emitters drawn simultaneously.
Will reuse as much GPU resources as possible, so should be more efficient than
just Vec
Implementations§
Source§impl EmittersCache
impl EmittersCache
pub fn new(config: EmitterConfig) -> EmittersCache
pub fn spawn(&mut self, pos: Vec2)
pub fn draw(&mut self)
Auto Trait Implementations§
impl Freeze for EmittersCache
impl RefUnwindSafe for EmittersCache
impl Send for EmittersCache
impl Sync for EmittersCache
impl Unpin for EmittersCache
impl UnwindSafe for EmittersCache
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