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