Adding benchmark

This commit is contained in:
Dynamitos
2024-07-05 12:02:46 +02:00
parent 8418cdbd11
commit fd8dc5ed0f
47 changed files with 1071 additions and 1010 deletions
+2 -2
View File
@@ -12,14 +12,14 @@ class TextureAsset : public Asset {
virtual ~TextureAsset();
virtual void save(ArchiveBuffer& buffer) const override;
virtual void load(ArchiveBuffer& buffer) override;
void setTexture(Gfx::OTexture _texture);
Gfx::PTexture getTexture() { return texture; }
void setTexture(Array<uint8> data) { ktxData = std::move(data); }
uint32 getWidth();
uint32 getHeight();
private:
Gfx::OTexture texture;
bool normalMap;
Array<uint8> ktxData;
friend class TextureLoader;
};
DEFINE_REF(TextureAsset)