pub struct DeviceInfo {
pub debug: bool,
pub physical_device_index: usize,
}Expand description
Information used to create a Device instance.
Fields§
§debug: boolEnables 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.
physical_device_index: usizeIndex of the PhysicalDevice from the available devices. See
Instance::physical_devices.
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Sourcepub fn builder() -> DeviceInfoBuilder
pub fn builder() -> DeviceInfoBuilder
Creates a default DeviceInfoBuilder.
Sourcepub fn into_builder(self) -> DeviceInfoBuilder
pub fn into_builder(self) -> DeviceInfoBuilder
Converts a DeviceInfo into a DeviceInfoBuilder.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
Source§fn default() -> DeviceInfo
fn default() -> DeviceInfo
impl Eq for DeviceInfo
Source§impl From<DeviceInfoBuilder> for DeviceInfo
impl From<DeviceInfoBuilder> for DeviceInfo
Source§fn from(info: DeviceInfoBuilder) -> Self
fn from(info: DeviceInfoBuilder) -> Self
Source§impl Hash for DeviceInfo
impl Hash for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
Source§fn eq(&self, other: &DeviceInfo) -> bool
fn eq(&self, other: &DeviceInfo) -> bool
self and other values to be equal, and is used by ==.