forked from mirrors/0ad
c4047b1cf2
For each program this parallelizes the generation of shaders by program combinations. This leads to significantly faster shader generation on systems with multiple CPU-cores. The resulting shaders are identical to the ones prior to this change.
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