vOOlkan
An object oriented approach to Vulkan
|
A Framebuffer links toghether the real attachments (e.g. image views in the swapchain or depth buffers) with the attachments specified in a render pass (which are only descriptions). More...
#include <Framebuffer.h>
Public Member Functions | |
template<std::same_as< ImageView >... IV> | |
Framebuffer (const LogicalDevice &virtualGpu, const PipelineOptions::RenderPass &renderPass, std::pair< unsigned int, unsigned int > resolution, const IV &... imageViews) | |
Framebuffer (const Framebuffer &)=delete | |
Framebuffer & | operator= (const Framebuffer &)=delete |
Framebuffer (Framebuffer &&movedFrom) noexcept | |
Framebuffer & | operator= (Framebuffer &&)=default |
~Framebuffer () | |
const VkFramebuffer & | operator+ () const |
std::pair< unsigned int, unsigned int > | getResolution () const |
Static Public Member Functions | |
template<std::same_as< ImageView >... IV> | |
static std::vector< Framebuffer > | generateFramebufferForEachSwapchainImageView (const LogicalDevice &virtualGpu, const PipelineOptions::RenderPass &renderPass, const Swapchain &swapchain, const IV &... otherAttachments) |
Creates a framebuffer for each image view in the specified swapchain. It also attaches the specified other attachments to the same framebuffer. More... | |
A Framebuffer links toghether the real attachments (e.g. image views in the swapchain or depth buffers) with the attachments specified in a render pass (which are only descriptions).
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
|
inlinestatic |
Creates a framebuffer for each image view in the specified swapchain. It also attaches the specified other attachments to the same framebuffer.
virtualGpu | The LogicalDevice where to create the framebuffers. |
renderPass | The RenderPass where there should be attachments to link against. |
swapchain | The Swapchain where the ImageView(s) are present. |
...otherAttachments | Other attachments to bundle toghether in the framebuffer of each image view of the swapchain. |
|
inline |
|
inline |
|
delete |
|
default |