pub struct U64Helpers;Expand description
Helper functions for 64-bit emulation in WGSL.
Implementations§
Source§impl U64Helpers
impl U64Helpers
Sourcepub fn generate_all() -> String
pub fn generate_all() -> String
Generate the complete set of 64-bit helper functions.
Sourcepub fn generate_read_u64() -> &'static str
pub fn generate_read_u64() -> &'static str
Generate read_u64 function.
Sourcepub fn generate_write_u64() -> &'static str
pub fn generate_write_u64() -> &'static str
Generate write_u64 function.
Sourcepub fn generate_atomic_inc_u64() -> &'static str
pub fn generate_atomic_inc_u64() -> &'static str
Generate atomic_inc_u64 function.
Sourcepub fn generate_atomic_add_u64() -> &'static str
pub fn generate_atomic_add_u64() -> &'static str
Generate atomic_add_u64 function.
Sourcepub fn generate_compare_u64() -> &'static str
pub fn generate_compare_u64() -> &'static str
Generate compare_u64 function.
Sourcepub fn generate_add_u64() -> &'static str
pub fn generate_add_u64() -> &'static str
Generate add_u64 function (non-atomic).
Sourcepub fn generate_sub_u64() -> &'static str
pub fn generate_sub_u64() -> &'static str
Generate sub_u64 function (non-atomic).
Sourcepub fn generate_mul_u64_u32() -> &'static str
pub fn generate_mul_u64_u32() -> &'static str
Generate mul_u64_u32 function (multiply 64-bit by 32-bit).
Auto Trait Implementations§
impl Freeze for U64Helpers
impl RefUnwindSafe for U64Helpers
impl Send for U64Helpers
impl Sync for U64Helpers
impl Unpin for U64Helpers
impl UnwindSafe for U64Helpers
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