#[repr(C)]pub struct SoftParticleRecord {
pub position: [f32; 4],
pub prev_position: [f32; 4],
pub velocity: [f32; 4],
pub support: f32,
pub rest_spacing: f32,
pub neighbour_offset: u32,
pub neighbour_count: u32,
pub owner: u32,
pub generation: u32,
pub _wgsl_pad0: [u8; 8],
}Fields§
§position: [f32; 4]§prev_position: [f32; 4]§velocity: [f32; 4]§support: f32§rest_spacing: f32§neighbour_offset: u32§neighbour_count: u32§owner: u32§generation: u32§_wgsl_pad0: [u8; 8]Implementations§
Source§impl SoftParticleRecord
impl SoftParticleRecord
pub fn build(init: SoftParticleInit) -> Self
pub const fn cleared() -> Self
pub const fn radius(&self) -> f32
pub const fn inverse_mass(&self) -> f32
pub const fn friction(&self) -> f32
pub const fn support(&self) -> f32
pub const fn rest_spacing(&self) -> f32
pub const fn carries_continuum(&self) -> bool
Trait Implementations§
Source§impl Clone for SoftParticleRecord
impl Clone for SoftParticleRecord
Source§fn clone(&self) -> SoftParticleRecord
fn clone(&self) -> SoftParticleRecord
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 SoftParticleRecord
Source§impl Debug for SoftParticleRecord
impl Debug for SoftParticleRecord
Source§impl PartialEq for SoftParticleRecord
impl PartialEq for SoftParticleRecord
impl Pod for SoftParticleRecord
Source§impl StreamRecord for SoftParticleRecord
impl StreamRecord for SoftParticleRecord
impl StructuralPartialEq for SoftParticleRecord
Auto Trait Implementations§
impl Freeze for SoftParticleRecord
impl RefUnwindSafe for SoftParticleRecord
impl Send for SoftParticleRecord
impl Sync for SoftParticleRecord
impl Unpin for SoftParticleRecord
impl UnsafeUnpin for SoftParticleRecord
impl UnwindSafe for SoftParticleRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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.