![]() |
Kale
|
#include <FrameBuffer.hpp>
Public Member Functions | |
FrameBuffer () | |
FrameBuffer (Renderer &renderer, const Vector2ui32 &size) | |
void | init (Renderer &renderer, const Vector2ui32 &size) |
void | freeResources () |
![]() | |
virtual | ~ParentResource () |
void | freeChildren () |
Public Attributes | |
DeviceMemory | imageMemory |
vk::UniqueImage | image |
vk::UniqueImageView | imageView |
vk::UniqueFramebuffer | framebuffer |
Protected Member Functions | |
void | freeResources (bool remove) override |
![]() | |
ChildResource () | |
ChildResource (Renderer &parent) | |
virtual void | init (Renderer &parent) |
~ChildResource () | |
Private Member Functions | |
void | createFrameBuffer (const vk::UniqueImageView &imageView, const vk::Extent2D &extent, const vk::UniqueRenderPass &renderPass) |
Additional Inherited Members | |
![]() | |
std::list< ChildResource< FrameBuffer > * > | resources |
![]() | |
Renderer * | parentPtr |
Represents a single framebuffer for offscreen rendering, NOT directly to the swapchain. To render to the swapchain use the swapchain's framebuffers instead
Definition at line 35 of file FrameBuffer.hpp.
FrameBuffer::FrameBuffer | ( | ) |
Creates an uninstantiated FrameBuffer
Definition at line 36 of file FrameBuffer.cpp.
FrameBuffer::FrameBuffer | ( | Renderer & | renderer, |
const Vector2ui32 & | size ) |
Creates an initialized FrameBuffer
renderer | The renderer this frame buffer will be rendered from |
Definition at line 44 of file FrameBuffer.cpp.
|
private |
Creates the frame buffer object
imageView | the image view to create the framebuffer from |
extent | The extent of the image view to use |
renderPass | The render pass which will be rendering to this frame buffer |
Definition at line 96 of file FrameBuffer.cpp.
void FrameBuffer::freeResources | ( | ) |
Frees resources if not already freed Frees BOTH the imageview/image, and framebuffer
Definition at line 117 of file FrameBuffer.cpp.
|
overrideprotectedvirtual |
Frees resources if not already freed ONLY frees the frame buffer itself, not the image view or image
Frees resources if not already freed
Reimplemented from Kale::Vulkan::ChildResource< Renderer >.
Definition at line 107 of file FrameBuffer.cpp.
void FrameBuffer::init | ( | Renderer & | renderer, |
const Vector2ui32 & | size ) |
Initializes the object
renderer | The renderer this frame buffer will be rendered from |
Definition at line 71 of file FrameBuffer.cpp.
vk::UniqueFramebuffer Kale::Vulkan::FrameBuffer::framebuffer |
The frame buffer object
Definition at line 75 of file FrameBuffer.hpp.
vk::UniqueImage Kale::Vulkan::FrameBuffer::image |
The image
Definition at line 65 of file FrameBuffer.hpp.
DeviceMemory Kale::Vulkan::FrameBuffer::imageMemory |
The actual memory on the device storing the image
Definition at line 60 of file FrameBuffer.hpp.
vk::UniqueImageView Kale::Vulkan::FrameBuffer::imageView |
The image view
Definition at line 70 of file FrameBuffer.hpp.