C Specification

To resolve a multisample image to a non-multisample image, call:

// Provided by VK_KHR_copy_commands2
void vkCmdResolveImage2KHR(
    VkCommandBuffer                             commandBuffer,
    const VkResolveImageInfo2KHR*               pResolveImageInfo);

Parameters

  • commandBuffer is the command buffer into which the command will be recorded.

  • pResolveImageInfo is a pointer to a VkResolveImageInfo2KHR structure describing the resolve parameters.

Description

This command is functionally identical to vkCmdResolveImage, but includes extensible sub-structures that include sType and pNext parameters, allowing them to be more easily extended.

Valid Usage
  • VUID-vkCmdResolveImage2KHR-commandBuffer-01837
    If commandBuffer is an unprotected command buffer, then srcImage must not be a protected image

  • VUID-vkCmdResolveImage2KHR-commandBuffer-01838
    If commandBuffer is an unprotected command buffer, then dstImage must not be a protected image

  • VUID-vkCmdResolveImage2KHR-commandBuffer-01839
    If commandBuffer is a protected command buffer, then dstImage must not be an unprotected image

Valid Usage (Implicit)
  • VUID-vkCmdResolveImage2KHR-commandBuffer-parameter
    commandBuffer must be a valid VkCommandBuffer handle

  • VUID-vkCmdResolveImage2KHR-pResolveImageInfo-parameter
    pResolveImageInfo must be a valid pointer to a valid VkResolveImageInfo2KHR structure

  • VUID-vkCmdResolveImage2KHR-commandBuffer-recording
    commandBuffer must be in the recording state

  • VUID-vkCmdResolveImage2KHR-commandBuffer-cmdpool
    The VkCommandPool that commandBuffer was allocated from must support graphics operations

  • VUID-vkCmdResolveImage2KHR-renderpass
    This command must only be called outside of a render pass instance

Host Synchronization
  • Host access to commandBuffer must be externally synchronized

  • Host access to the VkCommandPool that commandBuffer was allocated from must be externally synchronized

Command Properties
Command Buffer Levels Render Pass Scope Supported Queue Types Pipeline Type

Primary
Secondary

Outside

Graphics

Transfer

See Also

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2021 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0