vkCmdEndRendering2KHR
To end a render pass instance, call:
void vkCmdEndRendering2KHR(
VkCommandBuffer commandBuffer,
const VkRenderingEndInfoKHR* pRenderingEndInfo);
pub fn cmd_end_rendering2_khr(
command_buffer: vk::CommandBuffer,
p_rendering_end_info: *const vk::RenderingEndInfoKHR,
);
void vkCmdEndRendering2EXT(
VkCommandBuffer commandBuffer,
const VkRenderingEndInfoKHR* pRenderingEndInfo);
pub fn cmd_end_rendering2_ext(
command_buffer: vk::CommandBuffer,
p_rendering_end_info: *const vk::RenderingEndInfoKHR,
);
commandBufferis the command buffer in which to record the command.pRenderingEndInfoisNULLor a pointer to a VkRenderingEndInfoKHR structure containing information about how the render pass will be ended.
If the value of pRenderingInfo→flags used to begin this render pass
instance included VK_RENDERING_SUSPENDING_BIT, then this render pass
is suspended and will be resumed later in
submission order.
Valid Usage
VUID-vkCmdEndRendering2KHR-None-10610
The current render pass instance must have been begun with vkCmdBeginRendering
VUID-vkCmdEndRendering2KHR-commandBuffer-10611
The current render pass instance must have been begun in
commandBuffer
VUID-vkCmdEndRendering2KHR-None-10612
This command must not be recorded when transform feedback is active
VUID-vkCmdEndRendering2KHR-None-10613
If vkCmdBeginQuery* was called within the render pass, the
corresponding vkCmdEndQuery* must have been called subsequently
within the same subpass
Valid Usage (Implicit)
VUID-vkCmdEndRendering2KHR-commandBuffer-parameter
commandBuffer must be a valid VkCommandBuffer handle
VUID-vkCmdEndRendering2KHR-pRenderingEndInfo-parameter
If pRenderingEndInfo is not NULL, pRenderingEndInfo must be a valid pointer to a valid VkRenderingEndInfoKHR structure
VUID-vkCmdEndRendering2KHR-commandBuffer-recording
commandBuffer must be in the recording state
VUID-vkCmdEndRendering2KHR-commandBuffer-cmdpool
The VkCommandPool that commandBuffer was allocated from must support VK_QUEUE_GRAPHICS_BIT operations
VUID-vkCmdEndRendering2KHR-renderpass
This command must only be called inside of a render pass instance
VUID-vkCmdEndRendering2KHR-suspended
This command must not be called between suspended render pass instances
VUID-vkCmdEndRendering2KHR-videocoding
This command must only be called outside of a video coding scope
Host Synchronization
- Host access to
commandBuffermust be externally synchronized - Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized