forked from Dynamitos/Seele
Fixing memory leak with RefPtr
This commit is contained in:
1 parent
62c2d37cb3
commit
3ba8f2c2a0
37 files changed
+1675
-270
No files matched your search
@@ -5,18 +5,21 @@ namespace Seele
|
||||
{
|
||||
namespace Vulkan
|
||||
{
|
||||
DECLARE_REF(RenderPass);
|
||||
class Framebuffer
|
||||
{
|
||||
public:
|
||||
Framebuffer(WGraphics graphics);
|
||||
Framebuffer(PGraphics graphics, PRenderPass renderpass, Gfx::PRenderTargetLayout renderTargetLayout);
|
||||
virtual ~Framebuffer();
|
||||
inline VkFramebuffer getHandle() const
|
||||
{
|
||||
return handle;
|
||||
}
|
||||
private:
|
||||
WGraphics graphics;
|
||||
PGraphics graphics;
|
||||
VkFramebuffer handle;
|
||||
Gfx::PRenderTargetLayout layout;
|
||||
PRenderPass renderPass;
|
||||
};
|
||||
DEFINE_REF(Framebuffer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user