0ad/source/tools/spirv
Dunedan ea647067f0
Enable ruff rules to check for ambiguous code
This enables some ruff rules to check for ambiguous and dead Python
code, which might cause unintended side-effects.

The enabled rules are:

- a bunch of rules related to shadowing of builtin structures (A)
- a bunch of rules checking for unused arguments (ARG)
- a rule checking for useless expressions (B018)
- a rule checking for unbound loop variables (B023)
- a rule checking redefined function parameters (PLR1704)
2024-08-27 19:28:11 +02:00
..
compile.py Enable ruff rules to check for ambiguous code 2024-08-27 19:28:11 +02:00
get-nightly-shaders.bat Generate nightly SVN builds for end users, fixes #1819. 2024-08-20 19:15:56 +02:00
get-nightly-shaders.sh Format shell scripts using shfmt 2024-08-26 09:03:00 +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