|
Hymn to Beauty
C++ 3D Engine
|
Responsible for allocating render passes and framebuffers. More...
#include <RenderPassAllocator.hpp>
Public Member Functions | |
| RenderPassAllocator () | |
| Create a new render pass allocator. More... | |
| virtual | ~RenderPassAllocator () |
| Destructor. More... | |
| RenderPass * | CreateRenderPass (Texture *colorAttachment, RenderPass::LoadOperation colorLoadOperation, Texture *depthAttachment, RenderPass::LoadOperation depthLoadOperation) |
| Create a render pass. More... | |
| RenderPass * | CreateAttachmentlessRenderPass (const glm::uvec2 &size, uint32_t msaaSamples) |
| Create an attachmentless render pass. More... | |
| void | FreePasses (const Texture *attachment) |
| Free all render passes that contain the given attachment. More... | |
Responsible for allocating render passes and framebuffers.
| Video::RenderPassAllocator::RenderPassAllocator | ( | ) |
Create a new render pass allocator.
|
virtual |
Destructor.
| RenderPass * Video::RenderPassAllocator::CreateAttachmentlessRenderPass | ( | const glm::uvec2 & | size, |
| uint32_t | msaaSamples | ||
| ) |
Create an attachmentless render pass.
| size | The framebuffer size. |
| msaaSamples | Number of MSAA samples. |
| RenderPass * Video::RenderPassAllocator::CreateRenderPass | ( | Texture * | colorAttachment, |
| RenderPass::LoadOperation | colorLoadOperation, | ||
| Texture * | depthAttachment, | ||
| RenderPass::LoadOperation | depthLoadOperation | ||
| ) |
Create a render pass.
| colorAttachment | The color attachment to draw to. |
| colorLoadOperation | What to do with the previous contents of the color attachment. |
| depthAttachment | The depth attachment to draw to. |
| depthLoadOperation | What to do with the previous contents of the depth attachment. |
| void Video::RenderPassAllocator::FreePasses | ( | const Texture * | attachment | ) |
Free all render passes that contain the given attachment.
| attachment | The attachment. |