Skip to main content

destroy_render_pass

Function destroy_render_pass 

Source
pub unsafe fn destroy_render_pass(
    device: &Device,
    render_pass: RenderPass,
    allocator: Option<&AllocationCallbacks>,
) -> Result<(), CallError>
Expand description

Call vkDestroyRenderPass 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 vkDestroyRenderPass 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: vkDestroyRenderPass