18#ifndef INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER
19#define INCLUDED_RENDERER_BACKEND_VULKAN_FRAMEBUFFER
25#include <glad/vulkan.h>
71 static std::unique_ptr<CFramebuffer>
Create(
72 CDevice* device,
const char* name,
Represents a texture object.
Definition: TextureManager.h:262
IFramebuffer stores attachments which should be used by backend as rendering destinations.
Definition: IFramebuffer.h:85
Definition: Framebuffer.h:41
AttachmentStoreOp GetDepthStencilAttachmentStoreOp() const
Definition: Framebuffer.h:63
DeviceObjectUID GetUID() const
Definition: Framebuffer.h:65
CTexture * GetDepthStencilAttachment()
Definition: Framebuffer.h:58
VkFramebuffer GetFramebuffer() const
Definition: Framebuffer.h:54
const ColorAttachments & GetColorAttachments()
Definition: Framebuffer.h:57
AttachmentLoadOp m_ColorAttachmentLoadOp
Definition: Framebuffer.h:87
AttachmentStoreOp m_ColorAttachmentStoreOp
Definition: Framebuffer.h:88
AttachmentStoreOp GetColorAttachmentStoreOp() const
Definition: Framebuffer.h:61
DeviceObjectUID m_UID
Definition: Framebuffer.h:79
uint32_t m_SampleCount
Definition: Framebuffer.h:85
VkRenderPass m_RenderPass
Definition: Framebuffer.h:92
AttachmentStoreOp m_DepthStencilAttachmentStoreOp
Definition: Framebuffer.h:90
AttachmentLoadOp m_DepthStencilAttachmentLoadOp
Definition: Framebuffer.h:89
AttachmentLoadOp GetDepthStencilAttachmentLoadOp() const
Definition: Framebuffer.h:62
CColor m_ClearColor
Definition: Framebuffer.h:81
ColorAttachments m_ColorAttachments
Definition: Framebuffer.h:97
uint32_t m_Width
Definition: Framebuffer.h:83
CDevice * m_Device
Definition: Framebuffer.h:77
const CColor & GetClearColor() const override
Returns a clear color for all color attachments of the framebuffer.
Definition: Framebuffer.h:47
VkRenderPass GetRenderPass() const
Definition: Framebuffer.h:53
static std::unique_ptr< CFramebuffer > Create(CDevice *device, const char *name, SColorAttachment *colorAttachment, SDepthStencilAttachment *depthStencilAttachment)
Definition: Framebuffer.cpp:38
CTexture * m_DepthStencilAttachment
Definition: Framebuffer.h:98
IDevice * GetDevice() override
Definition: Framebuffer.cpp:127
uint32_t GetWidth() const override
Definition: Framebuffer.h:49
uint32_t GetSampleCount() const
Definition: Framebuffer.h:51
AttachmentLoadOp GetColorAttachmentLoadOp() const
Definition: Framebuffer.h:60
~CFramebuffer() override
Definition: Framebuffer.cpp:120
VkFramebuffer m_Framebuffer
Definition: Framebuffer.h:93
uint32_t GetHeight() const override
Definition: Framebuffer.h:50
uint32_t m_Height
Definition: Framebuffer.h:84
Definition: SwapChain.h:44
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: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
unsigned int uint32_t
Definition: wposix_types.h:53