mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
More matrix compilation tests
This commit is contained in:
parent
3d303eb59f
commit
68507eceea
2 changed files with 23 additions and 0 deletions
11
tests/matrix-09.glsl
Normal file
11
tests/matrix-09.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* FAIL - matrix-to-matrix constructors are not available in GLSL 1.10 */
|
||||
|
||||
uniform mat3 a;
|
||||
|
||||
void main()
|
||||
{
|
||||
mat2 m;
|
||||
|
||||
m = mat2(a);
|
||||
gl_Position = gl_Vertex;
|
||||
}
|
||||
12
tests/matrix-10.glsl
Normal file
12
tests/matrix-10.glsl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#version 120
|
||||
/* PASS */
|
||||
|
||||
uniform mat3 a;
|
||||
|
||||
void main()
|
||||
{
|
||||
mat2 m;
|
||||
|
||||
m = mat2(a);
|
||||
gl_Position = gl_Vertex;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue