forked from mirrors/0ad
265ed76131
Previously when checking if two SPIR-V shaders are identical the hashs of their file content would be compared and afterwards their (unhashed) file contents as well. Comparing the file contents isn't necessary, as the hash function used is a cryptographic one, which guarantees the hash can be used as a representative of the hashed data.
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