pub struct AccelerateConfig {
pub enabled: bool,
pub provider: AccelerateProviderPreference,
pub allow_inprocess_fallback: bool,
pub wgpu_power_preference: AccelPowerPreference,
pub wgpu_force_fallback_adapter: bool,
pub auto_offload: AutoOffloadConfig,
}Expand description
Acceleration (GPU) configuration
Fields§
§enabled: boolEnable acceleration subsystem
provider: AccelerateProviderPreferencePreferred provider (auto, wgpu, inprocess)
allow_inprocess_fallback: boolAllow automatic fallback to the in-process provider when hardware backend fails
wgpu_power_preference: AccelPowerPreferencePreferred WGPU power profile
wgpu_force_fallback_adapter: boolForce use of WGPU fallback adapter even if a high-performance adapter exists
auto_offload: AutoOffloadConfigAuto-offload planner configuration
Trait Implementations§
Source§impl Clone for AccelerateConfig
impl Clone for AccelerateConfig
Source§fn clone(&self) -> AccelerateConfig
fn clone(&self) -> AccelerateConfig
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 AccelerateConfig
impl Debug for AccelerateConfig
Source§impl Default for AccelerateConfig
impl Default for AccelerateConfig
Source§impl<'de> Deserialize<'de> for AccelerateConfig
impl<'de> Deserialize<'de> for AccelerateConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccelerateConfig
impl RefUnwindSafe for AccelerateConfig
impl Send for AccelerateConfig
impl Sync for AccelerateConfig
impl Unpin for AccelerateConfig
impl UnsafeUnpin for AccelerateConfig
impl UnwindSafe for AccelerateConfig
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