MaikKlein / rlsl

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

Potentially implement a custom core library #60

Open MaikKlein opened 6 years ago

MaikKlein commented 6 years ago

Currently rlsl uses a custom libstd library that is compatible with the libstd that ships with Rust. The problem is that some things in core can't be translated to SPIR-V. For example Iterator for Range uses mem::swap behind the scenes which uses pointer math.

It might be possible to intercept some of those "bad" implementations. The alternative is to create a custom core.