UgRenderPass
Vulkan render pass management
end
End the current render pass
U0 end(VkCommandBuffer cmdBuffer);Parameters
cmdBuffer— Active command buffer
begin
Begin a render pass using the framebuffer for the current image index
U0 begin(VkRenderPass renderPass, UgFrameBuffer.It& framebuffers, VkCommandBuffer cmdBuffer, U32 imageIndex);Parameters
renderPass— Render pass to beginframebuffers— Framebuffer array to source the target fromcmdBuffer— Active command bufferimageIndex— Index of the current swapchain image
destroy
Destroy a render pass
U0 destroy(UgContext.It& ctx, VkRenderPass renderPass);Parameters
ctx— Vulkan contextrenderPass— Render pass to destroy
create
Create a render pass compatible with the swapchain's format and depth buffer
VkRenderPass create(UgContext.It& ctx, UgSwapchain.It& swapchain);Parameters
ctx— Vulkan contextswapchain— Swapchain whose format is used for the color attachment
Returns — Newly created render pass handle