My understanding of the OpenGL ARB_debug_output
extension is that it is designed to enable reporting of events from the driver or, if needed, from the graphical application (ie. from the CPU-run code).
Is there any way custom events could be emitted from the shaders, so as to ease their debugging? Or, if this is not possible, to piggyback on an existing, shader-triggable event?
I am aware of the very adverse impact this would have on performances, but this extension is already designed for a debug context anyway.