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.