Skip to main content

cmd_blit_image

Function cmd_blit_image 

Source
pub unsafe fn cmd_blit_image(
    device: &Device,
    command_buffer: CommandBuffer,
    src_image: Image,
    src_image_layout: ImageLayout,
    dst_image: Image,
    dst_image_layout: ImageLayout,
    regions: &[ImageBlit],
    filter: Filter,
) -> Result<(), CallError>
Expand description

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