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.
pub fn desired_swapchain_image_count(self, value: u32) -> Self
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.
pub fn presentation(self, value: bool) -> Self
pub fn ray_tracing(self, value: bool) -> Self
sourcepub fn build(self) -> Result<DriverConfig, DriverConfigBuilderError>
pub fn build(self) -> Result<DriverConfig, DriverConfigBuilderError>
Trait Implementations
sourceimpl Debug for DriverConfigBuilder
impl Debug for DriverConfigBuilder
Auto Trait Implementations
impl RefUnwindSafe for DriverConfigBuilder
impl Send for DriverConfigBuilder
impl Sync for DriverConfigBuilder
impl Unpin for DriverConfigBuilder
impl UnwindSafe for DriverConfigBuilder
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