Struct screen_13::driver::DriverConfigBuilder
source · [−]pub struct DriverConfigBuilder { /* private fields */ }Expand description
Builder for DriverConfig.
Implementations
sourceimpl DriverConfigBuilder
impl DriverConfigBuilder
sourcepub fn debug(self, value: bool) -> Self
pub fn debug(self, value: bool) -> Self
Enables 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.
sourcepub fn desired_swapchain_image_count(self, value: u32) -> Self
pub fn desired_swapchain_image_count(self, value: u32) -> Self
The desired, but not garunteed, number of images that will be in the created swapchain.
sourcepub fn sync_display(self, value: bool) -> Self
pub fn sync_display(self, value: bool) -> Self
Determines 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.
sourcepub fn presentation(self, value: bool) -> Self
pub fn presentation(self, value: bool) -> Self
Used to select devices which support presentation to the display.
The default value is true.
sourcepub fn ray_tracing(self, value: bool) -> Self
pub fn ray_tracing(self, value: bool) -> Self
Used to select devices which support the KHR ray tracing extension.
The default is false.
sourceimpl DriverConfigBuilder
impl DriverConfigBuilder
sourcepub fn build(self) -> DriverConfig
pub fn build(self) -> DriverConfig
Builds a new DriverConfig.