利用者:Jwilkins/VFX/Misc/DebugStringMarkers
< 利用者:Jwilkins | VFX
2013年9月24日 (火) 08:33時点におけるwiki>Jwilkinsによる版 (Created page with "= Debug String Markers = Header File: <tt>GPU_utility.h</tt> Some ''OpenGL'' drivers and extensions provide an debug API whose sole purpose is send a string to a log where it c...")
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).