program debugging extensions

There’s currently no way to do remote debugging for vertex or fragment programs, though it could be done at least in software now.

Why not introduce some debugging extension?
One could use it like this:
glSetFPBreakPointAt2fEXT(.2f, .3f);
then the various states at each stage of the curent fragment program would be saved for point at screen coordinates (.2,.3) in the current context, and would be queriable with something like this:
glDebugAttribEXT(line, &attrib);
…so one could trace in the whole program for a resqueted point.

Something similar could be done for vertex program (or maybe generalized).

Julien.

It’d be a lot easier to write an emulator for programs and use that for debugging.