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§
Source§impl 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 StructuralPartialEq for QueueType
Auto Trait Implementations§
impl Freeze for QueueType
impl RefUnwindSafe for QueueType
impl Send for QueueType
impl Sync for QueueType
impl Unpin for QueueType
impl UnwindSafe for QueueType
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