Enum vulkano::device::physical::PhysicalDeviceType
source · #[non_exhaustive]#[repr(i32)]pub enum PhysicalDeviceType {
IntegratedGpu = 1,
DiscreteGpu = 2,
VirtualGpu = 3,
Cpu = 4,
Other = 0,
}
Expand description
Type of a physical device.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IntegratedGpu = 1
The device is an integrated GPU.
DiscreteGpu = 2
The device is a discrete GPU.
VirtualGpu = 3
The device is a virtual GPU.
Cpu = 4
The device is a CPU.
Other = 0
The device is something else.
Trait Implementations§
source§impl Clone for PhysicalDeviceType
impl Clone for PhysicalDeviceType
source§fn clone(&self) -> PhysicalDeviceType
fn clone(&self) -> PhysicalDeviceType
Returns a copy of the value. Read more
1.0.0 · 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 PhysicalDeviceType
impl Debug for PhysicalDeviceType
source§impl Default for PhysicalDeviceType
impl Default for PhysicalDeviceType
source§impl From<PhysicalDeviceType> for PhysicalDeviceType
impl From<PhysicalDeviceType> for PhysicalDeviceType
source§fn from(val: PhysicalDeviceType) -> Self
fn from(val: PhysicalDeviceType) -> Self
Converts to this type from the input type.
source§impl Hash for PhysicalDeviceType
impl Hash for PhysicalDeviceType
source§impl PartialEq for PhysicalDeviceType
impl PartialEq for PhysicalDeviceType
source§fn eq(&self, other: &PhysicalDeviceType) -> bool
fn eq(&self, other: &PhysicalDeviceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PhysicalDeviceType
impl Eq for PhysicalDeviceType
impl StructuralEq for PhysicalDeviceType
impl StructuralPartialEq for PhysicalDeviceType
Auto Trait Implementations§
impl RefUnwindSafe for PhysicalDeviceType
impl Send for PhysicalDeviceType
impl Sync for PhysicalDeviceType
impl Unpin for PhysicalDeviceType
impl UnwindSafe for PhysicalDeviceType
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