pub struct ParticleRenderConfig {
pub indirect_draw: bool,
pub billboard: bool,
pub additive_blend: bool,
pub max_render_distance: f32,
pub atlas_char: Option<char>,
pub depth_sort: bool,
}Expand description
Configuration for GPU particle rendering.
Fields§
§indirect_draw: boolWhether to use indirect draw (GPU-driven instance count).
billboard: boolWhether to render particles as billboards (camera-facing quads).
additive_blend: boolWhether to use additive blending (true) or alpha blending (false).
max_render_distance: f32Maximum render distance (particles beyond this are culled in the vertex shader).
atlas_char: Option<char>Particle character for atlas-based rendering (when not using soft circles).
depth_sort: boolWhether to sort particles back-to-front (expensive, only for alpha blend).
Trait Implementations§
Source§impl Clone for ParticleRenderConfig
impl Clone for ParticleRenderConfig
Source§fn clone(&self) -> ParticleRenderConfig
fn clone(&self) -> ParticleRenderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParticleRenderConfig
impl Debug for ParticleRenderConfig
Auto Trait Implementations§
impl Freeze for ParticleRenderConfig
impl RefUnwindSafe for ParticleRenderConfig
impl Send for ParticleRenderConfig
impl Sync for ParticleRenderConfig
impl Unpin for ParticleRenderConfig
impl UnsafeUnpin for ParticleRenderConfig
impl UnwindSafe for ParticleRenderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.