mc-imperial / shader-compiler-bugs

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

ANGLE generates invalid HLSL code for shader #59

Closed afd closed 7 years ago

afd commented 7 years ago

It appears that ANGLE generated invalid HLSL code for this shader:

https://github.com/mc-imperial/shader-compiler-bugs/blob/master/angle/front-end/vector-issue/example.frag

The following internal error is given:

" Failed to link shader program. C:\fakepath(94,45): error X3000: syntax error: unexpected token ',' C:\fakepath(94,1-53): error X3013: 'dyn_index_write_vec3': no matching 0 parameter function

Warning: D3D shader compilation failed with default flags. (ps_5_0) Retrying with skip validation C:\fakepath(94,45): error X3000: syntax error: unexpected token ',' C:\fakepath(94,1-53): error X3013: 'dyn_index_write_vec3': no matching 0 parameter function

Warning: D3D shader compilation failed with skip validation flags. (ps_5_0) Retrying with skip optimization C:\fakepath(94,45): error X3000: syntax error: unexpected token ',' C:\fakepath(94,1-53): error X3013: 'dyn_index_write_vec3': no matching 0 parameter function

Warning: D3D shader compilation failed with skip optimization flags. (ps_5_0) Failed to create D3D shaders. "

afd commented 7 years ago

Filed to ANGLE here:

https://bugs.chromium.org/p/angleproject/issues/detail?id=1921

afd commented 7 years ago

I confirmed this is fixed in Chrome Version 59.0.3071.115 (Official Build) (64-bit)