sdbg is a cross-platform application that can debug shaders. It uses SPIRV-VM. It is made only to showcase SPIRV-VM.
Download the latest Win64 binary here: link
To build sdbg:
git clone https://github.com/dfranx/sdbg.git
cd sdbg
git submodule update --init
cmake .
make
After that, you can run the shader debugger:
./bin/sdbg -f shader.hlsl --hlsl
- step
- step one line
- get <var_name>
- get variable value
- jump <line>
- go to the
line
- go to the
- --file | -f <shader>
- specify input file
- --compiler | -c hlsl/glsl
- specify compiler
- --stage | -s <sname>
- specify shader stage (
vert
for vertex shader,frag
for fragment shader,geom
for geometry shader)
- specify shader stage (
- --entry | -e <fname>
- set the entry function ("main" by default)
If you want to contact me, send an email to this address: dfranx at shadered dot org
sdbg is licensed under MIT license. See LICENSE for more details.