summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Model.cpp
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/LibGUI/Model.cpp
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/LibGUI/Model.cpp')
0 files changed, 0 insertions, 0 deletions