vpr::Framebuffer class

The Framebuffer class merely handles lifetime of a VkFramebuffer object.

Contents

All important information on how to setup this class is provided by the VkFramebufferCreateInfo struct in the constructor. Destroy() method has been publicly exposed to allow one to keep the object around, but destroy and re-create it for swapchain events.

Public functions

void Destroy()
Destroys the object by calling vkDestroyFramebuffer() on it.