0ad/source/tools/spirv
Dunedan d9740858f7
Look up location of spirv-reflect only once
Instead of looking up the location of spirv-reflect for every shader,
this is now being done once and cached for all shaders. This results in
shader compilation being slightly faster.
2024-10-25 09:24:43 +02:00
..
compile.py Look up location of spirv-reflect only once 2024-10-25 09:24:43 +02:00
get-nightly-shaders.sh Fix issues pointed out by shellcheck 2024-08-28 18:23:18 +02:00
README.md Improve YAML loading performance using libyaml 2024-10-17 17:52:08 +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)

  • For improved performance you may also install libyaml

  • Run the compile.py script

    python compile.py path-to-folder-with-input-mods mod-output-path rules-path