MaikKlein / rlsl

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

Extension mechanism? #66

Open kazimuth opened 5 years ago

kazimuth commented 5 years ago

I'm curious how RLSL handles vulkan extensions. For example, I'm interested in doing some GPGPU stuff with RLSL, which means I'd probably want to use e.g. vulkan subgroups for efficient sorts and stuff. Is there a way to opt-in to these extensions in a shader?

MaikKlein commented 5 years ago

At the moment there is no support for extensions, because there are other things that have a much higher priority right now.

But extensions like subgroups etc are trivial to support. Everything that just adds functionality on top is trivial, extensions that require different codegen will be a bit more tricky.

I just haven't designed it yet.