Struct EffectPool
pub struct EffectPool { /* private fields */ }Implementations§
§impl EffectPool
impl EffectPool
pub fn new(requested_capacity: usize, seed: u32) -> EffectPool
pub fn new(requested_capacity: usize, seed: u32) -> EffectPool
Construct the pool once on renderer creation. Capacity is clamped to a hard ceiling; callers retain their requested config for diagnostics.
pub fn particles(&self) -> &[GpuParticle]
pub fn particles(&self) -> &[GpuParticle]
Particles.
pub fn dropped_events(&self) -> u32
pub fn dropped_events(&self) -> u32
Dropped events.
pub fn emit(&mut self, event: EffectEvent) -> SpawnOutcome
pub fn emit(&mut self, event: EffectEvent) -> SpawnOutcome
Queue an event without allocating. If the event queue is full, the event is dropped deterministically and the caller can degrade quietly.
pub fn update(&mut self, frame: WorldFrame, wind: WindField)
pub fn update(&mut self, frame: WorldFrame, wind: WindField)
Apply queued events and advance CPU-owned effects. This is intended for event/cold paths; normal ambient wind remains GPU-side and needs no per-frame upload.
Auto Trait Implementations§
impl Freeze for EffectPool
impl RefUnwindSafe for EffectPool
impl Send for EffectPool
impl Sync for EffectPool
impl Unpin for EffectPool
impl UnsafeUnpin for EffectPool
impl UnwindSafe for EffectPool
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more