summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-19 14:01:34 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-19 14:10:41 -0700
commit947cb6ae2d78c724a36ab004061dc99cd911969b (patch)
treee2b433c63d171872558c4d85a0e4162ccbe0fb68 /examples
parent411b24361e31503171b2940ebd44dc436550a716 (diff)
Emit `#line` directives more aggressively
We now output a line directive for (nearly) every declaration, statement, and modifier, so that hopefully there will be fewer cases where a downstream error doesn't point to the correct line. This exposes a lot of issues where we can/should clean up the simplicity of the code we emit (e.g., not output redundant parens; tracking source locations for types better). These kinds of issues will need to be addressed in follow-on changes. A few big ones: - Because GLSL doesn't allow for file names in `#line` directives, we really need to expose some data that can clean up error messages (or can be used by an application to do the same) so that they know which file is which. - We really need a command line option (and an equivalent API flag) to turn off emission of `#line` directies, so that the user can get moderately clean code as output.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions