#[non_exhaustive]pub enum DeviceSelection {
Automatic,
Index(usize),
}Expand description
Policy for selecting the local device owned by an engine.
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.
Automatic
Select a compatible hardware device by queried resource capacity.
Index(usize)
Select an exact physical-device ordinal, including software Vulkan CPU.
Use Engine::available_devices to discover current ordinals.
Trait Implementations§
Source§impl Clone for DeviceSelection
impl Clone for DeviceSelection
impl Copy for DeviceSelection
Source§impl Debug for DeviceSelection
impl Debug for DeviceSelection
Source§impl Default for DeviceSelection
impl Default for DeviceSelection
impl Eq for DeviceSelection
Source§impl PartialEq for DeviceSelection
impl PartialEq for DeviceSelection
impl StructuralPartialEq for DeviceSelection
Auto Trait Implementations§
impl Forget for DeviceSelection
impl Freeze for DeviceSelection
impl Move for DeviceSelection
impl RefUnwindSafe for DeviceSelection
impl Send for DeviceSelection
impl Sync for DeviceSelection
impl Unpin for DeviceSelection
impl UnsafeUnpin for DeviceSelection
impl UnwindSafe for DeviceSelection
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