#[non_exhaustive]pub enum QueueFamilyType {
Graphics,
Compute,
Transfer,
Specific {
index: u32,
},
}Expand description
Specifies the type of queue family that a task can be executed on.
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.
Graphics
Picks a queue family that supports graphics and transfer operations.
Compute
Picks a queue family that supports compute and transfer operations.
Transfer
Picks a queue family that supports transfer operations.
Specific
Picks the queue family of the given index. You should generally avoid this and use one of the other variants, so that the task graph compiler can pick the most optimal queue family indices that still satisfy the supported operations that the tasks require (and also, it’s more convenient that way, as there’s less to think about). Nevertheless, you may want to use this if you’re looking for some very specific outcome.
Trait Implementations§
Source§impl Clone for QueueFamilyType
impl Clone for QueueFamilyType
Source§fn clone(&self) -> QueueFamilyType
fn clone(&self) -> QueueFamilyType
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 moreimpl Copy for QueueFamilyType
Source§impl Debug for QueueFamilyType
impl Debug for QueueFamilyType
impl Eq for QueueFamilyType
Source§impl Hash for QueueFamilyType
impl Hash for QueueFamilyType
Source§impl PartialEq for QueueFamilyType
impl PartialEq for QueueFamilyType
Source§fn eq(&self, other: &QueueFamilyType) -> bool
fn eq(&self, other: &QueueFamilyType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueueFamilyType
Auto Trait Implementations§
impl Freeze for QueueFamilyType
impl RefUnwindSafe for QueueFamilyType
impl Send for QueueFamilyType
impl Sync for QueueFamilyType
impl Unpin for QueueFamilyType
impl UnsafeUnpin for QueueFamilyType
impl UnwindSafe for QueueFamilyType
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