summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhimetal.mm
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-06-28 15:06:06 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-07-01 17:34:47 +0200
commit058c52fc2a6476f688d4b07d6f24516e26d0a8f5 (patch)
tree98959d8fceb821377a64f1b4129f7e9e747919aa /src/gui/rhi/qrhimetal.mm
parent201a22a4d2a3906a2f6cbba1e50d5b83a21a10f6 (diff)
rhi: Improve base vertex/instance support
Have feature flags as appropriate. OpenGL is causing a mess here but let's support what we can since some of this will become relevant in more sophisticated mesh drawing cases with 3D in particular. Change-Id: Idfa7b4642ec87147978e03d78d6233efbd151491 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhimetal.mm')
-rw-r--r--src/gui/rhi/qrhimetal.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm
index 09b80c831d..fa537a504b 100644
--- a/src/gui/rhi/qrhimetal.mm
+++ b/src/gui/rhi/qrhimetal.mm
@@ -527,6 +527,10 @@ bool QRhiMetal::isFeatureSupported(QRhi::Feature feature) const
return false;
case QRhi::VertexShaderPointSize:
return true;
+ case QRhi::BaseVertex:
+ return true;
+ case QRhi::BaseInstance:
+ return true;
default:
Q_UNREACHABLE();
return false;