2020-03-24 21:05:32 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "VulkanGraphicsResources.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
namespace Vulkan
|
|
|
|
|
{
|
2020-04-01 02:17:49 +02:00
|
|
|
DECLARE_REF(RenderPass);
|
2020-03-24 21:05:32 +01:00
|
|
|
class Framebuffer
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-04-01 02:17:49 +02:00
|
|
|
Framebuffer(PGraphics graphics, PRenderPass renderpass, Gfx::PRenderTargetLayout renderTargetLayout);
|
2020-03-24 21:05:32 +01:00
|
|
|
virtual ~Framebuffer();
|
|
|
|
|
inline VkFramebuffer getHandle() const
|
|
|
|
|
{
|
|
|
|
|
return handle;
|
|
|
|
|
}
|
|
|
|
|
private:
|
2020-04-01 02:17:49 +02:00
|
|
|
PGraphics graphics;
|
2020-03-24 21:05:32 +01:00
|
|
|
VkFramebuffer handle;
|
2020-04-01 02:17:49 +02:00
|
|
|
Gfx::PRenderTargetLayout layout;
|
|
|
|
|
PRenderPass renderPass;
|
2020-03-24 21:05:32 +01:00
|
|
|
};
|
|
|
|
|
DEFINE_REF(Framebuffer);
|
|
|
|
|
}
|
|
|
|
|
}
|