Skip to main content

Module u64_workarounds

Module u64_workarounds 

Source
Expand description

64-bit integer workarounds for WGSL.

WGSL 1.0 does not support 64-bit integers or atomics. This module provides helper functions that emulate 64-bit operations using lo/hi u32 pairs.

Structs§

U64Helpers
Helper functions for 64-bit emulation in WGSL.

Functions§

i64_to_vec2_literal
Convert a Rust i64 value to WGSL vec2 literal.
u64_to_vec2_literal
Convert a Rust u64 value to WGSL vec2 literal.