Rust-GPU / rust-gpu

🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
https://rust-gpu.github.io
Apache License 2.0
980 stars 27 forks source link

Panic structurization improvements #20

Closed Firestar99 closed 1 month ago

Firestar99 commented 2 months ago

This PR improves structurization of panics and other functions that exit the invocation, like OpKill (discard; in glsl) in fragment shaders. This should hopefully reduce the amount of structurization errors in the resulting spv.

Mainly developed by @eddyb with some test fixes by @LegNeato

Firestar99 commented 1 month ago

Me neither, really, way too deep in compiler code. But it works fine in my project, so feel free to hit that merge button :D