Struct screen_13::driver::DriverConfig
source · [−]pub struct DriverConfig {
pub debug: bool,
pub desired_swapchain_image_count: u32,
pub sync_display: bool,
pub presentation: bool,
pub ray_tracing: bool,
}Expand description
A list of required features. Features that are supported but not required will not be available.
Fields
debug: boolEnables Vulkan validation layers.
This requires a Vulkan SDK installation and will cause validation errors to introduce panics as they happen.
NOTE: Consider turning OFF debug if you discover an unknown issue. Often the validation layers will throw an error before other layers can provide additional context such as the API dump info or other messages. You might find the “actual” issue is detailed in those subsequent details.
desired_swapchain_image_count: u32sync_display: boolDetermines if frames will be submitted to the display in a synchronous fashion or if they should be displayed as fast as possible instead.
Turn on to eliminate visual tearing at the expense of latency.
presentation: boolray_tracing: boolImplementations
sourceimpl DriverConfig
impl DriverConfig
pub fn new() -> DriverConfigBuilder
Trait Implementations
sourceimpl Clone for DriverConfig
impl Clone for DriverConfig
sourcefn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DriverConfig
impl Debug for DriverConfig
sourceimpl Hash for DriverConfig
impl Hash for DriverConfig
sourceimpl PartialEq<DriverConfig> for DriverConfig
impl PartialEq<DriverConfig> for DriverConfig
sourcefn eq(&self, other: &DriverConfig) -> bool
fn eq(&self, other: &DriverConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DriverConfig) -> bool
fn ne(&self, other: &DriverConfig) -> bool
This method tests for !=.
impl Copy for DriverConfig
impl Eq for DriverConfig
impl StructuralEq for DriverConfig
impl StructuralPartialEq for DriverConfig
Auto Trait Implementations
impl RefUnwindSafe for DriverConfig
impl Send for DriverConfig
impl Sync for DriverConfig
impl Unpin for DriverConfig
impl UnwindSafe for DriverConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more