summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/3rdparty/glslang/Test/310.frag
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/310.frag')
-rw-r--r--3rdparty/bgfx/3rdparty/glslang/Test/310.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/310.frag b/3rdparty/bgfx/3rdparty/glslang/Test/310.frag
index e9f03950041..6814e6c5390 100644
--- a/3rdparty/bgfx/3rdparty/glslang/Test/310.frag
+++ b/3rdparty/bgfx/3rdparty/glslang/Test/310.frag
@@ -429,3 +429,23 @@ void blendFoo(layout(blend_support_hsl_luminosity) vec3 v) { } // ERROR, only on
layout(blend_support_flizbit) out; // ERROR, no flizbit
out vec4 outAA[2][2]; // ERROR
+
+void devi()
+{
+ gl_DeviceIndex; // ERROR, no extension
+ gl_ViewIndex; // ERROR, no extension
+}
+
+#ifdef GL_EXT_device_group
+#extension GL_EXT_device_group : enable
+#endif
+
+#ifdef GL_EXT_device_group
+#extension GL_EXT_multiview : enable
+#endif
+
+void devie()
+{
+ gl_DeviceIndex;
+ gl_ViewIndex;
+}