#[repr(C)]pub struct GpuForce {
pub type_strength: [f32; 4],
pub direction_params: [f32; 4],
}Expand description
Force affector for GPU
Fields§
§type_strength: [f32; 4]Force type (0=gravity, 1=wind, 2=vortex, 3=drag, 4=turbulence, 5=attractor) and strength packed as (type, strength, 0, 0)
direction_params: [f32; 4]Direction/position (xyz) and extra param (w)
Trait Implementations§
impl Copy for GpuForce
impl Pod for GpuForce
Auto Trait Implementations§
impl Freeze for GpuForce
impl RefUnwindSafe for GpuForce
impl Send for GpuForce
impl Sync for GpuForce
impl Unpin for GpuForce
impl UnsafeUnpin for GpuForce
impl UnwindSafe for GpuForce
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.