Skip to main content

destroy_command_pool

Function destroy_command_pool 

Source
pub unsafe fn destroy_command_pool(
    device: &Device,
    pool: CommandPool,
    allocator: Option<&AllocationCallbacks>,
) -> Result<(), CallError>
Expand description

Destroy a command pool and all command buffers allocated from it.

ยงSafety

All command buffers from this pool must have finished execution on the GPU.

Khronos reference: vkDestroyCommandPool