Struct CosseratElementGpu
#[repr(C)]pub struct CosseratElementGpu {
pub pos_radius: [f32; 4],
pub quat_wxyz: [f32; 4],
pub k_bend_pressure: [f32; 4],
pub rest_darboux_auxin: [f32; 4],
}Expand description
GPU-aligned 64-byte Cosserat element buffer matching COSSERAT_ROD_WGSL.
Fields§
§pos_radius: [f32; 4]§quat_wxyz: [f32; 4]§k_bend_pressure: [f32; 4]§rest_darboux_auxin: [f32; 4]Trait Implementations§
§impl Clone for CosseratElementGpu
impl Clone for CosseratElementGpu
§fn clone(&self) -> CosseratElementGpu
fn clone(&self) -> CosseratElementGpu
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 CosseratElementGpu
§impl Debug for CosseratElementGpu
impl Debug for CosseratElementGpu
§impl Default for CosseratElementGpu
impl Default for CosseratElementGpu
§fn default() -> CosseratElementGpu
fn default() -> CosseratElementGpu
Returns the “default value” for a type. Read more
§impl PartialEq for CosseratElementGpu
impl PartialEq for CosseratElementGpu
impl Pod for CosseratElementGpu
impl StructuralPartialEq for CosseratElementGpu
Auto Trait Implementations§
impl Freeze for CosseratElementGpu
impl RefUnwindSafe for CosseratElementGpu
impl Send for CosseratElementGpu
impl Sync for CosseratElementGpu
impl Unpin for CosseratElementGpu
impl UnsafeUnpin for CosseratElementGpu
impl UnwindSafe for CosseratElementGpu
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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.§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.