diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-12 18:00:45 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-15 15:33:39 +0200 |
commit | 6a8eb26bbafa32ef6561792c52ec72f80007377a (patch) | |
tree | 7623d8511a1ecd9654c8ae2dd41672bc11e8f2e9 /src/gui/rhi/qrhi_p.h | |
parent | a0bfa4e1f8e223927cbb285bb17d1a00a5c2d4b6 (diff) |
rhi: Add a feature flag for readback format support
Indicate that doing a QRhiResourceUpdateBatch::readBackTexture() for
texture formats other than RGBA/BGRA is not necessarily supported at
run time.
Change-Id: Ie9ca9546a3af9bff142b875f1ecf26bf26bcc442
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi_p.h')
-rw-r--r-- | src/gui/rhi/qrhi_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index 9f94fea1dc..12fd3c46c2 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -1457,7 +1457,8 @@ public: TexelFetch, RenderToNonBaseMipLevel, UIntAttributes, - ScreenSpaceDerivatives + ScreenSpaceDerivatives, + ReadBackAnyTextureFormat }; enum BeginFrameFlag { |