Skip to content

Commit

Permalink
moved generate_shaders_gl.py script to rendergraph/tools, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB authored and m0dB committed Dec 22, 2024
1 parent 7e9f5e7 commit 216ab3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/rendergraph/shaders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://vulkan.org>
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 <https://vulkan.org>

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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 216ab3d

Please sign in to comment.