pub struct EmitterScene { /* private fields */ }Expand description
Objects that spawn, fall on a parabola, and die (ADR-0057).
Implementations§
Source§impl EmitterScene
impl EmitterScene
Sourcepub fn new(
device: &Device,
surface_format: TextureFormat,
capacity: usize,
) -> Self
pub fn new( device: &Device, surface_format: TextureFormat, capacity: usize, ) -> Self
Build the pipeline, buffers and object pool on device. capacity is the
active tier’s
emitter_objects; it is
fixed for the life of the scene, so the per-frame path never allocates,
and a tier change rebuilds the scene rather than resizing it.
Auto Trait Implementations§
impl Freeze for EmitterScene
impl !RefUnwindSafe for EmitterScene
impl Send for EmitterScene
impl Sync for EmitterScene
impl Unpin for EmitterScene
impl UnsafeUnpin for EmitterScene
impl !UnwindSafe for EmitterScene
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