18 #ifndef INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER 19 #define INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER 24 #include <glad/vulkan.h> 71 static std::unique_ptr<CFramebuffer>
Create(
72 CDevice* device,
const char* name,
77 static uint32_t m_LastAvailableUID = 1;
78 m_UID = m_LastAvailableUID++;
111 #endif // INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER AttachmentLoadOp
Load operation is set for each attachment, what should be done with its content on BeginFramebufferPa...
Definition: IFramebuffer.h:36
AttachmentStoreOp GetColorAttachmentStoreOp() const
Definition: Framebuffer.h:60
const CColor & GetClearColor() const override
Returns a clear color for all color attachments of the framebuffer.
Definition: Framebuffer.h:46
uint32_t m_Height
Definition: Framebuffer.h:88
VkFramebuffer m_Framebuffer
Definition: Framebuffer.h:97
AttachmentStoreOp GetDepthStencilAttachmentStoreOp() const
Definition: Framebuffer.h:62
AttachmentStoreOp
Store operation is set for each attachment, what should be done with its content on EndFramebufferPas...
Definition: IFramebuffer.h:51
AttachmentLoadOp m_ColorAttachmentLoadOp
Definition: Framebuffer.h:91
AttachmentLoadOp m_DepthStencilAttachmentLoadOp
Definition: Framebuffer.h:93
AttachmentLoadOp GetDepthStencilAttachmentLoadOp() const
Definition: Framebuffer.h:61
VkRenderPass m_RenderPass
Definition: Framebuffer.h:96
uint32_t GetSampleCount() const
Definition: Framebuffer.h:50
Definition: SwapChain.h:43
static std::unique_ptr< CFramebuffer > Create(CDevice *device, const char *name, SColorAttachment *colorAttachment, SDepthStencilAttachment *depthStencilAttachment)
Definition: Framebuffer.cpp:38
AttachmentLoadOp GetColorAttachmentLoadOp() const
Definition: Framebuffer.h:59
CDevice * m_Device
Definition: Framebuffer.h:81
Definition: Framebuffer.h:39
UID GetUID() const
Definition: Framebuffer.h:65
uint32_t GetWidth() const override
Definition: Framebuffer.h:48
VkFramebuffer GetFramebuffer() const
Definition: Framebuffer.h:53
Represents a texture object.
Definition: TextureManager.h:256
AttachmentStoreOp m_ColorAttachmentStoreOp
Definition: Framebuffer.h:92
uint32_t GetHeight() const override
Definition: Framebuffer.h:49
CTexture * GetDepthStencilAttachment()
Definition: Framebuffer.h:57
Definition: IFramebuffer.h:67
Backend
Definition: Backend.h:27
CFramebuffer()
Definition: Framebuffer.h:75
unsigned int uint32_t
Definition: wposix_types.h:53
Definition: VideoMode.h:28
AttachmentStoreOp m_DepthStencilAttachmentStoreOp
Definition: Framebuffer.h:94
uint32_t UID
Definition: Framebuffer.h:64
CColor m_ClearColor
Definition: Framebuffer.h:85
~CFramebuffer() override
Definition: Framebuffer.cpp:113
ColorAttachments m_ColorAttachments
Definition: Framebuffer.h:101
VkRenderPass GetRenderPass() const
Definition: Framebuffer.h:52
uint32_t m_SampleCount
Definition: Framebuffer.h:89
IDevice * GetDevice() override
Definition: Framebuffer.cpp:120
Definition: IFramebuffer.h:59
const ColorAttachments & GetColorAttachments()
Definition: Framebuffer.h:56
IFramebuffer stores attachments which should be used by backend as rendering destinations.
Definition: IFramebuffer.h:84
CTexture * m_DepthStencilAttachment
Definition: Framebuffer.h:102
UID m_UID
Definition: Framebuffer.h:83
uint32_t m_Width
Definition: Framebuffer.h:87