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/qrhid3d11.cpp | |
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/qrhid3d11.cpp')
-rw-r--r-- | src/gui/rhi/qrhid3d11.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhid3d11.cpp b/src/gui/rhi/qrhid3d11.cpp index 710ebd62cc..38f2993049 100644 --- a/src/gui/rhi/qrhid3d11.cpp +++ b/src/gui/rhi/qrhid3d11.cpp @@ -481,6 +481,8 @@ bool QRhiD3D11::isFeatureSupported(QRhi::Feature feature) const return true; case QRhi::ScreenSpaceDerivatives: return true; + case QRhi::ReadBackAnyTextureFormat: + return true; default: Q_UNREACHABLE(); return false; |