third_party/spirv-cross/tnt/README.md
To update the version of SPIRV-Cross used in this project, run the update_spirv-cross.sh script.
The script is located in third_party/spirv-cross/tnt.
From the root of the repository, you can run it like this:
Usage:
./third_party/spirv-cross/tnt/update_spirv-cross.sh <version_tag>
or
./third_party/spirv-cross/tnt/update_spirv-cross.sh --sha <commit_sha>
For example, to update to a specific release:
./third_party/spirv-cross/tnt/update_spirv-cross.sh 2023-08-23
To update to a specific commit:
./third_party/spirv-cross/tnt/update_spirv-cross.sh --sha a1b2c3d4
You can find the latest version number on the SPIRV-Cross releases page: https://github.com/KhronosGroup/SPIRV-Cross/releases
The script will automatically apply the following patches:
0001-convert-floats-to-their-smallest-string-representati.patch0002-localeconv-api-level-check.patchPlease be sure to test Filament before uploading your CL.
The Filament-specific CMakeLists.txt under the tnt directory has the following changes made from
spirv-cross's provided CMakeLists.txt:
spirv-cross librariesspirv-cross executablespirv-cross test casesconvert_to_smallest_string in spirv_common.hpp and used for float conversionTo see all changes, run the following diff command from the third_party/spirv-cross directory:
diff CMakeLists.txt tnt/CMakeLists.txt