VKCMDENDRENDERPASS(3)

NAME
vkCmdEndRenderPass - End the current render pass.

C SPECIFICATION

    void vkCmdEndRenderPass(
        VkCommandBuffer                             commandBuffer);

PARAMETERS

commandBuffer
    A handle to the command buffer in which the render pass is to be ended.

DESCRIPTION

vkCmdEndRenderPass ends the current render pass in the command buffer specified by commandBuffer. A render pass must begin and end in the same command buffer.

vkCmdEndRenderPass is only allowed in primary command buffers.

When vkCmdEndRenderPass executes, the store op for all attachments in the render pass is performed, and the attachment images are transitioned to their final layout.

VALID USAGE

    • commandBuffer must be a valid VkCommandBuffer handle

    • 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

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

HOST SYNCHRONIZATION

    • Host access to commandBuffer must be externally synchronized

COMMAND PROPERTIES
Command Buffer Levels | Render Pass Scope | Supported Queue Types
Primary | Inside | GRAPHICS

SEE ALSO

vkCmdBeginRenderPass, vkCreateRenderPass

COPYRIGHT

Copyright © 2014-2016 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

AUTHOR

Khronos Group
    Author.