glGetProgramBinary

glGetProgramBinary: man4/glGetProgramBinary.xml

glGetProgramBinary returns a binary representation of the compiled and linked executable for program into the array of bytes whose address is specified in binary. The maximum number of bytes that may be written into binary is specified by bufSize. If the program binary is greater in size than bufSize bytes, then an error is generated, otherwise the actual number of bytes written into binary is returned in the variable whose address is given by length. If length is null, then no length is returned. The format of the program binary written into binary is returned in the variable whose address is given by binaryFormat, and may be implementation dependent. The binary produced by the GL may subsequently be returned to the GL by calling glProgramBinary, with binaryFormat and length set to the values returned by glGetProgramBinary, and passing the returned binary data in the binary parameter.

@OpenGL_Version(OGLIntroducedIn.V4P1)
@OpenGL_Extension("GL_ARB_get_program_binary")
fn_glGetProgramBinary glGetProgramBinary;

See Also

glGetProgram, glProgramBinary

Meta