pub struct ParticleSpawnState {
pub accumulator: f32,
}Expand description
Per-emitter spawn accumulator. The runtime keeps one of these per record
and feeds the integer overflow into the compute kernel as spawn_budget
each frame. Fractional carry-over keeps low spawn rates honest even when
the frame-time is below the per-particle interval.
Fields§
§accumulator: f32Fractional particles owed by this emitter, carried forward across
frames. Cleared by take_budget after harvesting the integer part.
Implementations§
Trait Implementations§
Source§impl Clone for ParticleSpawnState
impl Clone for ParticleSpawnState
Source§fn clone(&self) -> ParticleSpawnState
fn clone(&self) -> ParticleSpawnState
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 ParticleSpawnState
Source§impl Debug for ParticleSpawnState
impl Debug for ParticleSpawnState
Source§impl Default for ParticleSpawnState
impl Default for ParticleSpawnState
Source§fn default() -> ParticleSpawnState
fn default() -> ParticleSpawnState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParticleSpawnState
impl RefUnwindSafe for ParticleSpawnState
impl Send for ParticleSpawnState
impl Sync for ParticleSpawnState
impl Unpin for ParticleSpawnState
impl UnsafeUnpin for ParticleSpawnState
impl UnwindSafe for ParticleSpawnState
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