weston/libweston/renderer-gl
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
..
egl-glue.c gl-renderer: Move EGL display creation to egl-glue.c 2020-02-18 18:11:26 +13:00
fragment.glsl gl-renderer: rename shader debug flag to green_tint 2021-02-25 13:16:02 +02:00
gl-renderer-internal.h gl-renderer: split into gl-shaders.c 2021-02-25 13:16:02 +02:00
gl-renderer.c gl-renderer: split into gl-shaders.c 2021-02-25 13:16:02 +02:00
gl-renderer.h gl-renderer: Replace pbuffer-create args with struct 2020-03-20 15:25:24 +00:00
gl-shaders.c gl-renderer: dump failed shader source 2021-02-25 13:16:02 +02:00
meson.build gl-renderer: rewrite fragment shaders 2021-02-25 13:16:02 +02:00
vertex.glsl gl-renderer: move vertex shader into new file 2021-02-25 13:16:02 +02:00