]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/missing_workgroup_size.glsl
Validate that compute shaders specify a workgroup size
[libs/gl.git] / tests / glsl / missing_workgroup_size.glsl
diff --git a/tests/glsl/missing_workgroup_size.glsl b/tests/glsl/missing_workgroup_size.glsl
new file mode 100644 (file)
index 0000000..376ebaa
--- /dev/null
@@ -0,0 +1,10 @@
+#pragma MSP stage(compute)
+layout(r32f) uniform image2D img;
+void main()
+{
+       imageStore(img, ivec2(gl_GlobalInvocationID.xy), vec4(1.0));
+}
+
+/* Expected error:
+<test>:3: No workgroup size qualifier found
+*/