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: u32The desired, but not garunteed, number of images that will be in the created swapchain.
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
sourceimpl DriverConfig
impl DriverConfig
sourcepub fn new() -> DriverConfigBuilder
pub fn new() -> DriverConfigBuilder
Specifies a default driver configuration.
Trait Implementations
sourceimpl Clone for DriverConfig
impl Clone for DriverConfig
sourcefn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more