glGetProgramResourceName

glGetProgramResourceName: man4/glGetProgramResourceName.xml

glGetProgramResourceName retrieves the name string assigned to the single active resource with an index of index in the interface programInterface of program object program. index must be less than the number of entries in the active resource list for programInterface. program must be the name of an existing program object. programInterface is the name of the interface within program which contains the resource and must be one of the following values: The name string assigned to the active resource identified by index is returned as a null-terminated string in the character array whose address is given in name. The actual number of characters written into name, excluding the null terminator, is returned in length. If length is null, no length is returned. The maximum number of characters that may be written into name, including the null terminator, is specified by bufSize. If the length of the name string is greater than bufSize, the first bufSize -1 characters of the name string will be written to name, followed by a null terminator. If bufSize is zero, no error will be generated but no characters will be written to name. The length of the longest name string for programInterface >, including a null terminator, can be queried by calling glGetProgramInterface with a pname of GL_MAX_NAME_LENGTH.

@OpenGL_Version(OGLIntroducedIn.V4P3)
@OpenGL_Extension("GL_ARB_program_interface_query")
fn_glGetProgramResourceName glGetProgramResourceName;

See Also

glGetProgramResourceIndex, glGetProgramResource, glGetProgramResourceLocation, glGetProgramResourceLocationIndex.

Meta