From 216ab3da536b15fc32af73e6fb65226d9bd2c977 Mon Sep 17 00:00:00 2001 From: m0dB Date: Sun, 22 Dec 2024 12:25:36 +0100 Subject: [PATCH] moved generate_shaders_gl.py script to rendergraph/tools, updated readme --- src/rendergraph/shaders/README.md | 8 ++++---- .../rendergraph/tools/generate_shaders_gl.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename tools/rg_generate_shaders_gl.py => src/rendergraph/tools/generate_shaders_gl.py (96%) diff --git a/src/rendergraph/shaders/README.md b/src/rendergraph/shaders/README.md index 31f8a53fff1..f6c2d328217 100644 --- a/src/rendergraph/shaders/README.md +++ b/src/rendergraph/shaders/README.md @@ -21,9 +21,9 @@ The GLSL shaders are extracted programmatically with `QShader` and then used wit ### Qt < 6.6 The GLSL shader have to extracted from the qsb shader bundles to be used by `QOpenGLShader`. -This can be done using the script `generate_shaders_gl.pl`. To use this script, make sure -that the qsb and spirv commands are in your path. qsb is part of Qt. spirv is part of the -Vulkan SDK and can be downloaded from +This can be done using the script `generate_shaders_gl.py` in the ../tools directory. To +use this script, make sure that the qsb and spirv commands are in your path. qsb is part of +Qt. spirv is part of the Vulkan SDK and can be downloaded from -The script also generates the file ```generated_shaders_gl.cmake``` which sets a cmake +The script also generates the file `generated_shaders_gl.cmake` which sets a cmake variable containing a list of all GLSL shaders, used by the CMakeLists.txt in this folder. diff --git a/tools/rg_generate_shaders_gl.py b/src/rendergraph/tools/generate_shaders_gl.py similarity index 96% rename from tools/rg_generate_shaders_gl.py rename to src/rendergraph/tools/generate_shaders_gl.py index a591bbc9fed..75c7f4365e1 100755 --- a/tools/rg_generate_shaders_gl.py +++ b/src/rendergraph/tools/generate_shaders_gl.py @@ -4,9 +4,9 @@ You can use it like this: - $ ./rg_generate_shaders_gl.py --cmake-output \\ - ../src/rendergraph/shaders/generated_shaders_gl.cmake \\ - ../src/rendergraph/shaders/*.{vert,frag} + $ ./generate_shaders_gl.py --cmake-output \\ + ../shaders/generated_shaders_gl.cmake \\ + ../shaders/*.{vert,frag} """ import argparse import logging