]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/alias_types.glsl
Fix GLSL test cases so they pass the basic tests
[libs/gl.git] / tests / glsl / alias_types.glsl
index 0fda73e30ecc5c9d6b50bf83bc0b9118559c2eaf..5164867dfd160e2e8544589c3acf8b8ef964706d 100644 (file)
@@ -1,7 +1,10 @@
 typedef vec4 myvec4;
 typedef mat4x4 mymat4;
 
-uniform mymat4 mvp;
+layout(push_constant) uniform Transform
+{
+       mymat4 mvp;
+};
 
 #pragma MSP stage(vertex)
 layout(location=0) in myvec4 position;
@@ -10,8 +13,13 @@ void main()
        gl_Position = mvp*position;
 }
 
+// Target API: Vulkan
+
 /* Expected output: vertex
-layout(location=0) uniform mat4 mvp;
+layout(push_constant) uniform Transform
+{
+       mat4 mvp;
+};
 layout(location=0) in vec4 position;
 void main()
 {