Class VulkanRenderModuleFrameBuffer
java.lang.Object
io.codetoil.curved_spacetime.render.vulkan.VulkanRenderModuleFrameBuffer
A framebuffer: the concrete set of image views a render pass draws into.
A render pass describes attachments abstractly; a framebuffer binds those slots to actual images. One is needed per swap chain image, since each frame targets a different image.
-
Constructor Summary
ConstructorsConstructorDescriptionVulkanRenderModuleFrameBuffer(VulkanModuleLogicalDevice logicalDevice, int width, int height, LongBuffer pAttachments, long renderPass) Creates a framebuffer binding the given attachments for a render pass. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Destroys the framebuffer, leaving its attachments untouched.longReturns the underlying Vulkan handle.
-
Constructor Details
-
VulkanRenderModuleFrameBuffer
public VulkanRenderModuleFrameBuffer(VulkanModuleLogicalDevice logicalDevice, int width, int height, LongBuffer pAttachments, long renderPass) Creates a framebuffer binding the given attachments for a render pass.- Parameters:
logicalDevice- the device to create the framebuffer onwidth- the framebuffer's width in pixelsheight- the framebuffer's height in pixelspAttachments- the image views filling the render pass's attachment slots, in orderrenderPass- the render pass this framebuffer is compatible with- Throws:
AssertionError- if the framebuffer cannot be created
-
-
Method Details
-
cleanup
public void cleanup()Destroys the framebuffer, leaving its attachments untouched. -
getVkFrameBuffer
public long getVkFrameBuffer()Returns the underlying Vulkan handle.- Returns:
- the
VkFramebufferhandle
-