* Update SPIRV libraries - Update `spirv-cross` - Update `spirv-tools` - Update `glslang` `spirv-tools` contains a fix for an issue we reported (unnecessary promotions to highp in certain expressions). * Add SPIRV-Tools dependency to matinfo
862 B
862 B
When updating spirv-tools to a new version, make sure to preserve all the changes marked with
the following in CMakeLists.txt:
# Filament specific changes
The following procedure can be used to update spirv-tools. Note that there is a secondary repository that needs to be downloaded (spirv-headers).
curl -L https://github.com/KhronosGroup/spirv-tools/archive/master.zip > master.zip
unzip master.zip
rsync -r SPIRV-Tools-master/ spirv-tools/ --delete
rm -rf SPIRV-Tools-master master.zip
curl -L https://github.com/KhronosGroup/spirv-headers/archive/master.zip > master.zip
unzip master.zip
mv SPIRV-Headers-master/ spirv-tools/external/spirv-headers
rm master.zip
git add spirv-tools
Edit the .gitignore so it doesn't prevent spirv-headers from being committed.
Finally, remember to bring back the Filament-specific changes in CMakeLists.