Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Automated debug GUI for shader constants

$
0
0
Looking for some advice. I have a toy graphics framework I use for experimenting and the vast majority of the time I spend is on tweaking/debugging shaders. And a big part of that involves tweaking constants and other options to get the look or effect right or to just debug problems. Right now my process looks like this: 1. Add variable(s) to "material debug" cbuffer in hlsl. 2. Add variable(s) to mirrored C++ struct that I use to update the constant buffer (while being careful not to break alignment/padding requirements) 3. Add entries into debug gui 4. Fix inevitable copy/paste errors Has anyone found a satisfactory combination of build pipeline, code generation, reflection or otherwise that could automate some or all this? I suppose another option is to quit the reliance on on screen gui and instead implement some form of shader reloading so I can edit constants directly in hlsl.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>