vulkano-rs / vulkano

Safe and rich Rust wrapper around the Vulkan API
Apache License 2.0
4.4k stars 435 forks source link

Use `shaderc` for shader compilation #911

Closed GabrielMajeri closed 5 years ago

GabrielMajeri commented 6 years ago

Currently, Vulkano uses glslangValidator to generate SPIR-V code, and there is a pull request to use spirv-opt too.

Instead of using multiple tools, we could use shaderc which has official Rust bindings.

The advantage is that shaderc is meant to be used as a library, not a binary, and it includes all of the glslang / spirv tools in it.

rukai commented 5 years ago

Resolved by https://github.com/vulkano-rs/vulkano/pull/947