shader-slang / slang

Making it easier to work with shaders
http://shader-slang.com
Other
3.22k stars 216 forks source link

Neaten playground output with --line-directive-mode none #5752

Open expipiplus1 opened 15 hours ago

expipiplus1 commented 15 hours ago

the #line preprocessor directives are just noise in the human readable output

patelshu89 commented 10 hours ago

it is used to control the line numbers and filenames reported by the compiler in error messages and debugging information. This can be particularly useful in scenarios where code is generated by tools or macros, as it allows the compiler to refer back to the original source file and line number, making it easier to trace errors back to their source.

Aren't they useful?