From BlenderWiki

Jump to: navigation, search
Note: This is an archived version of the Blender Developer Wiki. The current and active wiki is available on wiki.blender.org.

Debug String Markers

Header File: GPU_utility.h

Some OpenGL drivers and extensions provide an debug API whose sole purpose is send a string to a log where it can be observed by a debugging tool.

Instead of using those APIs directly, use the provided GPU_STRING_MARKER(msg) macro. Here msg is a null terminated const char array.

String markers can be enabled or disabled at compile time depending on the value of the preprocessor macro GPU_ENABLE_STRING_MARKER (0 to disable and 1 to enable).