MaikKlein / rlsl

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

Implement proper support for unions #39

Open MaikKlein opened 6 years ago

MaikKlein commented 6 years ago

SPIR-V doesn't offer any support for unions, but it should be easy to implement them with MIR. This is needed for space efficient enums.

MaikKlein commented 6 years ago

Not so easy to implement because SPIR-V doesn't support arbitrary casts.