0ad/source/tools/spirv
Ralph Sennhauser cf909a81db Add support for vendored spirv-reflect to compile.py
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>
2024-09-24 18:45:22 +02:00
..
compile.py Add support for vendored spirv-reflect to compile.py 2024-09-24 18:45:22 +02:00
get-nightly-shaders.sh Fix issues pointed out by shellcheck 2024-08-28 18:23:18 +02:00
README.md Add a markdownlint pre-commit hook 2024-08-27 10:06:31 +02:00
requirements.txt Adds script to generate SPIR-V from GLSL shaders. Refs #6636 2023-05-02 17:31:28 +00:00

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