18#ifndef INCLUDED_RENDERER_BACKEND_VULKAN_RENDERPASSMANAGER
19#define INCLUDED_RENDERER_BACKEND_VULKAN_RENDERPASSMANAGER
23#include <glad/vulkan.h>
25#include <unordered_map>
A helper class to store unique render passes.
Definition: RenderPassManager.h:43
CDevice * m_Device
Definition: RenderPassManager.h:58
CRenderPassManager(CDevice *device)
Definition: RenderPassManager.cpp:84
VkRenderPass GetOrCreateRenderPass(SColorAttachment *colorAttachment, SDepthStencilAttachment *depthStencilAttachment)
Definition: RenderPassManager.cpp:100
~CRenderPassManager()
Definition: RenderPassManager.cpp:89
std::unordered_map< Desc, VkRenderPass, DescHash, DescEqual > m_RenderPassMap
Definition: RenderPassManager.h:80
AttachmentStoreOp
Store operation is set for each attachment, what should be done with its content on EndFramebufferPas...
Definition: IFramebuffer.h:52
Backend
Definition: Backend.h:28
AttachmentLoadOp
Load operation is set for each attachment, what should be done with its content on BeginFramebufferPa...
Definition: IFramebuffer.h:37
Definition: VideoMode.h:29
Definition: IFramebuffer.h:60
Definition: IFramebuffer.h:68
Definition: RenderPassManager.h:61
VkFormat format
Definition: RenderPassManager.h:62
AttachmentStoreOp storeOp
Definition: RenderPassManager.h:64
AttachmentLoadOp loadOp
Definition: RenderPassManager.h:63
Definition: RenderPassManager.h:77
bool operator()(const Desc &lhs, const Desc &rhs) const
Definition: RenderPassManager.cpp:64
Definition: RenderPassManager.h:73
size_t operator()(const Desc &desc) const
Definition: RenderPassManager.cpp:38
Definition: RenderPassManager.h:67
std::optional< Attachment > colorAttachment
Definition: RenderPassManager.h:69
std::optional< Attachment > depthStencilAttachment
Definition: RenderPassManager.h:70
uint8_t sampleCount
Definition: RenderPassManager.h:68
unsigned char uint8_t
Definition: wposix_types.h:51