You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, we don't add #line directives to the merged shader sources, which makes reading line numbers a lot harder. To make it easier to debug compilation errors, the following changes should be made:
Each included shader file (and the prelude with #version and specialization constants) should be given a unique index.
In the merged source code, #line <line number> <source file index> declarations should be added, and the original #include macro should be commented out (for debugging purposes).
The shader compilation log should include the merged source code.
The text was updated successfully, but these errors were encountered:
I think so, yes. I'm not sure where else we could put it, and the error diagnostics aren't useful without it. But it might also completely flood the log file...
Right now, we don't add
#line
directives to the merged shader sources, which makes reading line numbers a lot harder. To make it easier to debug compilation errors, the following changes should be made:#version
and specialization constants) should be given a unique index.#line <line number> <source file index>
declarations should be added, and the original#include
macro should be commented out (for debugging purposes).The text was updated successfully, but these errors were encountered: