regal/scripts/EmuTextureStorage.py
Nigel Stewart 11e4f18fa1 More Regal::Emu::Ppa (push/pop attrib) support.
GL_EXT_blend_color, GL_EXT_blend_subtract and GL_NV_blend_square emulation for ES 2.0.
ARB_shader_subroutine completeness for NV_gpu_program5 purposes.
Better log nesting for begin/end, push/pop log pairs.
Regal.cpp codegen tidy-up: reduce casting for default return values.
Regal context sharing for WGL too.
Log the return values of global functions (WGL, etc) in the driver logging stream.
Regal::Marker needs two versions of toString, depending on the relevant extension being emulated.
2013-04-19 17:19:30 -05:00

29 lines
1 KiB
Python

#!/usr/bin/python -B
texstoFormulae = {
'TextureStorage' : {
'entries' : [ 'glTexStorage(1|2|3)D(EXT|)' ],
'impl' : [ '_context->texsto->TextureStorage( _context, ${arg0plus} );', ],
},
'GetTexParameterv' : {
'entries' : [ 'glGetTexParameter(I|)(u|)(f|i)v' ],
'impl' : [
'RegalAssert(_context);',
'if ( !_context->texsto->GetTexParameterv( _context, ${arg0plus} ) ) {',
' _context->dispatcher.emulation.glGetTexParameter${m1}${m2}${m3}v( ${arg0plus} );',
'}',
]
},
'DeleteTextures' : {
'entries' : [ 'glDeleteTextures' ],
'prefix' : [
'RegalAssert(_context);',
'_context->texsto->DeleteTextures( _context, ${arg0plus} );'
],
},
#'TexImage' : { # disallow these if the object was specified with TextureStorage
# 'entries' : [ 'gl(Copy|)TexImage(1|2|3)D(ARB|)' ],
# 'impl' : [ '_context->texsto->${m1}TexImage( _context, ${arg0plus} );', ],
#}
}