pub enum QueueType {
General,
Graphics,
Compute,
Transfer,
}
Expand description
The type of the queue, an enum encompassing queue::Capability
Variants
General
Supports all operations.
Graphics
Only supports graphics and transfer operations.
Compute
Only supports compute and transfer operations.
Transfer
Only supports transfer operations.
Implementations
sourceimpl QueueType
impl QueueType
sourcepub fn supports_graphics(&self) -> bool
pub fn supports_graphics(&self) -> bool
Returns true if the queue supports graphics operations.
sourcepub fn supports_compute(&self) -> bool
pub fn supports_compute(&self) -> bool
Returns true if the queue supports compute operations.
sourcepub fn supports_transfer(&self) -> bool
pub fn supports_transfer(&self) -> bool
Returns true if the queue supports transfer operations.
Trait Implementations
impl Copy for QueueType
impl Eq for QueueType
impl StructuralEq for QueueType
impl StructuralPartialEq for QueueType
Auto Trait Implementations
impl RefUnwindSafe for QueueType
impl Send for QueueType
impl Sync for QueueType
impl Unpin for QueueType
impl UnwindSafe for QueueType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more