mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
LibGL: Attach device image to texture object and upload image data
This commit is contained in:
parent
908a6339ec
commit
39545d4b49
Notes:
sideshowbarker
2024-07-17 22:16:01 +09:00
Author: https://github.com/sunverwerth
Commit: 39545d4b49
Pull-request: https://github.com/SerenityOS/serenity/pull/11288
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta
3 changed files with 63 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue