Struct gfx_hal::queue::CommandQueue

source ·
pub struct CommandQueue<B: Backend, C>(_, _);
Expand description

Stronger-typed and safer CommandQueue wraps around RawCommandQueue.

Implementations

Create typed command queue from raw.

Safety

<C as Capability>::supported_by(queue_type) must return true for queue_type being the type this raw queue.

Get a reference to the raw command queue

Get a mutable reference to the raw command queue

Downgrade a typed command queue to untyped one.

Submits the submission command buffers to the queue for execution. fence will be signalled after submission and must be unsignalled.

Submit command buffers without any semaphore waits or singals.

Presents the result of the queue to the given swapchains, after waiting on all the semaphores given in wait_semaphores. A given swapchain must not appear in this list more than once.

Wait for the queue to idle.

Downgrade a command queue to a lesser capability type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.