利用者:Jwilkins/VFX/Misc/DebugStringMarkers

提供: wiki
移動先: 案内検索

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).