Skip to main content

require_frame_queue

Function require_frame_queue 

Source
pub fn require_frame_queue(
    device: &dyn Device,
    queue: Handle<Queue>,
    what: &str,
) -> Result<(), HalError>
Expand description

Refuses any queue but device’s QueueKind::Graphics queue for an upload UploadBatch::submit_deferred will not wait for: what names the caller, as “a UI pass” or “a forward renderer’s view”.

The rule every deferred caller shares, held in one place. Only the queue the frames are submitted to orders the copies before the frames that read them, since nothing waits on the host.

§Errors

HalError::InvalidDescriptor naming both queues.