oparisy
oparisy

Reputation: 2156

ARB_debug_output: generating events from shaders

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.

Upvotes: 0

Views: 103

Answers (1)

Colonel Thirty Two
Colonel Thirty Two

Reputation: 26569

No, there isn't.

Not only does modern GPU hardware probably not support something like this, but a fragment shader can execute hundreds of times for even one triangle, and if each one of those executions sends an event, it would very much bog everything down.

Upvotes: 1

Related Questions