diff options
| author | Yong He <yonghe@outlook.com> | 2017-10-23 21:40:53 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-10-23 21:40:53 -0400 |
| commit | 0ed979e68e8030848aac8af28f82ca1c164e75b6 (patch) | |
| tree | cf6e4b31234d667f6cf5944eec47cb40de65ab40 /tests/bugs | |
| parent | 9882956fb76e8e1d8e7ca96c2c129da9cf784fec (diff) | |
| parent | ab64cf2ec05980d72cb2bad45e629d10ebbefdc1 (diff) | |
Merge https://github.com/shader-slang/slang
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/matrix-mult.glsl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs/matrix-mult.glsl b/tests/bugs/matrix-mult.glsl new file mode 100644 index 000000000..b427dee14 --- /dev/null +++ b/tests/bugs/matrix-mult.glsl @@ -0,0 +1,28 @@ +//TEST:COMPARE_GLSL:-profile glsl_fragment_450 -no-checking +// matrix-mult.glsl +#version 450 + +// Confirm that we don't exchange the operands +// to a matrix-vector multiply when we recognize +// one in "raw" GLSL code. + +#ifdef __SLANG__ +__import empty; +#endif + +layout(binding = 0) +uniform C +{ + mat4x4 m; +}; + +layout(location = 0) +in vec4 v; + +layout(location = 0) +out vec4 r; + +void main() +{ + r = m * v; +} |
