pub struct WebGPUConfig {
pub enable_kernel_cache: bool,
pub enable_auto_tuning: bool,
pub enable_memory_pooling: bool,
pub max_cache_size: usize,
pub power_preference: PowerPreference,
pub max_buffer_size: u64,
pub max_workgroups_per_dimension: u32,
}Expand description
Configuration for WebGPU optimization
Fields§
§enable_kernel_cache: boolEnable kernel caching
enable_auto_tuning: boolEnable auto-tuning for block sizes
enable_memory_pooling: boolEnable memory pooling
max_cache_size: usizeMaximum cache size for compiled kernels
power_preference: PowerPreferencePreferred power preference
max_buffer_size: u64Memory limits
max_workgroups_per_dimension: u32Threading configuration
Trait Implementations§
Source§impl Clone for WebGPUConfig
impl Clone for WebGPUConfig
Source§fn clone(&self) -> WebGPUConfig
fn clone(&self) -> WebGPUConfig
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 WebGPUConfig
impl Debug for WebGPUConfig
Auto Trait Implementations§
impl Freeze for WebGPUConfig
impl RefUnwindSafe for WebGPUConfig
impl Send for WebGPUConfig
impl Sync for WebGPUConfig
impl Unpin for WebGPUConfig
impl UnwindSafe for WebGPUConfig
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