KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.95k stars 819 forks source link

OpLines are incorrect for HLSL with #include #1574

Closed greg-lunarg closed 5 years ago

greg-lunarg commented 5 years ago

Execute the following on the files in the attached .zip:

glslangValidator.exe -D -V -e MainPs -g -Od -o foo4.frag.spv foo4.frag

Notice that the OpLines in the resulting SPIR-V indicate that all source came from foo4.frag, missing the fact that one statement came from the include file u1.h.

i1.zip

greg-lunarg commented 5 years ago

Fixed by #1593