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: bool
Enable kernel caching
enable_auto_tuning: bool
Enable auto-tuning for block sizes
enable_memory_pooling: bool
Enable memory pooling
max_cache_size: usize
Maximum cache size for compiled kernels
power_preference: PowerPreference
Preferred power preference
max_buffer_size: u64
Memory limits
max_workgroups_per_dimension: u32
Threading 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