mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 13:47:48 +00:00
GEEKING
This commit is contained in:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user