pyside6-qsb

pyside6-qsb is a tool that wraps the qsb tool. qsb is a command line tool provided by the Qt Shader Tools module. It integrates third-party libraries such as glslang and SPIRV-Cross, optionally invokes external tools, such as fxc or spirv-opt, and generates .qsb files. Additionally, it can be used to inspect the contents of a .qsb package.

For more information on how to use this tool, read Qt’s documentation here: QSB Manual.

Usage

To create a qsb file from a shader file, e.g., shader.frag, use the following command:

pyside6-qsb -o shader.frag.qsb shader.frag

To inspect the file produced, i.e., shader.frag.qsb, use the following command:

pyside6-qsb -d shader.frag.qsb

This will print the reflection metadata (in JSON form) and the included shaders.

For other modes of operation, refer to the QSB Manual.