Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

125 lines (108 sloc) 4.937 kb
#!/usr/bin/python -B
formulae = {
}
formulaeGlobal = {
# GL_EXT_debug_marker
'Insert' : {
'entries' : [ 'glInsertEventMarkerEXT' ],
'cond' : 'true || _context->info->gl_ext_debug_marker',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringEXT(length,marker,maxLength);''',
'impl' : '''
if (_context->marker)
_context->marker->InsertEventMarker(*_context, _message);
RegalAssert(_context->info);'''
},
'Push' : {
'entries' : [ 'glPushGroupMarkerEXT' ],
'cond' : 'true || _context->info->gl_ext_debug_marker',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringEXT(length,marker,maxLength);''',
'impl' : 'RegalAssert(_context->info);',
'suffix' : '''
if (_context->marker)
_context->marker->PushGroupMarker(*_context, _message);'''
},
'Pop' : {
'entries' : [ 'glPopGroupMarkerEXT' ],
'cond' : 'true || _context->info->gl_ext_debug_marker',
'prefix' : '''
if (_context && _context->marker)
_context->marker->PopGroupMarker(*_context);''',
'impl' : 'RegalAssert(_context->info);'
},
# GL_KHR_debug
# http://www.opengl.org/registry/specs/KHR/debug.txt
#
# glDebugMessageInsert
# glPushDebugGroup
# glPopDebugGroup
'KHR_debug Push' : {
'entries' : [ 'glPushDebugGroup' ],
'cond' : 'true || _context->info->gl_khr_debug',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringKHR(length,message,maxLength);''',
'impl' : [ 'RegalAssert(_context->info);' ],
'suffix' : [ 'if (_context->marker)',
' _context->marker->PushGroupMarker(*_context, _message);' ]
},
'KHR_debug Pop' : {
'entries' : [ 'glPopDebugGroup' ],
'cond' : 'true || _context->info->gl_khr_debug',
'prefix' : [ 'if (_context->marker)',
' _context->marker->PopGroupMarker(*_context);' ],
'impl' : [ 'RegalAssert(_context->info);' ]
},
'KHR_debug Insert' : {
'entries' : [ 'glDebugMessageInsert' ],
'cond' : 'true || _context->info->gl_khr_debug',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringKHR(length,buf,maxLength);''',
'impl' : [ 'if (_context->marker)',
' _context->marker->InsertEventMarker(*_context, _message);',
'RegalAssert(_context->info);' ]
},
# GL_ARB_debug_output
# http://www.opengl.org/registry/specs/ARB/debug_output.txt
#
# glDebugMessageInsertARB
'ARB_debug_output Insert' : {
'entries' : [ 'glDebugMessageInsertARB' ],
'cond' : 'true || _context->info->gl_arb_debug_output',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringEXT(length,buf,maxLength);''',
'impl' : [ 'if (_context->marker)',
' _context->marker->InsertEventMarker(*_context, _message);',
'RegalAssert(_context->info);' ]
},
# GL_AMD_debug_output
# http://www.opengl.org/registry/specs/AMD/debug_output.txt
#
# glDebugMessageInsertAMD
'AMD_debug_output Insert' : {
'entries' : [ 'glDebugMessageInsertAMD' ],
'cond' : 'true || _context->info->gl_amd_debug_output',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringEXT(length,buf,maxLength);''',
'impl' : [ 'if (_context->marker)',
' _context->marker->InsertEventMarker(*_context, _message);',
'RegalAssert(_context->info);' ]
},
# GL_GREMEDY_string_marker
'GL_GREMEDY_string_marker' : {
'entries' : [ 'glStringMarkerGREMEDY' ],
'cond' : 'true || _context->info->gl_gremedy_string_marker',
'prefix' : '''
const GLsizei maxLength = _context && _context->emuInfo ? _context->emuInfo->gl_max_debug_message_length : 1024;
const std::string _message = Marker::toStringEXT(len,static_cast<const char *>(string),maxLength);''',
'impl' : [ 'if (_context->marker)',
' _context->marker->InsertEventMarker(*_context, _message);',
'RegalAssert(_context->info);' ]
}
}
Jump to Line
Something went wrong with that request. Please try again.