diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/matrixError.vert')
-rw-r--r-- | chromium/third_party/glslang/src/Test/matrixError.vert | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/matrixError.vert b/chromium/third_party/glslang/src/Test/matrixError.vert new file mode 100644 index 00000000000..3c8cc11fec5 --- /dev/null +++ b/chromium/third_party/glslang/src/Test/matrixError.vert @@ -0,0 +1,22 @@ +#version 120 + +attribute vec3 v3; + +uniform mat3x2 m32; + +const mat2x4 m24 = mat2x4(1.0, 2.0, + 3.0, 4.0, + 3.0, 4.0, + 3.0, 4.0, 5.0); // ERROR, too many arguments + +void main() +{ + mat2x3 m23; + vec3 a, b; + + a = v3 * m23; // ERROR, type mismatch + b = m32 * v3; // ERROR, type mismatch + m23.xy; // ERROR, can't use . + + gl_Position = vec4(m23 * m32 * v3, m24[2][4]); // ERROR, 2 and 4 are out of range +} |