]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/referenced_but_unassigned_output.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / referenced_but_unassigned_output.glsl
index 5b0e00d12ef959a25791d6503093ea71b72f3449..e1da44083723079d4c374bf89e027830c812030a 100644 (file)
@@ -1,4 +1,7 @@
-uniform mat4 projection;
+layout(push_constant) uniform Transform
+{
+       mat4 projection;
+};
 
 #pragma MSP stage(vertex)
 layout(location=0) in vec4 position;
@@ -21,8 +24,13 @@ void main()
        frag_color = vec4(color.rgb, alpha);
 }
 
+// Target API: Vulkan
+
 /* Expected output: vertex
-layout(location=0) uniform mat4 projection;
+layout(push_constant) uniform Transform
+{
+  mat4 projection;
+};
 layout(location=0) out vec4 eye_vertex;
 out VertexOut
 {