pub struct WgslLoweringConfig {
pub subgroups: bool,
pub workgroup_size: (u32, u32, u32),
pub emulate_atomic64: bool,
pub downcast_f64: bool,
pub debug: bool,
}Expand description
WGSL lowering configuration.
Fields§
§subgroups: boolEnable subgroup operations (if available).
workgroup_size: (u32, u32, u32)Workgroup size.
emulate_atomic64: boolEmulate 64-bit atomics using 32-bit pairs.
downcast_f64: boolDowncast f64 to f32 (WGSL doesn’t support f64).
debug: boolGenerate debug comments.
Implementations§
Source§impl WgslLoweringConfig
impl WgslLoweringConfig
Sourcepub fn with_subgroups(self) -> Self
pub fn with_subgroups(self) -> Self
Enable subgroup operations.
Sourcepub fn with_workgroup_size(self, x: u32, y: u32, z: u32) -> Self
pub fn with_workgroup_size(self, x: u32, y: u32, z: u32) -> Self
Set workgroup size.
Trait Implementations§
Source§impl Clone for WgslLoweringConfig
impl Clone for WgslLoweringConfig
Source§fn clone(&self) -> WgslLoweringConfig
fn clone(&self) -> WgslLoweringConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WgslLoweringConfig
impl Debug for WgslLoweringConfig
Auto Trait Implementations§
impl Freeze for WgslLoweringConfig
impl RefUnwindSafe for WgslLoweringConfig
impl Send for WgslLoweringConfig
impl Sync for WgslLoweringConfig
impl Unpin for WgslLoweringConfig
impl UnwindSafe for WgslLoweringConfig
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