From: José Fonseca Date: Thu, 30 May 2013 07:43:53 +0000 (+0100) Subject: glretrace: Try to swizzle GL_ARB_copy_image name parameters. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=af5eae4f4cbd65aa4df9652554b88556d35f070c;p=apitrace glretrace: Try to swizzle GL_ARB_copy_image name parameters. --- diff --git a/specs/glapi.py b/specs/glapi.py index 9b4789f..2c23476 100644 --- a/specs/glapi.py +++ b/specs/glapi.py @@ -1383,7 +1383,7 @@ glapi.addFunctions([ GlFunction(Void, "glDispatchComputeIndirect", [(GLintptr, "indirect")]), # GL_ARB_copy_image - GlFunction(Void, "glCopyImageSubData", [(GLuint, "srcName"), (GLenum, "srcTarget"), (GLint, "srcLevel"), (GLint, "srcX"), (GLint, "srcY"), (GLint, "srcZ"), (GLuint, "dstName"), (GLenum, "dstTarget"), (GLint, "dstLevel"), (GLint, "dstX"), (GLint, "dstY"), (GLint, "dstZ"), (GLsizei, "srcWidth"), (GLsizei, "srcHeight"), (GLsizei, "srcDepth")]), + GlFunction(Void, "glCopyImageSubData", [(GLname("srcTarget"), "srcName"), (GLenum, "srcTarget"), (GLint, "srcLevel"), (GLint, "srcX"), (GLint, "srcY"), (GLint, "srcZ"), (GLname("dstTarget"), "dstName"), (GLenum, "dstTarget"), (GLint, "dstLevel"), (GLint, "dstX"), (GLint, "dstY"), (GLint, "dstZ"), (GLsizei, "srcWidth"), (GLsizei, "srcHeight"), (GLsizei, "srcDepth")]), # GL_ARB_texture_view GlFunction(Void, "glTextureView", [(GLtexture, "texture"), (GLenum, "target"), (GLtexture, "origtexture"), (GLenum, "internalformat"), (GLuint, "minlevel"), (GLuint, "numlevels"), (GLuint, "minlayer"), (GLuint, "numlayers")]), @@ -2805,7 +2805,7 @@ glapi.addFunctions([ GlFunction(Void, "glVideoCaptureStreamParameterdvNV", [(GLuint, "video_capture_slot"), (GLuint, "stream"), (GLenum, "pname"), (Array(Const(GLdouble), "_gl_param_size(pname)"), "params")]), # GL_NV_copy_image - GlFunction(Void, "glCopyImageSubDataNV", [(GLuint, "srcName"), (GLenum, "srcTarget"), (GLint, "srcLevel"), (GLint, "srcX"), (GLint, "srcY"), (GLint, "srcZ"), (GLuint, "dstName"), (GLenum, "dstTarget"), (GLint, "dstLevel"), (GLint, "dstX"), (GLint, "dstY"), (GLint, "dstZ"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth")]), + GlFunction(Void, "glCopyImageSubDataNV", [(GLname("srcTarget"), "srcName"), (GLenum, "srcTarget"), (GLint, "srcLevel"), (GLint, "srcX"), (GLint, "srcY"), (GLint, "srcZ"), (GLname("dstTarget"), "dstName"), (GLenum, "dstTarget"), (GLint, "dstLevel"), (GLint, "dstX"), (GLint, "dstY"), (GLint, "dstZ"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth")]), # GL_EXT_separate_shader_objects GlFunction(Void, "glUseShaderProgramEXT", [(GLenum, "type"), (GLprogram, "program")]), diff --git a/specs/gltypes.py b/specs/gltypes.py index 0c1b7ae..5f32510 100644 --- a/specs/gltypes.py +++ b/specs/gltypes.py @@ -251,6 +251,40 @@ def GLindexBuffer(countExpr, typeExpr): contextLess=False, ) +# Polymorphic object name +def GLname(targetExpr): + return Polymorphic(targetExpr, [ + ('GL_BUFFER', GLbuffer), + ('GL_SHADER', GLshader), + ('GL_PROGRAM', GLprogram), + ('GL_VERTEX_ARRAY', GLarray), + ('GL_QUERY', GLquery), + ('GL_PROGRAM_PIPELINE', GLpipeline), + ('GL_TRANSFORM_FEEDBACK', GLuint), + ('GL_SAMPLER', GLsampler), + ('GL_TEXTURE', GLtexture), + ('GL_TEXTURE_1D', GLtexture), + ('GL_TEXTURE_1D_ARRAY', GLtexture), + ('GL_TEXTURE_2D', GLtexture), + ('GL_TEXTURE_2D_MULTISAMPLE', GLtexture), + ('GL_TEXTURE_2D_ARRAY', GLtexture), + ('GL_TEXTURE_RECTANGLE', GLtexture), + ('GL_TEXTURE_CUBE_MAP', GLtexture), + ('GL_TEXTURE_CUBE_MAP_POSITIVE_X', GLtexture), + ('GL_TEXTURE_CUBE_MAP_NEGATIVE_X', GLtexture), + ('GL_TEXTURE_CUBE_MAP_POSITIVE_Y', GLtexture), + ('GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', GLtexture), + ('GL_TEXTURE_CUBE_MAP_POSITIVE_Z', GLtexture), + ('GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', GLtexture), + ('GL_TEXTURE_CUBE_MAP_ARRAY', GLtexture), + ('GL_TEXTURE_3D', GLtexture), + ('GL_RENDERBUFFER', GLrenderbuffer), + ('GL_FRAMEBUFFER', GLframebuffer), + ('GL_DISPLAY_LIST', GLlist), + ('GL_FENCE_APPLE', GLfence), + ('GL_DRAW_PIXELS_APPLE', GLuint), # GL_APPLE_fence + ], GLuint) + # GL_AMD_performance_monitor GLperfMonitorCounterInfoAMD = Polymorphic('pname', [