Skip to content

Commit

Permalink
OpenGL routines with single strings should be "good"
Browse files Browse the repository at this point in the history
Although there is a pointer in the input and/or output
argument data type (e.g. GLchar*), perl has native string
support so we can directly translate these into the
corresponding non-suffixed function names.
  • Loading branch information
devel-chm committed Jul 14, 2017
1 parent d41719b commit 67164f2
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions signatures/badp-XS-sigs/badp-XS-with-GLchar-string
@@ -0,0 +1,71 @@
{ nptr => 1, feature => "GL_AMD_debug_output", name => "glDebugMessageInsertAMD", restype => "void", signature => "GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar* buf", },
{ nptr => 5, feature => "GL_AMD_debug_output", name => "glGetDebugMessageLogAMD", restype => "GLuint", signature => "GLuint count, GLsizei bufsize, GLenum* categories, GLuint* severities, GLuint* ids, GLsizei* lengths, GLchar* message", },
{ nptr => 2, feature => "GL_AMD_performance_monitor", name => "glGetPerfMonitorCounterStringAMD", restype => "void", signature => "GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, GLchar *counterString", },
{ nptr => 2, feature => "GL_AMD_performance_monitor", name => "glGetPerfMonitorGroupStringAMD", restype => "void", signature => "GLuint group, GLsizei bufSize, GLsizei* length, GLchar *groupString", },
{ nptr => 2, feature => "GL_ANGLE_translated_shader_source", name => "glGetTranslatedShaderSourceANGLE", restype => "void", signature => "GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source", },
{ nptr => 1, feature => "GL_ARB_blend_func_extended", name => "glBindFragDataLocationIndexed", restype => "void", signature => "GLuint program, GLuint colorNumber, GLuint index, const GLchar * name", },
{ nptr => 1, feature => "GL_ARB_blend_func_extended", name => "glGetFragDataIndex", restype => "GLint", signature => "GLuint program, const GLchar * name", },
{ nptr => 1, feature => "GL_ARB_debug_output", name => "glDebugMessageInsertARB", restype => "void", signature => "GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf", },
{ nptr => 6, feature => "GL_ARB_debug_output", name => "glGetDebugMessageLogARB", restype => "GLuint", signature => "GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog", },
{ nptr => 3, feature => "GL_ARB_gl_spirv", name => "glSpecializeShaderARB", restype => "void", signature => "GLuint shader, const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue", },
{ nptr => 1, feature => "GL_ARB_program_interface_query", name => "glGetProgramResourceIndex", restype => "GLuint", signature => "GLuint program, GLenum programInterface, const GLchar* name", },
{ nptr => 1, feature => "GL_ARB_program_interface_query", name => "glGetProgramResourceLocation", restype => "GLint", signature => "GLuint program, GLenum programInterface, const GLchar* name", },
{ nptr => 1, feature => "GL_ARB_program_interface_query", name => "glGetProgramResourceLocationIndex", restype => "GLint", signature => "GLuint program, GLenum programInterface, const GLchar* name", },
{ nptr => 2, feature => "GL_ARB_program_interface_query", name => "glGetProgramResourceName", restype => "void", signature => "GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei* length, GLchar *name", },
{ nptr => 2, feature => "GL_ARB_separate_shader_objects", name => "glGetProgramPipelineInfoLog", restype => "void", signature => "GLuint pipeline, GLsizei bufSize, GLsizei* length, GLchar *infoLog", },
{ nptr => 4, feature => "GL_ARB_shader_objects", name => "glGetActiveUniformARB", restype => "void", signature => "GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name", },
{ nptr => 2, feature => "GL_ARB_shader_objects", name => "glGetInfoLogARB", restype => "void", signature => "GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *infoLog", },
{ nptr => 2, feature => "GL_ARB_shader_objects", name => "glGetShaderSourceARB", restype => "void", signature => "GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *source", },
{ nptr => 1, feature => "GL_ARB_shader_objects", name => "glGetUniformLocationARB", restype => "GLint", signature => "GLhandleARB programObj, const GLcharARB* name", },
{ nptr => 2, feature => "GL_ARB_shader_subroutine", name => "glGetActiveSubroutineName", restype => "void", signature => "GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, GLchar *name", },
{ nptr => 2, feature => "GL_ARB_shader_subroutine", name => "glGetActiveSubroutineUniformName", restype => "void", signature => "GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, GLchar *name", },
{ nptr => 1, feature => "GL_ARB_shader_subroutine", name => "glGetSubroutineIndex", restype => "GLuint", signature => "GLuint program, GLenum shadertype, const GLchar* name", },
{ nptr => 1, feature => "GL_ARB_shader_subroutine", name => "glGetSubroutineUniformLocation", restype => "GLint", signature => "GLuint program, GLenum shadertype, const GLchar* name", },
{ nptr => 1, feature => "GL_ARB_shading_language_include", name => "glDeleteNamedStringARB", restype => "void", signature => "GLint namelen, const GLchar* name", },
{ nptr => 3, feature => "GL_ARB_shading_language_include", name => "glGetNamedStringARB", restype => "void", signature => "GLint namelen, const GLchar* name, GLsizei bufSize, GLint *stringlen, GLchar *string", },
{ nptr => 2, feature => "GL_ARB_shading_language_include", name => "glGetNamedStringivARB", restype => "void", signature => "GLint namelen, const GLchar* name, GLenum pname, GLint *params", },
{ nptr => 1, feature => "GL_ARB_shading_language_include", name => "glIsNamedStringARB", restype => "GLboolean", signature => "GLint namelen, const GLchar* name", },
{ nptr => 2, feature => "GL_ARB_shading_language_include", name => "glNamedStringARB", restype => "void", signature => "GLenum type, GLint namelen, const GLchar* name, GLint stringlen, const GLchar *string", },
{ nptr => 2, feature => "GL_ARB_uniform_buffer_object", name => "glGetActiveUniformBlockName", restype => "void", signature => "GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformBlockName", },
{ nptr => 2, feature => "GL_ARB_uniform_buffer_object", name => "glGetActiveUniformName", restype => "void", signature => "GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, GLchar* uniformName", },
{ nptr => 1, feature => "GL_ARB_uniform_buffer_object", name => "glGetUniformBlockIndex", restype => "GLuint", signature => "GLuint program, const GLchar* uniformBlockName", },
{ nptr => 1, feature => "GL_ARB_vertex_shader", name => "glBindAttribLocationARB", restype => "void", signature => "GLhandleARB programObj, GLuint index, const GLcharARB* name", },
{ nptr => 4, feature => "GL_ARB_vertex_shader", name => "glGetActiveAttribARB", restype => "void", signature => "GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name", },
{ nptr => 1, feature => "GL_ARB_vertex_shader", name => "glGetAttribLocationARB", restype => "GLint", signature => "GLhandleARB programObj, const GLcharARB* name", },
{ nptr => 2, feature => "GL_EXT_debug_label", name => "glGetObjectLabelEXT", restype => "void", signature => "GLenum type, GLuint object, GLsizei bufSize, GLsizei* length, GLchar *label", },
{ nptr => 1, feature => "GL_EXT_debug_label", name => "glLabelObjectEXT", restype => "void", signature => "GLenum type, GLuint object, GLsizei length, const GLchar* label", },
{ nptr => 1, feature => "GL_EXT_debug_marker", name => "glInsertEventMarkerEXT", restype => "void", signature => "GLsizei length, const GLchar* marker", },
{ nptr => 1, feature => "GL_EXT_debug_marker", name => "glPushGroupMarkerEXT", restype => "void", signature => "GLsizei length, const GLchar* marker", },
{ nptr => 1, feature => "GL_EXT_gpu_shader4", name => "glBindFragDataLocationEXT", restype => "void", signature => "GLuint program, GLuint color, const GLchar *name", },
{ nptr => 1, feature => "GL_EXT_gpu_shader4", name => "glGetFragDataLocationEXT", restype => "GLint", signature => "GLuint program, const GLchar *name", },
{ nptr => 1, feature => "GL_EXT_separate_shader_objects", name => "glCreateShaderProgramEXT", restype => "GLuint", signature => "GLenum type, const GLchar* string", },
{ nptr => 4, feature => "GL_EXT_transform_feedback", name => "glGetTransformFeedbackVaryingEXT", restype => "void", signature => "GLuint program, GLuint index, GLsizei bufSize, GLsizei* length, GLsizei *size, GLenum *type, GLchar *name", },
{ nptr => 7, feature => "GL_INTEL_performance_query", name => "glGetPerfCounterInfoINTEL", restype => "void", signature => "GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar* counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue", },
{ nptr => 2, feature => "GL_INTEL_performance_query", name => "glGetPerfQueryIdByNameINTEL", restype => "void", signature => "GLchar* queryName, GLuint *queryId", },
{ nptr => 5, feature => "GL_INTEL_performance_query", name => "glGetPerfQueryInfoINTEL", restype => "void", signature => "GLuint queryId, GLuint queryNameLength, GLchar* queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask", },
{ nptr => 1, feature => "GL_KHR_debug", name => "glDebugMessageInsert", restype => "void", signature => "GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf", },
{ nptr => 6, feature => "GL_KHR_debug", name => "glGetDebugMessageLog", restype => "GLuint", signature => "GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog", },
{ nptr => 2, feature => "GL_KHR_debug", name => "glGetObjectLabel", restype => "void", signature => "GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, GLchar *label", },
{ nptr => 3, feature => "GL_KHR_debug", name => "glGetObjectPtrLabel", restype => "void", signature => "const void *ptr, GLsizei bufSize, GLsizei* length, GLchar *label", },
{ nptr => 1, feature => "GL_KHR_debug", name => "glObjectLabel", restype => "void", signature => "GLenum identifier, GLuint name, GLsizei length, const GLchar* label", },
{ nptr => 2, feature => "GL_KHR_debug", name => "glObjectPtrLabel", restype => "void", signature => "const void *ptr, GLsizei length, const GLchar* label", },
{ nptr => 1, feature => "GL_KHR_debug", name => "glPushDebugGroup", restype => "void", signature => "GLenum source, GLuint id, GLsizei length, const GLchar * message", },
{ nptr => 1, feature => "GL_NV_draw_vulkan_image", name => "glGetVkProcAddrNV", restype => "GLVULKANPROCNV", signature => "const GLchar* name", },
{ nptr => 1, feature => "GL_NV_transform_feedback", name => "glActiveVaryingNV", restype => "void", signature => "GLuint program, const GLchar *name", },
{ nptr => 4, feature => "GL_NV_transform_feedback", name => "glGetActiveVaryingNV", restype => "void", signature => "GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name", },
{ nptr => 1, feature => "GL_NV_transform_feedback", name => "glGetVaryingLocationNV", restype => "GLint", signature => "GLuint program, const GLchar *name", },
{ nptr => 1, feature => "GL_REGAL_extension_query", name => "glGetExtensionREGAL", restype => "GLboolean", signature => "const GLchar* ext", },
{ nptr => 1, feature => "GL_REGAL_extension_query", name => "glIsSupportedREGAL", restype => "GLboolean", signature => "const GLchar* ext", },
{ nptr => 2, feature => "GL_REGAL_proc_address", name => "glGetProcAddressREGAL", restype => "void *", signature => "const GLchar *name", },
{ nptr => 1, feature => "GL_VERSION_2_0", name => "glBindAttribLocation", restype => "void", signature => "GLuint program, GLuint index, const GLchar* name", },
{ nptr => 4, feature => "GL_VERSION_2_0", name => "glGetActiveAttrib", restype => "void", signature => "GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name", },
{ nptr => 4, feature => "GL_VERSION_2_0", name => "glGetActiveUniform", restype => "void", signature => "GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name", },
{ nptr => 1, feature => "GL_VERSION_2_0", name => "glGetAttribLocation", restype => "GLint", signature => "GLuint program, const GLchar* name", },
{ nptr => 2, feature => "GL_VERSION_2_0", name => "glGetProgramInfoLog", restype => "void", signature => "GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog", },
{ nptr => 2, feature => "GL_VERSION_2_0", name => "glGetShaderInfoLog", restype => "void", signature => "GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog", },
{ nptr => 2, feature => "GL_VERSION_2_0", name => "glGetShaderSource", restype => "void", signature => "GLuint obj, GLsizei maxLength, GLsizei* length, GLchar* source", },
{ nptr => 1, feature => "GL_VERSION_2_0", name => "glGetUniformLocation", restype => "GLint", signature => "GLuint program, const GLchar* name", },
{ nptr => 3, feature => "GL_VERSION_2_0", name => "glShaderSource", restype => "void", signature => "GLuint shader, GLsizei count, const GLchar *const* string, const GLint* length", },
{ nptr => 1, feature => "GL_VERSION_3_0", name => "glBindFragDataLocation", restype => "void", signature => "GLuint program, GLuint colorNumber, const GLchar* name", },
{ nptr => 1, feature => "GL_VERSION_3_0", name => "glGetFragDataLocation", restype => "GLint", signature => "GLuint program, const GLchar* name", },
{ nptr => 4, feature => "GL_VERSION_3_0", name => "glGetTransformFeedbackVarying", restype => "void", signature => "GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name", },

0 comments on commit 67164f2

Please sign in to comment.