glGetActiveUniformBlockName

retrieve the name of an active uniform block

Signature

glGetActiveUniformBlockName( GLuint ( program ) , GLuint ( uniformBlockIndex ) , GLsizei ( bufSize ) , GLsizei *( length ) , GLchar *( uniformBlockName ) )-> void
glGetActiveUniformBlockName( program , uniformBlockIndex , bufSize , length , uniformBlockName )

Parameters

VariablesDescription
program
Specifies the name of a program containing the uniform block.
uniformBlockIndex
Specifies the index of the uniform block within program .
bufSize
Specifies the size of the buffer addressed by uniformBlockName .
length
Specifies the address of a variable to receive the number of characters that were written to uniformBlockName .
uniformBlockName
Specifies the address an array of characters to receive the name of the uniform block at uniformBlockIndex .