hadronized / glsl

GLSL parser for Rust
191 stars 27 forks source link

Support GLSL460 #69

Closed hadronized closed 5 years ago

hadronized commented 5 years ago

It’s rare that I do that but I think I will incorporate this change in a minor patch. For a single reason: the sole change from GLSL450 is that the compiler now accepts extra semicolons at global scope.

Accepting GLSL450 with that change is, to me, not a problem and if it becomes to anyone, I will add a feature flag to protect against that. But I really doubt it will ever be as it’s already the case. From my idea, I think that change is to allow starting a shader with ; (which sounds completely weird).

Also, the changelog from Khronos shows that it was reported from a Private Bug. I have no idea what it means but whatever.

I do this so that we can get going on with https://github.com/rust-gamedev/wg/issues/23.

hadronized commented 5 years ago

Correction: it allows empty lines with ;, too. No idea why someone would do that, but whatever. The world is a dark and weird place. Fixed.