diff options
| author | Jonas Karlsson <jonas.karlsson@qt.io> | 2024-02-19 18:09:05 +0100 |
|---|---|---|
| committer | Jonas Karlsson <jonas.karlsson@qt.io> | 2024-02-22 23:08:34 +0100 |
| commit | aedbc7ba7a00d473764323969560bc30fba35523 (patch) | |
| tree | dbe2737748c1b889245f44beebb66345d254b9ef /src/corelib/serialization/qdatastream.cpp | |
| parent | 4c1e23c9d3053771c88449025ea332ce723ab665 (diff) | |
rhi: gl: Add R16F/R32F handling in pixel readback
When reading pixels back from a QRhiTexture if the format is R16F/R32F
then we will read pixels to a buffer with just a red component comprised
of (half) floats instead of the default case (RGBA). This is useful when
reading back a shadow map.
Change-Id: Iff2881992f0341252d5c565b5dd64bed078319bc
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/corelib/serialization/qdatastream.cpp')
0 files changed, 0 insertions, 0 deletions
