pub struct GpuPluginConfig {
pub force_cpu: bool,
pub device_index: Option<u32>,
pub backend: BackendPreference,
}Expand description
Process-global GPU plugin configuration.
Set once at CLI startup via configure(). The GPU plugin reads these
settings when constructing engine::EngineConfig for compression and
decompression.
Fields§
§force_cpu: boolIf true, never attempt GPU decompression — always use CPU fallback.
device_index: Option<u32>Specific GPU device to use. None means auto-select best available.
backend: BackendPreferenceWhich GPU compute backend to prefer.
Trait Implementations§
Source§impl Clone for GpuPluginConfig
impl Clone for GpuPluginConfig
Source§fn clone(&self) -> GpuPluginConfig
fn clone(&self) -> GpuPluginConfig
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 GpuPluginConfig
impl Debug for GpuPluginConfig
Source§impl Default for GpuPluginConfig
impl Default for GpuPluginConfig
Source§fn default() -> GpuPluginConfig
fn default() -> GpuPluginConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GpuPluginConfig
impl RefUnwindSafe for GpuPluginConfig
impl Send for GpuPluginConfig
impl Sync for GpuPluginConfig
impl Unpin for GpuPluginConfig
impl UnsafeUnpin for GpuPluginConfig
impl UnwindSafe for GpuPluginConfig
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