vkCmdEndRenderPass2(3)

# vkCmdEndRenderPass2(3) Manual Page

## Name

vkCmdEndRenderPass2 - End the current render pass

Loading… please wait.

## C Specification

To record a command to end a render pass instance after recording the commands for the last subpass, call:

    // Provided by VK_VERSION_1_2
    void vkCmdEndRenderPass2(
        VkCommandBuffer                             commandBuffer,
        const VkSubpassEndInfo*                     pSubpassEndInfo);

or the equivalent command

    // Provided by VK_KHR_create_renderpass2
    void vkCmdEndRenderPass2KHR(
        VkCommandBuffer                             commandBuffer,
        const VkSubpassEndInfo*                     pSubpassEndInfo);

## Parameters

- `commandBuffer` is the command buffer in which to end the current render pass instance.

- `pSubpassEndInfo` is a pointer to a VkSubpassEndInfo structure containing information about how the previous subpass will be ended.

## Description

`vkCmdEndRenderPass2` is semantically identical to vkCmdEndRenderPass, except that it is extensible.

Valid Usage

- The current subpass index must be equal to the number of subpasses in the render pass minus one

- This command must not be recorded when transform feedback is active

Valid Usage (Implicit)

- `commandBuffer` must be a valid VkCommandBuffer handle

- `pSubpassEndInfo` must be a valid pointer to a valid VkSubpassEndInfo structure

- `commandBuffer` must be in the recording state

- The `VkCommandPool` that `commandBuffer` was allocated from must support graphics operations

- This command must only be called inside of a render pass instance

- `commandBuffer` must be a primary `VkCommandBuffer`

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 | Inside | Graphics | Graphics

## See Also

VkCommandBuffer, VkSubpassEndInfo

## 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

Copyright (c) 2014-2020 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0