]> 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 aabff0892a2d4aa54b8286a026f8c969497fd18a..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,14 +24,19 @@ void main()
        frag_color = vec4(color.rgb, alpha);
 }
 
+// Target API: Vulkan
+
 /* Expected output: vertex
-uniform mat4 projection;
-out vec4 eye_vertex;
+layout(push_constant) uniform Transform
+{
+  mat4 projection;
+};
+layout(location=0) out vec4 eye_vertex;
 out VertexOut
 {
   vec4 color;
 };
-out float alpha;
+layout(location=1) out float alpha;
 void main()
 {
   gl_Position = projection*eye_vertex;
@@ -42,7 +50,7 @@ in VertexOut
 {
   vec4 color;
 };
-in float alpha;
+layout(location=1) in float alpha;
 void main()
 {
   frag_color = vec4(color.rgb, alpha);