psychopy.tools.gltools.getInfoLog

psychopy.tools.gltools.getInfoLog(obj)[source]

Get the information log from a shader or program.

This retrieves a text log from the driver pertaining to the shader or program. For instance, a log can report shader compiler output or validation results. The verbosity and formatting of the logs are platform-dependent, where one driver may provide more information than another.

This function works with both standard and ARB program object variants.

Parameters:

obj (int) – Program or shader to retrieve a log from. If a shader, the handle must have originated from a compileShader(), glCreateShader, createProgramObjectARB() or glCreateProgramObjectARB call. If a program, the handle must have came from a createProgram(), createProgramObjectARB(), glCreateProgram or glCreateProgramObjectARB call.

Returns:

Information log data. Logs can be empty strings if the driver has no information available.

Return type:

str


Back to top