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§
Source§impl Capability for QueueType
impl Capability for QueueType
Source§fn from_queue_type(queue_type: QueueType) -> Option<Self>
fn from_queue_type(queue_type: QueueType) -> Option<Self>
Try to create capability instance from queue_type.
Instance will be created if all required queue_type set.
Source§fn into_queue_type(self) -> QueueType
fn into_queue_type(self) -> QueueType
Convert into
QueueType
Source§impl<C> Supports<C> for QueueTypewhere
C: Capability,
impl<C> Supports<C> for QueueTypewhere
C: Capability,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)