vkCmdNextSubpass2KHR(3)

# vkCmdNextSubpass2KHR(3) Manual Page

## Name

vkCmdNextSubpass2KHR - Transition to the next subpass of a render pass

## C Specification

To transition to the next subpass in the render pass instance after recording the commands for a subpass, call:

    void vkCmdNextSubpass2KHR(
        VkCommandBuffer                             commandBuffer,
        const VkSubpassBeginInfoKHR*                pSubpassBeginInfo,
        const VkSubpassEndInfoKHR*                  pSubpassEndInfo);

## Parameters

- `commandBuffer` is the command buffer in which to record the command.

- `pSubpassBeginInfo` is a pointer to a VkSubpassBeginInfoKHR structure containing information about the subpass which is about to begin rendering.

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

## Description

`vkCmdNextSubpass2KHR` is semantically identical to vkCmdNextSubpass, except that it is extensible, and that `contents` is provided as part of an extensible structure instead of as a flat parameter.

Valid Usage

- The current subpass index must be less than 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

- `pSubpassBeginInfo` must be a valid pointer to a valid `VkSubpassBeginInfoKHR` structure

- `pSubpassEndInfo` must be a valid pointer to a valid `VkSubpassEndInfoKHR` 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, VkSubpassBeginInfoKHR, VkSubpassEndInfoKHR

## 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-2019 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.