]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/alias_types.glsl
Follow type aliases in TypeResolver
[libs/gl.git] / tests / glsl / alias_types.glsl
diff --git a/tests/glsl/alias_types.glsl b/tests/glsl/alias_types.glsl
new file mode 100644 (file)
index 0000000..8e6e9a9
--- /dev/null
@@ -0,0 +1,20 @@
+typedef vec4 myvec4;
+typedef mat4x4 mymat4;
+
+uniform mymat4 mvp;
+
+#pragma MSP stage(vertex)
+layout(location=0) in myvec4 position;
+void main()
+{
+       gl_Position = mvp*position;
+}
+
+/* Expected output: vertex
+uniform mat4 mvp;
+layout(location=0) in vec4 position;
+void main()
+{
+       gl_Position = mvp*position;
+}
+*/