Initial commit

This commit is contained in:
2025-12-17 16:47:48 +00:00
commit 13813f3363
4964 changed files with 1079753 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
#pragma once
#include "Resource.hpp"
#include "Texture.hpp"
namespace Aya
{
namespace Graphics
{
class Renderbuffer : public Resource
{
public:
~Renderbuffer();
Texture::Format getFormat() const
{
return format;
}
unsigned int getWidth() const
{
return width;
}
unsigned int getHeight() const
{
return height;
}
unsigned int getSamples() const
{
return samples;
}
protected:
Renderbuffer(Device* device, Texture::Format format, unsigned int width, unsigned int height, unsigned int samples);
Texture::Format format;
unsigned int width;
unsigned int height;
unsigned int samples;
};
class Framebuffer : public Resource
{
public:
~Framebuffer();
virtual void download(void* data, unsigned int size) = 0;
unsigned int getWidth() const
{
return width;
}
unsigned int getHeight() const
{
return height;
}
unsigned int getSamples() const
{
return samples;
}
protected:
Framebuffer(Device* device, unsigned int width, unsigned int height, unsigned int samples);
unsigned int width;
unsigned int height;
unsigned int samples;
};
} // namespace Graphics
} // namespace Aya