"you can't debug print shaders" oh yeah? well check this shit out
that's right, a whole ass view matrix, served directly from the GPU
"you can't debug print shaders" oh yeah? well check this shit out
that's right, a whole ass view matrix, served directly from the GPU
In our engine we can printf from shaders, with extended format specifier syntax for vectors and matrices. We can also create debug primitives from shaders. Extremely helpful. It's often the first thing I implement when I start using a new engine, along with shader hot recompliation if it's not already there. Iteration time and ease of debugging are super important in my opinion.