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).