Does OpenGL provide API to gain number of fragment shaders outputs?
I've found functions such as glBindFragDataLocation
, glBindFragDataLocationIndexed
, glGetFragDataIndex
and glGetFragDataLocation
but all of them are designed to set indices or locations of FragData with known name.
I think that I'm looking for something like glGetProgram(handle, GL_NUM_FRAGDATA, &i)
. Any ideas?
There is very similar API for getting number of uniforms and attrbutes:
glGetProgramiv(handle, GL_ACTIVE_UNIFORMS, &numUniforms)
glGetProgramiv(handle, GL_ACTIVE_ATTRIBUTES, &numAttribs)
Thanks in advance.