Class VulkanRenderModuleSwapChainRenderPass
java.lang.Object
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleSwapChainRenderPass
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 Summary
ConstructorsConstructorDescriptionCreates a render pass matching the given swap chain's format. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Destroys the render pass.longReturns the underlying Vulkan handle.
-
Constructor Details
-
VulkanRenderModuleSwapChainRenderPass
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
VkRenderPasshandle
-