Debian Codegraph @

third_party/spirv-tools/FILAMENT_README.md

raw
1 When updating spirv-tools to a new version, make sure to preserve all the changes marked with
2 the following in `CMakeLists.txt` and `source/CMakeLists.txt`:
3
4 `# Filament specific changes`
5
6 You can easily apply these changes by running the following command at Filament's root:
7
8 ```
9 git apply third_party/spirv-tools/filament-specific-changes.patch
10 ```
11
12 The following procedure can be used to update spirv-tools. Note that there is a secondary repository
13 that needs to be downloaded (spirv-headers).
14
15 ```
16 curl -L https://github.com/KhronosGroup/spirv-tools/archive/master.zip > master.zip
17 unzip master.zip
18 rsync -r SPIRV-Tools-master/ spirv-tools/ --delete
19 rm -rf SPIRV-Tools-master master.zip
20 curl -L https://github.com/KhronosGroup/spirv-headers/archive/master.zip > master.zip
21 unzip master.zip
22 mv SPIRV-Headers-master/ spirv-tools/external/spirv-headers
23 rm master.zip
24
25 git add spirv-tools
26 ```
27
28 Edit the .gitignore so it doesn't prevent `spirv-headers` from being committed.
29
30 Finally, remember to bring back the Filament-specific changes in CMakeLists.