You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
We will be relying on spirv-opt for actually making the generated spirv code go brrrrr, but right now there are no rust bindings for it, so we can't call it from Rust like we need to.
There are a couple of complications to this.
The code is all C++, and there's no C API
CMake, because of course
For the first point, the actual API for running the optimizer seems to be fairly trivial, so I see 2 paths forward for this.
Write a small C wrapper around the C++ API and write manual bindings for it
Try out cxx though my guess right now is that it is overkill
As for CMake, just as with our PhysX bindings, we will obviously just build it with cc so that downstream users won't hate us.
I'm putting this issue here for now, but I am thinking that this would probably be its own repo which contains the bindings/wrapper crates in it, and it would initially just be for the spirv-opt part of spirv-tools, but obviously could add the other tools as needed.