#[repr(C)]pub struct WaterWaveGpu {
pub dir_amp_wave: [f32; 4],
pub speed_steep_pad: [f32; 4],
}Expand description
One Gerstner wave coefficient set, packed into two float4 lanes so the
layout is identical on every target. Matches WaterWave in
shaders/water.slang. 32 bytes.
Fields§
§dir_amp_wave: [f32; 4][direction.x, direction.y, amplitude, wavelength].
speed_steep_pad: [f32; 4][speed, steepness, _, _].
Trait Implementations§
Source§impl Clone for WaterWaveGpu
impl Clone for WaterWaveGpu
Source§fn clone(&self) -> WaterWaveGpu
fn clone(&self) -> WaterWaveGpu
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 WaterWaveGpu
Source§impl Default for WaterWaveGpu
impl Default for WaterWaveGpu
Source§fn default() -> WaterWaveGpu
fn default() -> WaterWaveGpu
Returns the “default value” for a type. Read more
impl Pod for WaterWaveGpu
Auto Trait Implementations§
impl Freeze for WaterWaveGpu
impl RefUnwindSafe for WaterWaveGpu
impl Send for WaterWaveGpu
impl Sync for WaterWaveGpu
impl Unpin for WaterWaveGpu
impl UnsafeUnpin for WaterWaveGpu
impl UnwindSafe for WaterWaveGpu
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.