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 begin
  • framebuffers — Framebuffer array to source the target from
  • cmdBuffer — Active command buffer
  • imageIndex — Index of the current swapchain image

destroy

Destroy a render pass

U0 destroy(UgContext.It& ctx, VkRenderPass renderPass);

Parameters

  • ctx — Vulkan context
  • renderPass — 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 context
  • swapchain — Swapchain whose format is used for the color attachment

Returns — Newly created render pass handle