Files
weston/libweston
Pekka Paalanen 5b86f366c7 gl-renderer: dump failed shader source
To help debugging shader compilation errors, print the shader source the
way it was given to the GLSL compiler and with line numbers that match
the compiler error messages.

This is necessary because some snippets are added at runtime to the
beginning, the source is not only what is in the respective .glsl file.

I did look into using #line directives, but you cannot put source file
names to it, only "source string numbers" which must be an integer
expression. If we used #line, the reader would need to know that string
number 0 is the version, string 1 is the config and string number 2 is
fragment.glsl. I think that would have been too cumbersome.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2021-02-25 13:16:02 +02:00
..
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2021-02-24 10:01:17 -05:00
2021-02-24 10:01:17 -05:00
2018-12-09 14:50:54 +02:00
2020-01-29 09:49:41 +00:00
2020-01-29 09:49:41 +00:00
2021-02-24 10:01:17 -05:00
2016-06-23 17:44:54 +03:00
2016-06-23 17:44:54 +03:00
2021-02-24 10:01:17 -05:00