hadronized / luminance-rs

Type-safe, type-level and stateless Rust graphics framework
https://phaazon.github.io/learn-luminance/
Other
1.09k stars 59 forks source link

Correct line numbers in GLSL errors #622

Open ColonelThirtyTwo opened 1 year ago

ColonelThirtyTwo commented 1 year ago

Adds a #line directive to the GLSL headers that luminance-gl and luminance-webgl prepend to GLSL source, so that if an error occurs, the reported line number will match the user's provided GLSL source rather than being offset a few lines.