add a test for matrix, fix a variable name

This commit is contained in:
qining
2016-05-06 18:56:33 -04:00
parent 25262b3fd9
commit 0c96db5a4c
3 changed files with 65 additions and 9 deletions

View File

@@ -99,4 +99,11 @@ float precise_func_parameter(float b, precise out float c) {
return a - b; // Not noContraction
}
mat3 matrix (mat2x3 a, mat3x2 b) {
mat2x3 c = mat2x3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0);
precise mat3 result;
result = (a + c) * b; // should be noContraction
return result;
}
void main(){}