This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#include "GfxCore/Framebuffer.h"
#include "rbx/Profiler.h"
namespace RBX
{
namespace Graphics
{
Renderbuffer::Renderbuffer(Device* device, Texture::Format format, unsigned int width, unsigned int height, unsigned int samples)
: Resource(device)
, format(format)
, width(width)
, height(height)
, samples(samples)
{
RBXPROFILER_COUNTER_ADD("memory/gpu/renderbuffer", Texture::getImageSize(format, width, height) * samples);
}
Renderbuffer::~Renderbuffer()
{
RBXPROFILER_COUNTER_SUB("memory/gpu/renderbuffer", Texture::getImageSize(format, width, height) * samples);
}
Framebuffer::Framebuffer(Device* device, unsigned int width, unsigned int height, unsigned int samples)
: Resource(device)
, width(width)
, height(height)
, samples(samples)
{
}
Framebuffer::~Framebuffer()
{
}
}
}