pub struct ContextDesc {
pub presentation: bool,
pub validation: bool,
pub timing: bool,
pub capture: bool,
pub overlay: bool,
pub device_id: u32,
}Fields§
§presentation: boolAbility to present contents to a window.
validation: boolEnable validation of the GAPI, shaders, and insert crash markers into command buffers.
timing: boolEnable GPU timing of all passes.
capture: boolEnable capture support with GAPI tools.
overlay: boolEnable GAPI overlay.
device_id: u32Force selection of a specific Device ID, unless 0.
Trait Implementations§
Source§impl Clone for ContextDesc
impl Clone for ContextDesc
Source§fn clone(&self) -> ContextDesc
fn clone(&self) -> ContextDesc
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 ContextDesc
impl Debug for ContextDesc
Source§impl Default for ContextDesc
impl Default for ContextDesc
Source§fn default() -> ContextDesc
fn default() -> ContextDesc
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextDesc
impl RefUnwindSafe for ContextDesc
impl Send for ContextDesc
impl Sync for ContextDesc
impl Unpin for ContextDesc
impl UnwindSafe for ContextDesc
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