https://github.com/dfranx/sdbg
CLI shader debugger / testbed for SPIRV-VM
https://github.com/dfranx/sdbg
Last synced: 10 months ago
JSON representation
CLI shader debugger / testbed for SPIRV-VM
- Host: GitHub
- URL: https://github.com/dfranx/sdbg
- Owner: dfranx
- License: mit
- Created: 2020-01-30T22:13:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T01:03:55.000Z (about 6 years ago)
- Last Synced: 2025-04-04T23:22:38.009Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 240 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDBG
sdbg is a cross-platform application that can debug shaders.
It uses [SPIRV-VM](https://github.com/dfranx/SPIRV-VM). It is made only to showcase [SPIRV-VM](https://github.com/dfranx/ShaderDebugger).
## Download
Download the latest Win64 binary here: [link](https://github.com/dfranx/sdbg/releases)
## Build
To build sdbg:
```bash
git clone https://github.com/dfranx/sdbg.git
cd sdbg
git submodule update --init
cmake .
make
```
After that, you can run the shader debugger:
```bash
./bin/sdbg -f shader.hlsl --hlsl
```
## Screenshots
## Commands
- **step**
- step one line
- **get \**
- get variable value
- **jump \**
- go to the `line`
## Arguments
- **--file | -f \**
- specify input file
- **--compiler | -c hlsl/glsl**
- specify compiler
- **--stage | -s \**
- specify shader stage (`vert` for vertex shader, `frag` for fragment shader, `geom` for geometry shader)
- **--entry | -e \**
- set the entry function ("main" by default)
## Contact
If you want to contact me, send an email to this address:
**dfranx at shadered dot org**
## LICENSE
sdbg is licensed under MIT license. See [LICENSE](./LICENSE) for more details.