Struct screen_13::driver::device::DeviceInfoBuilder
source · pub struct DeviceInfoBuilder { /* private fields */ }
Expand description
Builder for DeviceInfo
.
Implementations§
source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
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.
§Platform-specific
macOS: Has no effect.
sourcepub fn select_physical_device(self, value: Box<SelectPhysicalDeviceFn>) -> Self
pub fn select_physical_device(self, value: Box<SelectPhysicalDeviceFn>) -> Self
Callback function used to select a PhysicalDevice
from the available devices. The
callback must return the index of the selected device.
source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
sourcepub fn build(self) -> DeviceInfo
pub fn build(self) -> DeviceInfo
Builds a new DeviceInfo
.
Trait Implementations§
source§impl Default for DeviceInfoBuilder
impl Default for DeviceInfoBuilder
source§impl From<DeviceInfoBuilder> for DeviceInfo
impl From<DeviceInfoBuilder> for DeviceInfo
source§fn from(info: DeviceInfoBuilder) -> Self
fn from(info: DeviceInfoBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceInfoBuilder
impl !Send for DeviceInfoBuilder
impl !Sync for DeviceInfoBuilder
impl Unpin for DeviceInfoBuilder
impl !UnwindSafe for DeviceInfoBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more