google / shaderc

A collection of tools, libraries, and tests for Vulkan shader compilation.
Other
1.85k stars 362 forks source link

Add support for more optimization passes from SPIRV-Tools #373

Open haasn opened 7 years ago

haasn commented 7 years ago

I noticed that SPIRV-Tools mentions quite a number of them: https://github.com/KhronosGroup/SPIRV-Tools#optimizer

Despite this, it seems only “Strip debug info” and “Unify constants” are exposed via shaderc. Would it make sense to expose the rest?

antiagainst commented 7 years ago

Yes, that's planned. Thanks for reporting! :)

dneto0 commented 7 years ago

Agreed. SPIRV-Tools is getting the ability to express higher-level sets of passes for various purposes. See https://github.com/KhronosGroup/SPIRV-Tools/pull/817

Once that PR goes in, it would make sense to invoke those higher-level sets.