summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGPU/Device.h
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-08-26 15:59:51 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-27 12:28:05 +0200
commit84c4b66721c893775938e40808486e1ce506732e (patch)
treee0269e8c65b33f8a1a7e05cc443a7e98c58fb8dd /Userland/Libraries/LibGPU/Device.h
parent6c80d121110e4fcc1c309bd50aabc9825dc75a93 (diff)
downloadserenity-84c4b66721c893775938e40808486e1ce506732e.zip
LibGL+LibGPU+LibSoftGPU: Implement texture pixel format support
In OpenGL this is called the (base) internal format which is an expectation expressed by the client for the minimum supported texel storage format in the GPU for textures. Since we store everything as RGBA in a `FloatVector4`, the only thing we do in this patch is remember the expected internal format, and when we write new texels we fixate the value for the alpha channel to 1 for two formats that require it. `PixelConverter` has learned how to transform pixels during transfer to support this.
Diffstat (limited to 'Userland/Libraries/LibGPU/Device.h')
-rw-r--r--Userland/Libraries/LibGPU/Device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGPU/Device.h b/Userland/Libraries/LibGPU/Device.h
index 5f4ef2a691..712bc1338a 100644
--- a/Userland/Libraries/LibGPU/Device.h
+++ b/Userland/Libraries/LibGPU/Device.h
@@ -57,7 +57,7 @@ public:
virtual RasterizerOptions options() const = 0;
virtual LightModelParameters light_model() const = 0;
- virtual NonnullRefPtr<Image> create_image(PixelType const&, u32 width, u32 height, u32 depth, u32 levels, u32 layers) = 0;
+ virtual NonnullRefPtr<Image> create_image(PixelFormat const&, u32 width, u32 height, u32 depth, u32 levels, u32 layers) = 0;
virtual void set_sampler_config(unsigned, SamplerConfig const&) = 0;
virtual void set_light_state(unsigned, Light const&) = 0;