pub struct DeviceInfo {
pub debug: bool,
pub physical_device_index: usize,
}Expand description
Information used to create a Device instance.
Fields§
§debug: boolEnables 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 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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
Source§fn default() -> DeviceInfo
fn default() -> DeviceInfo
Returns the “default value” for a type. Read more
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.
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
Tests for
self and other values to be equal, and is used by ==.impl Copy for DeviceInfo
impl Eq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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