View Full Version : Querying fragment data names

09-27-2010, 01:26 PM
Is there a way to query how many output variables there are in a fragment shader, and what their names are, in OpenGL 3.2? I see methods for querying and binding the data locations of the output variables by name, but haven't found any way of actually getting the names from the shader. Is this possible to do, or is it expected that the developer just knows what the outputs are named?

We allow users to define their own shaders, so short of parsing the fragment shader, we'd have no way of knowing what their outputs are.

Alfonse Reinheart
09-27-2010, 01:41 PM
Unfortunately, the ARB kinda forgot about adding that function. So you're out of luck.

09-27-2010, 01:52 PM
Ok :) Parsing it is!