4 ms·
Exciting talk! And I'm happy to know that one of the leading shader devs from Rust community has successfully "embarked" :) Technology-wise, the compiler goes
by kvark 7y ago
Exciting talk! And I'm happy to know that one of the leading shader devs from Rust community has successfully "embarked" :)
Technology-wise, the compiler goes from MIR to SPIR-V. This is specific to Rust and different from the other direction Khronos has been exploring: https://github.com/KhronosGroup/LLVM-SPIRV-Backend https://github.com/KhronosGroup/LLVM-SPIRV-Backend . It's a bit sad that we can't all have nice things.
- the_mitsuhiko 7y agoMIR seems the better choice in rust land in general. I wonder if cranelift could be an alternative approach here in the future.
- maikklein_dev 7y agoI didn't choose cranelift because there was no real benefit for it. If the focus would have been on optimizations, I might have used it. The IR seems more friendly compared MIR, although I think there is a rewrite coming to make MIR more suitable for optimizations as well :). And I do quite a lot of transformations at the MIR level, so I am looking forward to a more optimization friendly IR.