C Specification

To end a render pass instance, call:

// Provided by VK_KHR_dynamic_rendering
void vkCmdEndRenderingKHR(
    VkCommandBuffer                             commandBuffer);

Parameters

  • commandBuffer is the command buffer in which to record the command.

Description

If the value of pRenderingInfo->flags used to begin this render pass instance included VK_RENDERING_SUSPENDING_BIT_KHR, then this render pass is suspended and will be resumed later in submission order.

Valid Usage
  • VUID-vkCmdEndRenderingKHR-None-06161
    The current render pass instance must have been begun with vkCmdBeginRenderingKHR

  • VUID-vkCmdEndRenderingKHR-commandBuffer-06162
    The current render pass instance must have been begun in commandBuffer

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

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

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

  • VUID-vkCmdEndRenderingKHR-renderpass
    This command must only be called inside 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

Primary
Secondary

Inside

Graphics

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