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 the Vulkan validation layers.
This requires a Vulkan SDK installation and will panic when validation errors happen. See the LunarG Vulkan Validation Layers documentation for setup and behavior details.
When stderr is attached to an interactive terminal, validation errors will park the
callback thread for debugger attach.
NOTE: Consider turning OFF debug if you discover an unknown issue. Often the validation layers will report 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 unless the loaded feature is enabled.
Sourcepub fn physical_device_index(self, value: usize) -> Self
pub fn physical_device_index(self, value: usize) -> Self
Index of the PhysicalDevice from the available devices. See
Instance::physical_devices.
Source§impl DeviceInfoBuilder
impl DeviceInfoBuilder
Sourcepub fn build(self) -> DeviceInfo
pub fn build(self) -> DeviceInfo
Builds a new DeviceInfo.
Trait Implementations§
Source§impl Clone for DeviceInfoBuilder
impl Clone for DeviceInfoBuilder
Source§fn clone(&self) -> DeviceInfoBuilder
fn clone(&self) -> DeviceInfoBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more