summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhivulkan.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2020-06-12 18:00:45 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2020-06-15 15:33:39 +0200
commit6a8eb26bbafa32ef6561792c52ec72f80007377a (patch)
tree7623d8511a1ecd9654c8ae2dd41672bc11e8f2e9 /src/gui/rhi/qrhivulkan.cpp
parenta0bfa4e1f8e223927cbb285bb17d1a00a5c2d4b6 (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/qrhivulkan.cpp')
-rw-r--r--src/gui/rhi/qrhivulkan.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp
index fdc80e1e80..ad6f5ebd8b 100644
--- a/src/gui/rhi/qrhivulkan.cpp
+++ b/src/gui/rhi/qrhivulkan.cpp
@@ -4052,6 +4052,8 @@ bool QRhiVulkan::isFeatureSupported(QRhi::Feature feature) const
return true;
case QRhi::ScreenSpaceDerivatives:
return true;
+ case QRhi::ReadBackAnyTextureFormat:
+ return true;
default:
Q_UNREACHABLE();
return false;