blob: 3c8cc11fec57b5584aa222367f992a84fbeeb627 [file] [log] [blame]
John Kessenichf0fdc532013-02-04 23:54:58 +00001#version 120
2
3attribute vec3 v3;
4
5uniform mat3x2 m32;
6
7const mat2x4 m24 = mat2x4(1.0, 2.0,
8 3.0, 4.0,
9 3.0, 4.0,
John Kessenich23bdb292013-08-27 05:57:15 +000010 3.0, 4.0, 5.0); // ERROR, too many arguments
John Kessenichf0fdc532013-02-04 23:54:58 +000011
12void main()
13{
14 mat2x3 m23;
15 vec3 a, b;
16
John Kessenich23bdb292013-08-27 05:57:15 +000017 a = v3 * m23; // ERROR, type mismatch
18 b = m32 * v3; // ERROR, type mismatch
19 m23.xy; // ERROR, can't use .
John Kessenichf0fdc532013-02-04 23:54:58 +000020
John Kessenich23bdb292013-08-27 05:57:15 +000021 gl_Position = vec4(m23 * m32 * v3, m24[2][4]); // ERROR, 2 and 4 are out of range
John Kessenichf0fdc532013-02-04 23:54:58 +000022}