aboutsummaryrefslogtreecommitdiff
path: root/tests/glslparsertest/glsl2/const-matrix-multiply-02.frag
blob: 9889b9442f83ec4c280e0826b39c43aa03af22bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// [config]
// expect_result: pass
// glsl_version: 1.20
// glsles_version: 1.00
//
// # NOTE: Config section was auto-generated from file
// # NOTE: 'glslparser.tests' at git revision
// # NOTE: 6cc17ae70b70d150aa1751f8e28db7b2a9bd50f0
// [end config]

#ifndef GL_ES
#version 120
#else
#version 100
#endif

void main()
{
   const mat3x2 c1 = mat3x2(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
   const mat4x3 c2 = mat4x3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0,
                            9.0, 10.0, 11.0, 12.0);
   /* Should be:
    * 22 49 76  103
    * 28 64 100 136
    */

   const mat4x2 m = c1 * c2;
}