glGetFragDataLocation

glGetFragDataLocation: man3/glGetFragDataLocation.xml

glGetFragDataLocation retrieves the assigned color number binding for the user-defined varying out variable name for program program. program must have previously been linked. name must be a null-terminated string. If name is not the name of an active user-defined varying out fragment shader variable within program, -1 will be returned.

@OpenGL_Version(OGLIntroducedIn.V3P0)
fn_glGetFragDataLocation glGetFragDataLocation;

See Also

glCreateProgram, glBindFragDataLocation

Meta