Enum vulkano::instance::PhysicalDeviceType
source · #[repr(u32)]
pub enum PhysicalDeviceType {
IntegratedGpu,
DiscreteGpu,
VirtualGpu,
Cpu,
Other,
}
Expand description
Type of a physical device.
Variants
IntegratedGpu
The device is an integrated GPU.
DiscreteGpu
The device is a discrete GPU.
VirtualGpu
The device is a virtual GPU.
Cpu
The device is a CPU.
Other
The device is something else.
Trait Implementations
sourceimpl Clone for PhysicalDeviceType
impl Clone for PhysicalDeviceType
sourcefn clone(&self) -> PhysicalDeviceType
fn clone(&self) -> PhysicalDeviceType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PhysicalDeviceType
impl Debug for PhysicalDeviceType
sourceimpl Hash for PhysicalDeviceType
impl Hash for PhysicalDeviceType
sourceimpl PartialEq<PhysicalDeviceType> for PhysicalDeviceType
impl PartialEq<PhysicalDeviceType> for PhysicalDeviceType
sourcefn eq(&self, other: &PhysicalDeviceType) -> bool
fn eq(&self, other: &PhysicalDeviceType) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.