mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 22:03:56 -07:00
The script build-archive.sh sets a variable SPIRV_REFLECT, even respects it if it's set in env but without support from the compile.py script for it there isn't much point. This commit adds support SPIRV_REFLECT in compile.py and and adds a fallback to use vendored spirv-reflect for when the envvar is unset and the tool can't be found in PATH Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com> |
||
|---|---|---|
| .. | ||
| compile.py | ||
| get-nightly-shaders.sh | ||
| README.md | ||
| requirements.txt | ||
Instructions
Install python 3 and the python dependencies
pip install -r requirements.txt
Install glslc and spirv-tools 2023+ (the easiest way is to install Vulkan SDK)
Run the compile.py script
python compile.py path-to-folder-with-input-mods mod-output-path rules-path