18#ifndef INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER
19#define INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER
27#include <glad/vulkan.h>
73 static std::unique_ptr<CFramebuffer>
Create(
74 CDevice* device,
const char* name,
Represents a texture object.
Definition: TextureManager.h:271
IFramebuffer stores attachments which should be used by backend as rendering destinations.
Definition: IFramebuffer.h:87
Definition: Framebuffer.h:43
AttachmentStoreOp GetDepthStencilAttachmentStoreOp() const
Definition: Framebuffer.h:65
DeviceObjectUID GetUID() const
Definition: Framebuffer.h:67
CTexture * GetDepthStencilAttachment()
Definition: Framebuffer.h:60
VkFramebuffer GetFramebuffer() const
Definition: Framebuffer.h:56
const ColorAttachments & GetColorAttachments()
Definition: Framebuffer.h:59
AttachmentLoadOp m_ColorAttachmentLoadOp
Definition: Framebuffer.h:89
AttachmentStoreOp m_ColorAttachmentStoreOp
Definition: Framebuffer.h:90
AttachmentStoreOp GetColorAttachmentStoreOp() const
Definition: Framebuffer.h:63
DeviceObjectUID m_UID
Definition: Framebuffer.h:81
uint32_t m_SampleCount
Definition: Framebuffer.h:87
VkRenderPass m_RenderPass
Definition: Framebuffer.h:94
AttachmentStoreOp m_DepthStencilAttachmentStoreOp
Definition: Framebuffer.h:92
AttachmentLoadOp m_DepthStencilAttachmentLoadOp
Definition: Framebuffer.h:91
AttachmentLoadOp GetDepthStencilAttachmentLoadOp() const
Definition: Framebuffer.h:64
CColor m_ClearColor
Definition: Framebuffer.h:83
ColorAttachments m_ColorAttachments
Definition: Framebuffer.h:99
uint32_t m_Width
Definition: Framebuffer.h:85
CDevice * m_Device
Definition: Framebuffer.h:79
const CColor & GetClearColor() const override
Returns a clear color for all color attachments of the framebuffer.
Definition: Framebuffer.h:49
VkRenderPass GetRenderPass() const
Definition: Framebuffer.h:55
static std::unique_ptr< CFramebuffer > Create(CDevice *device, const char *name, SColorAttachment *colorAttachment, SDepthStencilAttachment *depthStencilAttachment)
Definition: Framebuffer.cpp:40
CTexture * m_DepthStencilAttachment
Definition: Framebuffer.h:100
IDevice * GetDevice() override
Definition: Framebuffer.cpp:129
uint32_t GetWidth() const override
Definition: Framebuffer.h:51
uint32_t GetSampleCount() const
Definition: Framebuffer.h:53
AttachmentLoadOp GetColorAttachmentLoadOp() const
Definition: Framebuffer.h:62
~CFramebuffer() override
Definition: Framebuffer.cpp:122
VkFramebuffer m_Framebuffer
Definition: Framebuffer.h:95
uint32_t GetHeight() const override
Definition: Framebuffer.h:52
uint32_t m_Height
Definition: Framebuffer.h:86
Definition: SwapChain.h:49
Definition: Buffer.cpp:37
static constexpr DeviceObjectUID INVALID_DEVICE_OBJECT_UID
Definition: DeviceObjectUID.h:41
uint32_t DeviceObjectUID
Unique identifier for a device object.
Definition: DeviceObjectUID.h:40
AttachmentStoreOp
Store operation is set for each attachment, what should be done with its content on EndFramebufferPas...
Definition: IFramebuffer.h:54
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:39
Definition: Canvas2D.h:30
Definition: IFramebuffer.h:62
Definition: IFramebuffer.h:70