MaikKlein / rlsl

Rust to SPIR-V compiler
Apache License 2.0
557 stars 14 forks source link

Make compute shaders save #57

Open MaikKlein opened 6 years ago

MaikKlein commented 6 years ago

The problem is rusts borrow system doesn't make a lot of sense for compute shaders because they are executed in isolation, at least how they are currently implemented in rlsl.

It is most likely UB if you access elements outside of your local workgroup.