mc-imperial / shader-compiler-bugs

A collection of shader compiler bugs.
MIT License
49 stars 9 forks source link

Intel compiler front-end does not accept valid code #60

Open afd opened 7 years ago

afd commented 7 years ago

See https://github.com/mc-imperial/shader-compiler-bugs/tree/master/Intel-HD-Graphics-520-Windows/compile_errors/struct_issue

This code:

version 440

uniform float x;

struct T { mat2 c; };

void f() { T(mat2(x)); }

is rejected by Intel's Windows driver (version 21.20.16.4590), with this error:

ERROR: 0:11: 'constructor' : cannot convert parameter 1 from 'float' to 'float'