From 6a8eb26bbafa32ef6561792c52ec72f80007377a Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 12 Jun 2020 18:00:45 +0200 Subject: 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 --- src/gui/rhi/qrhimetal.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/rhi/qrhimetal.mm') diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm index 0c42eaa3e9..46a121c812 100644 --- a/src/gui/rhi/qrhimetal.mm +++ b/src/gui/rhi/qrhimetal.mm @@ -570,6 +570,8 @@ bool QRhiMetal::isFeatureSupported(QRhi::Feature feature) const return true; case QRhi::ScreenSpaceDerivatives: return true; + case QRhi::ReadBackAnyTextureFormat: + return true; default: Q_UNREACHABLE(); return false; -- cgit v1.2.3