1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:07:36 +00:00

LibGL: Attach device image to texture object and upload image data

This commit is contained in:
Stephan Unverwerth 2021-12-22 22:00:08 +01:00 committed by Brian Gianforcaro
parent 908a6339ec
commit 39545d4b49
3 changed files with 63 additions and 0 deletions

View file

@ -7,6 +7,7 @@
#pragma once
#include <AK/RefCounted.h>
#include <LibSoftGPU/Image.h>
namespace GL {
@ -18,6 +19,12 @@ public:
virtual bool is_texture_2d() const { return false; }
virtual bool is_texture_3d() const { return false; }
virtual bool is_cube_map() const { return false; }
RefPtr<SoftGPU::Image> device_image() { return m_device_image; }
void set_device_image(RefPtr<SoftGPU::Image> image) { m_device_image = image; }
private:
RefPtr<SoftGPU::Image> m_device_image;
};
}