pub struct ContextConfig {
pub app_name: String,
pub enable_validation: bool,
pub preferred_vendor: Option<String>,
pub preferred_icd_path: Option<PathBuf>,
pub preferred_icd_index: Option<usize>,
}Expand description
Configuration for ComputeContext creation
Fields§
§app_name: StringApplication name
enable_validation: boolEnable validation layers
preferred_vendor: Option<String>Preferred GPU vendor (AMD, NVIDIA, Intel)
preferred_icd_path: Option<PathBuf>Preferred ICD by path (process-wide for now)
preferred_icd_index: Option<usize>Preferred ICD by index (process-wide for now)
Trait Implementations§
Source§impl Default for ContextConfig
impl Default for ContextConfig
Source§fn default() -> ContextConfig
fn default() -> ContextConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnwindSafe for ContextConfig
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