Skip to main content

queue_submit2_khr

Function queue_submit2_khr 

Source
pub unsafe fn queue_submit2_khr(
    device: &Device,
    queue: Queue,
    submits: &[SubmitInfo2<'_>],
    fence: Fence,
) -> Result<(), CallError>
Expand description

Call vkQueueSubmit2KHR using this context’s cached function pointer.

§Errors

Reports a missing command, invalid slice lengths/counts or a native error.

§Safety

The context and all handles must be live and belong to the same Vulkan implementation/device. Meet vkQueueSubmit2KHR valid usage, enabled API/extension/feature, pointer-chain lifetime, callback compatibility and host/GPU synchronization requirements. Native resources require explicit destruction after completion.

Khronos reference: vkQueueSubmit2KHR