Struct screen_13::driver::DriverConfig
source · pub struct DriverConfig {
pub debug: bool,
pub desired_queue_count: usize,
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_queue_count: usizeThe desired, but not guaranteed, number of queues that will be available.
Additional queues are useful for submission from secondary threads.
desired_swapchain_image_count: u32The desired, but not guaranteed, number of images that will be in the created swapchain.
More images introduces more display lag, but smoother animation.
sync_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: boolUsed to select devices which support presentation to the display.
The default value is true.
ray_tracing: boolUsed to select devices which support the KHR ray tracing extension.
The default is false.
Implementations§
source§impl DriverConfig
impl DriverConfig
sourcepub fn new() -> DriverConfigBuilder
pub fn new() -> DriverConfigBuilder
Specifies a default driver configuration.
Trait Implementations§
source§impl Clone for DriverConfig
impl Clone for DriverConfig
source§fn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DriverConfig
impl Debug for DriverConfig
source§impl Hash for DriverConfig
impl Hash for DriverConfig
source§impl PartialEq<DriverConfig> for DriverConfig
impl PartialEq<DriverConfig> for DriverConfig
source§fn eq(&self, other: &DriverConfig) -> bool
fn eq(&self, other: &DriverConfig) -> bool
self and other values to be equal, and is used
by ==.