#[repr(C)]pub struct GpuEmitter {
pub position_shape: [f32; 4],
pub shape_params: [f32; 4],
pub direction_randomness: [f32; 4],
pub emission_config: [f32; 4],
pub lifetime_speed: [f32; 4],
pub size_config: [f32; 4],
pub start_color: [f32; 4],
pub mid_color: [f32; 4],
pub end_color: [f32; 4],
}Expand description
Emitter configuration for GPU
Fields§
§position_shape: [f32; 4]Emitter position (xyz) and shape type (w as u32 bits)
shape_params: [f32; 4]Shape parameters (radius, angle, half_extents, etc.)
direction_randomness: [f32; 4]Direction (xyz) and randomness (w)
emission_config: [f32; 4]Emission rate, burst count, spawn accumulated, gravity scale
lifetime_speed: [f32; 4]Lifetime (min, max), speed (min, max)
size_config: [f32; 4]Start size (min, max), end size (min, max)
start_color: [f32; 4]Start color (rgba) - base of fire (yellow)
mid_color: [f32; 4]Mid color (rgba) - middle of fire (red)
end_color: [f32; 4]End color (rgba) - tip of fire (dark/burnt)
Trait Implementations§
Source§impl Clone for GpuEmitter
impl Clone for GpuEmitter
Source§fn clone(&self) -> GpuEmitter
fn clone(&self) -> GpuEmitter
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 GpuEmitter
impl Debug for GpuEmitter
Source§impl Default for GpuEmitter
impl Default for GpuEmitter
impl Copy for GpuEmitter
impl Pod for GpuEmitter
Auto Trait Implementations§
impl Freeze for GpuEmitter
impl RefUnwindSafe for GpuEmitter
impl Send for GpuEmitter
impl Sync for GpuEmitter
impl Unpin for GpuEmitter
impl UnsafeUnpin for GpuEmitter
impl UnwindSafe for GpuEmitter
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.