Class VulkanRenderModuleSwapChainRenderPass

java.lang.Object
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleSwapChainRenderPass

public class VulkanRenderModuleSwapChainRenderPass extends Object
A single-subpass render pass that draws straight into the swap chain.

Its one colour attachment is cleared on load, stored on completion, and left in the layout the presentation engine expects, so a rendered image is ready to present without a further transition. A subpass dependency on the external subpass keeps that transition from happening before the image has actually been acquired.

  • Constructor Details

    • VulkanRenderModuleSwapChainRenderPass

      public VulkanRenderModuleSwapChainRenderPass(VulkanRenderModuleSwapChain swapChain)
      Creates a render pass matching the given swap chain's format.
      Parameters:
      swapChain - the swap chain whose images this pass will draw into
      Throws:
      AssertionError - if the render pass cannot be created
  • Method Details

    • cleanup

      public void cleanup()
      Destroys the render pass.
    • getVkRenderPass

      public long getVkRenderPass()
      Returns the underlying Vulkan handle.
      Returns:
      the VkRenderPass handle