pub struct ContextConfig {
pub app_name: String,
pub enable_validation: bool,
pub preferred_vendor: Option<String>,
}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)
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