diff --git a/scripts/generate_entry_points.py b/scripts/generate_entry_points.py index 7a45de084..26ea8a136 100644 --- a/scripts/generate_entry_points.py +++ b/scripts/generate_entry_points.py @@ -236,20 +236,27 @@ def format_entry_point_def_oldstyle(cmd_name, proto, params): def path_to(folder, file): return os.path.join(script_relative(".."), "src", folder, file) +all_commands = root.findall('commands/command') + for major_version, minor_version in [[2, 0], [3, 0], [3, 1]]: gles_xpath = ".//feature[@name='GL_ES_VERSION_{}_{}']//command".format(major_version, minor_version) gles_commands = [cmd.attrib['name'] for cmd in root.findall(gles_xpath)] entry_point_decls = [] entry_point_defs = [] - for cmd_name in gles_commands: - command_xpath = "command/proto[name='" + cmd_name + "']/.." - command = commands.find(command_xpath) - params = ["".join(param.itertext()) for param in command.findall("./param")] - proto = "".join(command.find("./proto").itertext()) + + for command in all_commands: + proto = command.find('proto') + cmd_name = proto.find('name').text + + if cmd_name not in gles_commands: + continue + + param_text = ["".join(param.itertext()) for param in command.findall('param')] + proto_text = "".join(proto.itertext()) cmd_names += [cmd_name] - entry_point_decls += [format_entry_point_decl(cmd_name, proto, params)] - entry_point_defs += [format_entry_point_def(cmd_name, proto, params)] + entry_point_decls += [format_entry_point_decl(cmd_name, proto_text, param_text)] + entry_point_defs += [format_entry_point_def(cmd_name, proto_text, param_text)] for type in ["header", "source"]: if type == "header": @@ -284,7 +291,7 @@ for major_version, minor_version in [[2, 0], [3, 0], [3, 1]]: out.close() # TODO(jmadill): Remove manually added entry points once we auto-gen them. -manual_cmd_names = ["Invalid"] + [cmd[2:] for cmd in cmd_names] + ["DrawElementsInstancedANGLE"] +manual_cmd_names = ["Invalid"] + [cmd[2:] for cmd in sorted(cmd_names)] + ["DrawElementsInstancedANGLE"] entry_points_enum = template_entry_points_enum_header.format( script_name = os.path.basename(sys.argv[0]), data_source_name = "gl.xml", diff --git a/src/libANGLE/entry_points_enum_autogen.h b/src/libANGLE/entry_points_enum_autogen.h index 14b5e3c1b..3ae71f01c 100644 --- a/src/libANGLE/entry_points_enum_autogen.h +++ b/src/libANGLE/entry_points_enum_autogen.h @@ -16,102 +16,239 @@ namespace gl enum class EntryPoint { Invalid, + ActiveShaderProgram, ActiveTexture, AttachShader, + BeginQuery, + BeginTransformFeedback, BindAttribLocation, BindBuffer, + BindBufferBase, + BindBufferRange, BindFramebuffer, + BindImageTexture, + BindProgramPipeline, BindRenderbuffer, + BindSampler, BindTexture, + BindTransformFeedback, + BindVertexArray, + BindVertexBuffer, BlendColor, BlendEquation, BlendEquationSeparate, BlendFunc, BlendFuncSeparate, + BlitFramebuffer, BufferData, BufferSubData, CheckFramebufferStatus, Clear, + ClearBufferfi, + ClearBufferfv, + ClearBufferiv, + ClearBufferuiv, ClearColor, ClearDepthf, ClearStencil, + ClientWaitSync, ColorMask, CompileShader, CompressedTexImage2D, + CompressedTexImage3D, CompressedTexSubImage2D, + CompressedTexSubImage3D, + CopyBufferSubData, CopyTexImage2D, CopyTexSubImage2D, + CopyTexSubImage3D, CreateProgram, CreateShader, + CreateShaderProgramv, CullFace, DeleteBuffers, DeleteFramebuffers, DeleteProgram, + DeleteProgramPipelines, + DeleteQueries, DeleteRenderbuffers, + DeleteSamplers, DeleteShader, + DeleteSync, DeleteTextures, + DeleteTransformFeedbacks, + DeleteVertexArrays, DepthFunc, DepthMask, DepthRangef, DetachShader, Disable, DisableVertexAttribArray, + DispatchCompute, + DispatchComputeIndirect, DrawArrays, + DrawArraysIndirect, + DrawArraysInstanced, + DrawBuffers, DrawElements, + DrawElementsIndirect, + DrawElementsInstanced, + DrawRangeElements, Enable, EnableVertexAttribArray, + EndQuery, + EndTransformFeedback, + FenceSync, Finish, Flush, + FlushMappedBufferRange, + FramebufferParameteri, FramebufferRenderbuffer, FramebufferTexture2D, + FramebufferTextureLayer, FrontFace, GenBuffers, - GenerateMipmap, GenFramebuffers, + GenProgramPipelines, + GenQueries, GenRenderbuffers, + GenSamplers, GenTextures, + GenTransformFeedbacks, + GenVertexArrays, + GenerateMipmap, GetActiveAttrib, GetActiveUniform, + GetActiveUniformBlockName, + GetActiveUniformBlockiv, + GetActiveUniformsiv, GetAttachedShaders, GetAttribLocation, + GetBooleani_v, GetBooleanv, + GetBufferParameteri64v, GetBufferParameteriv, + GetBufferPointerv, GetError, GetFloatv, + GetFragDataLocation, GetFramebufferAttachmentParameteriv, + GetFramebufferParameteriv, + GetInteger64i_v, + GetInteger64v, + GetIntegeri_v, GetIntegerv, - GetProgramiv, + GetInternalformativ, + GetMultisamplefv, + GetProgramBinary, GetProgramInfoLog, + GetProgramInterfaceiv, + GetProgramPipelineInfoLog, + GetProgramPipelineiv, + GetProgramResourceIndex, + GetProgramResourceLocation, + GetProgramResourceName, + GetProgramResourceiv, + GetProgramiv, + GetQueryObjectuiv, + GetQueryiv, GetRenderbufferParameteriv, - GetShaderiv, + GetSamplerParameterfv, + GetSamplerParameteriv, GetShaderInfoLog, GetShaderPrecisionFormat, GetShaderSource, + GetShaderiv, GetString, + GetStringi, + GetSynciv, + GetTexLevelParameterfv, + GetTexLevelParameteriv, GetTexParameterfv, GetTexParameteriv, + GetTransformFeedbackVarying, + GetUniformBlockIndex, + GetUniformIndices, + GetUniformLocation, GetUniformfv, GetUniformiv, - GetUniformLocation, + GetUniformuiv, + GetVertexAttribIiv, + GetVertexAttribIuiv, + GetVertexAttribPointerv, GetVertexAttribfv, GetVertexAttribiv, - GetVertexAttribPointerv, Hint, + InvalidateFramebuffer, + InvalidateSubFramebuffer, IsBuffer, IsEnabled, IsFramebuffer, IsProgram, + IsProgramPipeline, + IsQuery, IsRenderbuffer, + IsSampler, IsShader, + IsSync, IsTexture, + IsTransformFeedback, + IsVertexArray, LineWidth, LinkProgram, + MapBufferRange, + MemoryBarrier, + MemoryBarrierByRegion, + PauseTransformFeedback, PixelStorei, PolygonOffset, + ProgramBinary, + ProgramParameteri, + ProgramUniform1f, + ProgramUniform1fv, + ProgramUniform1i, + ProgramUniform1iv, + ProgramUniform1ui, + ProgramUniform1uiv, + ProgramUniform2f, + ProgramUniform2fv, + ProgramUniform2i, + ProgramUniform2iv, + ProgramUniform2ui, + ProgramUniform2uiv, + ProgramUniform3f, + ProgramUniform3fv, + ProgramUniform3i, + ProgramUniform3iv, + ProgramUniform3ui, + ProgramUniform3uiv, + ProgramUniform4f, + ProgramUniform4fv, + ProgramUniform4i, + ProgramUniform4iv, + ProgramUniform4ui, + ProgramUniform4uiv, + ProgramUniformMatrix2fv, + ProgramUniformMatrix2x3fv, + ProgramUniformMatrix2x4fv, + ProgramUniformMatrix3fv, + ProgramUniformMatrix3x2fv, + ProgramUniformMatrix3x4fv, + ProgramUniformMatrix4fv, + ProgramUniformMatrix4x2fv, + ProgramUniformMatrix4x3fv, + ReadBuffer, ReadPixels, ReleaseShaderCompiler, RenderbufferStorage, + RenderbufferStorageMultisample, + ResumeTransformFeedback, SampleCoverage, + SampleMaski, + SamplerParameterf, + SamplerParameterfv, + SamplerParameteri, + SamplerParameteriv, Scissor, ShaderBinary, ShaderSource, @@ -122,32 +259,56 @@ enum class EntryPoint StencilOp, StencilOpSeparate, TexImage2D, + TexImage3D, TexParameterf, TexParameterfv, TexParameteri, TexParameteriv, + TexStorage2D, + TexStorage2DMultisample, + TexStorage3D, TexSubImage2D, + TexSubImage3D, + TransformFeedbackVaryings, Uniform1f, Uniform1fv, Uniform1i, Uniform1iv, + Uniform1ui, + Uniform1uiv, Uniform2f, Uniform2fv, Uniform2i, Uniform2iv, + Uniform2ui, + Uniform2uiv, Uniform3f, Uniform3fv, Uniform3i, Uniform3iv, + Uniform3ui, + Uniform3uiv, Uniform4f, Uniform4fv, Uniform4i, Uniform4iv, + Uniform4ui, + Uniform4uiv, + UniformBlockBinding, UniformMatrix2fv, + UniformMatrix2x3fv, + UniformMatrix2x4fv, UniformMatrix3fv, + UniformMatrix3x2fv, + UniformMatrix3x4fv, UniformMatrix4fv, + UniformMatrix4x2fv, + UniformMatrix4x3fv, + UnmapBuffer, UseProgram, + UseProgramStages, ValidateProgram, + ValidateProgramPipeline, VertexAttrib1f, VertexAttrib1fv, VertexAttrib2f, @@ -156,180 +317,19 @@ enum class EntryPoint VertexAttrib3fv, VertexAttrib4f, VertexAttrib4fv, - VertexAttribPointer, - Viewport, - ReadBuffer, - DrawRangeElements, - TexImage3D, - TexSubImage3D, - CopyTexSubImage3D, - CompressedTexImage3D, - CompressedTexSubImage3D, - GenQueries, - DeleteQueries, - IsQuery, - BeginQuery, - EndQuery, - GetQueryiv, - GetQueryObjectuiv, - UnmapBuffer, - GetBufferPointerv, - DrawBuffers, - UniformMatrix2x3fv, - UniformMatrix3x2fv, - UniformMatrix2x4fv, - UniformMatrix4x2fv, - UniformMatrix3x4fv, - UniformMatrix4x3fv, - BlitFramebuffer, - RenderbufferStorageMultisample, - FramebufferTextureLayer, - MapBufferRange, - FlushMappedBufferRange, - BindVertexArray, - DeleteVertexArrays, - GenVertexArrays, - IsVertexArray, - GetIntegeri_v, - BeginTransformFeedback, - EndTransformFeedback, - BindBufferRange, - BindBufferBase, - TransformFeedbackVaryings, - GetTransformFeedbackVarying, - VertexAttribIPointer, - GetVertexAttribIiv, - GetVertexAttribIuiv, - VertexAttribI4i, - VertexAttribI4ui, - VertexAttribI4iv, - VertexAttribI4uiv, - GetUniformuiv, - GetFragDataLocation, - Uniform1ui, - Uniform2ui, - Uniform3ui, - Uniform4ui, - Uniform1uiv, - Uniform2uiv, - Uniform3uiv, - Uniform4uiv, - ClearBufferiv, - ClearBufferuiv, - ClearBufferfv, - ClearBufferfi, - GetStringi, - CopyBufferSubData, - GetUniformIndices, - GetActiveUniformsiv, - GetUniformBlockIndex, - GetActiveUniformBlockiv, - GetActiveUniformBlockName, - UniformBlockBinding, - DrawArraysInstanced, - DrawElementsInstanced, - FenceSync, - IsSync, - DeleteSync, - ClientWaitSync, - WaitSync, - GetInteger64v, - GetSynciv, - GetInteger64i_v, - GetBufferParameteri64v, - GenSamplers, - DeleteSamplers, - IsSampler, - BindSampler, - SamplerParameteri, - SamplerParameteriv, - SamplerParameterf, - SamplerParameterfv, - GetSamplerParameteriv, - GetSamplerParameterfv, - VertexAttribDivisor, - BindTransformFeedback, - DeleteTransformFeedbacks, - GenTransformFeedbacks, - IsTransformFeedback, - PauseTransformFeedback, - ResumeTransformFeedback, - GetProgramBinary, - ProgramBinary, - ProgramParameteri, - InvalidateFramebuffer, - InvalidateSubFramebuffer, - TexStorage2D, - TexStorage3D, - GetInternalformativ, - DispatchCompute, - DispatchComputeIndirect, - DrawArraysIndirect, - DrawElementsIndirect, - FramebufferParameteri, - GetFramebufferParameteriv, - GetProgramInterfaceiv, - GetProgramResourceIndex, - GetProgramResourceName, - GetProgramResourceiv, - GetProgramResourceLocation, - UseProgramStages, - ActiveShaderProgram, - CreateShaderProgramv, - BindProgramPipeline, - DeleteProgramPipelines, - GenProgramPipelines, - IsProgramPipeline, - GetProgramPipelineiv, - ProgramUniform1i, - ProgramUniform2i, - ProgramUniform3i, - ProgramUniform4i, - ProgramUniform1ui, - ProgramUniform2ui, - ProgramUniform3ui, - ProgramUniform4ui, - ProgramUniform1f, - ProgramUniform2f, - ProgramUniform3f, - ProgramUniform4f, - ProgramUniform1iv, - ProgramUniform2iv, - ProgramUniform3iv, - ProgramUniform4iv, - ProgramUniform1uiv, - ProgramUniform2uiv, - ProgramUniform3uiv, - ProgramUniform4uiv, - ProgramUniform1fv, - ProgramUniform2fv, - ProgramUniform3fv, - ProgramUniform4fv, - ProgramUniformMatrix2fv, - ProgramUniformMatrix3fv, - ProgramUniformMatrix4fv, - ProgramUniformMatrix2x3fv, - ProgramUniformMatrix3x2fv, - ProgramUniformMatrix2x4fv, - ProgramUniformMatrix4x2fv, - ProgramUniformMatrix3x4fv, - ProgramUniformMatrix4x3fv, - ValidateProgramPipeline, - GetProgramPipelineInfoLog, - BindImageTexture, - GetBooleani_v, - MemoryBarrier, - MemoryBarrierByRegion, - TexStorage2DMultisample, - GetMultisamplefv, - SampleMaski, - GetTexLevelParameteriv, - GetTexLevelParameterfv, - BindVertexBuffer, - VertexAttribFormat, - VertexAttribIFormat, VertexAttribBinding, + VertexAttribDivisor, + VertexAttribFormat, + VertexAttribI4i, + VertexAttribI4iv, + VertexAttribI4ui, + VertexAttribI4uiv, + VertexAttribIFormat, + VertexAttribIPointer, + VertexAttribPointer, VertexBindingDivisor, + Viewport, + WaitSync, DrawElementsInstancedANGLE }; } // namespace gl diff --git a/src/libANGLE/renderer/gl/DispatchTableGL_autogen.h b/src/libANGLE/renderer/gl/DispatchTableGL_autogen.h index 1f0930963..bddc53d4a 100644 --- a/src/libANGLE/renderer/gl/DispatchTableGL_autogen.h +++ b/src/libANGLE/renderer/gl/DispatchTableGL_autogen.h @@ -731,7 +731,7 @@ class DispatchTableGL : angle::NonCopyable PFNGLBLENDBARRIERPROC blendBarrier = nullptr; PFNGLPRIMITIVEBOUNDINGBOXPROC primitiveBoundingBox = nullptr; - // EXT_debug_marker + // GL_EXT_debug_marker PFNGLINSERTEVENTMARKEREXTPROC insertEventMarkerEXT = nullptr; PFNGLPOPGROUPMARKEREXTPROC popGroupMarkerEXT = nullptr; PFNGLPUSHGROUPMARKEREXTPROC pushGroupMarkerEXT = nullptr; diff --git a/src/libGLESv2/entry_points_gles_2_0_autogen.cpp b/src/libGLESv2/entry_points_gles_2_0_autogen.cpp index ae0e94440..ac1cb1e08 100644 --- a/src/libGLESv2/entry_points_gles_2_0_autogen.cpp +++ b/src/libGLESv2/entry_points_gles_2_0_autogen.cpp @@ -922,22 +922,6 @@ void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers) } } -void GL_APIENTRY GenerateMipmap(GLenum target) -{ - EVENT("(GLenum target = 0x%X)", target); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target); - - if (context->skipValidation() || ValidateGenerateMipmap(context, target)) - { - context->generateMipmap(target); - } - } -} - void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers) { EVENT("(GLsizei n = %d, GLuint *framebuffers = 0x%0.8p)", n, framebuffers); @@ -986,6 +970,22 @@ void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures) } } +void GL_APIENTRY GenerateMipmap(GLenum target) +{ + EVENT("(GLenum target = 0x%X)", target); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target); + + if (context->skipValidation() || ValidateGenerateMipmap(context, target)) + { + context->generateMipmap(target); + } + } +} + void GL_APIENTRY GetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, @@ -1190,23 +1190,6 @@ void GL_APIENTRY GetIntegerv(GLenum pname, GLint *data) } } -void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params) -{ - EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", program, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, pname, params); - - if (context->skipValidation() || ValidateGetProgramiv(context, program, pname, params)) - { - context->getProgramiv(program, pname, params); - } - } -} - void GL_APIENTRY GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, @@ -1230,6 +1213,23 @@ void GL_APIENTRY GetProgramInfoLog(GLuint program, } } +void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params) +{ + EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", program, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, pname, params); + + if (context->skipValidation() || ValidateGetProgramiv(context, program, pname, params)) + { + context->getProgramiv(program, pname, params); + } + } +} + void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) { EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, @@ -1248,23 +1248,6 @@ void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint * } } -void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params) -{ - EVENT("(GLuint shader = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", shader, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(shader, pname, params); - - if (context->skipValidation() || ValidateGetShaderiv(context, shader, pname, params)) - { - context->getShaderiv(shader, pname, params); - } - } -} - void GL_APIENTRY GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) { EVENT( @@ -1329,6 +1312,23 @@ void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length } } +void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params) +{ + EVENT("(GLuint shader = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", shader, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(shader, pname, params); + + if (context->skipValidation() || ValidateGetShaderiv(context, shader, pname, params)) + { + context->getShaderiv(shader, pname, params); + } + } +} + const GLubyte *GL_APIENTRY GetString(GLenum name) { EVENT("(GLenum name = 0x%X)", name); @@ -1381,6 +1381,24 @@ void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params) } } +GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name) +{ + EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, name); + + if (context->skipValidation() || ValidateGetUniformLocation(context, program, name)) + { + return context->getUniformLocation(program, name); + } + } + + return GetDefaultReturnValue(); +} + void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params) { EVENT("(GLuint program = %u, GLint location = %d, GLfloat *params = 0x%0.8p)", program, @@ -1415,22 +1433,22 @@ void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params) } } -GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name) +void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer) { - EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); + EVENT("(GLuint index = %u, GLenum pname = 0x%X, void **pointer = 0x%0.8p)", index, pname, + pointer); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(program, name); + context->gatherParams(index, pname, pointer); - if (context->skipValidation() || ValidateGetUniformLocation(context, program, name)) + if (context->skipValidation() || + ValidateGetVertexAttribPointerv(context, index, pname, pointer)) { - return context->getUniformLocation(program, name); + context->getVertexAttribPointerv(index, pname, pointer); } } - - return GetDefaultReturnValue(); } void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params) @@ -1467,24 +1485,6 @@ void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params) } } -void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer) -{ - EVENT("(GLuint index = %u, GLenum pname = 0x%X, void **pointer = 0x%0.8p)", index, pname, - pointer); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, pname, pointer); - - if (context->skipValidation() || - ValidateGetVertexAttribPointerv(context, index, pname, pointer)) - { - context->getVertexAttribPointerv(index, pname, pointer); - } - } -} - void GL_APIENTRY Hint(GLenum target, GLenum mode) { EVENT("(GLenum target = 0x%X, GLenum mode = 0x%X)", target, mode); diff --git a/src/libGLESv2/entry_points_gles_2_0_autogen.h b/src/libGLESv2/entry_points_gles_2_0_autogen.h index 7735b46fa..243137697 100644 --- a/src/libGLESv2/entry_points_gles_2_0_autogen.h +++ b/src/libGLESv2/entry_points_gles_2_0_autogen.h @@ -117,10 +117,10 @@ ANGLE_EXPORT void GL_APIENTRY FramebufferTexture2D(GLenum target, GLint level); ANGLE_EXPORT void GL_APIENTRY FrontFace(GLenum mode); ANGLE_EXPORT void GL_APIENTRY GenBuffers(GLsizei n, GLuint *buffers); -ANGLE_EXPORT void GL_APIENTRY GenerateMipmap(GLenum target); ANGLE_EXPORT void GL_APIENTRY GenFramebuffers(GLsizei n, GLuint *framebuffers); ANGLE_EXPORT void GL_APIENTRY GenRenderbuffers(GLsizei n, GLuint *renderbuffers); ANGLE_EXPORT void GL_APIENTRY GenTextures(GLsizei n, GLuint *textures); +ANGLE_EXPORT void GL_APIENTRY GenerateMipmap(GLenum target); ANGLE_EXPORT void GL_APIENTRY GetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, @@ -149,15 +149,14 @@ ANGLE_EXPORT void GL_APIENTRY GetFramebufferAttachmentParameteriv(GLenum target, GLenum pname, GLint *params); ANGLE_EXPORT void GL_APIENTRY GetIntegerv(GLenum pname, GLint *data); -ANGLE_EXPORT void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params); ANGLE_EXPORT void GL_APIENTRY GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); +ANGLE_EXPORT void GL_APIENTRY GetProgramiv(GLuint program, GLenum pname, GLint *params); ANGLE_EXPORT void GL_APIENTRY GetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params); ANGLE_EXPORT void GL_APIENTRY GetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, @@ -170,15 +169,16 @@ ANGLE_EXPORT void GL_APIENTRY GetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); +ANGLE_EXPORT void GL_APIENTRY GetShaderiv(GLuint shader, GLenum pname, GLint *params); ANGLE_EXPORT const GLubyte *GL_APIENTRY GetString(GLenum name); ANGLE_EXPORT void GL_APIENTRY GetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); ANGLE_EXPORT void GL_APIENTRY GetTexParameteriv(GLenum target, GLenum pname, GLint *params); +ANGLE_EXPORT GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name); ANGLE_EXPORT void GL_APIENTRY GetUniformfv(GLuint program, GLint location, GLfloat *params); ANGLE_EXPORT void GL_APIENTRY GetUniformiv(GLuint program, GLint location, GLint *params); -ANGLE_EXPORT GLint GL_APIENTRY GetUniformLocation(GLuint program, const GLchar *name); +ANGLE_EXPORT void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer); ANGLE_EXPORT void GL_APIENTRY GetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); ANGLE_EXPORT void GL_APIENTRY GetVertexAttribiv(GLuint index, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer); ANGLE_EXPORT void GL_APIENTRY Hint(GLenum target, GLenum mode); ANGLE_EXPORT GLboolean GL_APIENTRY IsBuffer(GLuint buffer); ANGLE_EXPORT GLboolean GL_APIENTRY IsEnabled(GLenum cap); diff --git a/src/libGLESv2/entry_points_gles_3_0_autogen.cpp b/src/libGLESv2/entry_points_gles_3_0_autogen.cpp index 439f920ba..3f6f10871 100644 --- a/src/libGLESv2/entry_points_gles_3_0_autogen.cpp +++ b/src/libGLESv2/entry_points_gles_3_0_autogen.cpp @@ -14,146 +14,248 @@ namespace gl { -void GL_APIENTRY ReadBuffer(GLenum src) +void GL_APIENTRY BeginQuery(GLenum target, GLuint id) { - EVENT("(GLenum src = 0x%X)", src); + EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(src); + context->gatherParams(target, id); - if (context->skipValidation() || ValidateReadBuffer(context, src)) + if (context->skipValidation() || ValidateBeginQuery(context, target, id)) { - context->readBuffer(src); + context->beginQuery(target, id); } } } -void GL_APIENTRY DrawRangeElements(GLenum mode, - GLuint start, - GLuint end, - GLsizei count, - GLenum type, - const void *indices) +void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode) { - EVENT( - "(GLenum mode = 0x%X, GLuint start = %u, GLuint end = %u, GLsizei count = %d, GLenum type " - "= 0x%X, const void *indices = 0x%0.8p)", - mode, start, end, count, type, indices); + EVENT("(GLenum primitiveMode = 0x%X)", primitiveMode); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(mode, start, end, count, type, - indices); + context->gatherParams(primitiveMode); - if (context->skipValidation() || - ValidateDrawRangeElements(context, mode, start, end, count, type, indices)) + if (context->skipValidation() || ValidateBeginTransformFeedback(context, primitiveMode)) { - context->drawRangeElements(mode, start, end, count, type, indices); + context->beginTransformFeedback(primitiveMode); } } } -void GL_APIENTRY TexImage3D(GLenum target, - GLint level, - GLint internalformat, - GLsizei width, - GLsizei height, - GLsizei depth, - GLint border, - GLenum format, - GLenum type, - const void *pixels) +void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer) { - EVENT( - "(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, " - "GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLenum format = 0x%X, GLenum " - "type = 0x%X, const void *pixels = 0x%0.8p)", - target, level, internalformat, width, height, depth, border, format, type, pixels); + EVENT("(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u)", target, index, buffer); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target, level, internalformat, width, height, - depth, border, format, type, pixels); + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, index, buffer); if (context->skipValidation() || - ValidateTexImage3D(context, target, level, internalformat, width, height, depth, border, - format, type, pixels)) + ValidateBindBufferBase(context, targetPacked, index, buffer)) { - context->texImage3D(target, level, internalformat, width, height, depth, border, format, - type, pixels); + context->bindBufferBase(targetPacked, index, buffer); } } } -void GL_APIENTRY TexSubImage3D(GLenum target, - GLint level, - GLint xoffset, - GLint yoffset, - GLint zoffset, - GLsizei width, - GLsizei height, - GLsizei depth, - GLenum format, - GLenum type, - const void *pixels) +void GL_APIENTRY +BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) { EVENT( - "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " - "zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format " - "= 0x%X, GLenum type = 0x%X, const void *pixels = 0x%0.8p)", - target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + "(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u, GLintptr offset = %d, " + "GLsizeiptr size = %d)", + target, index, buffer, offset, size); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams( - target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, index, buffer, offset, + size); if (context->skipValidation() || - ValidateTexSubImage3D(context, target, level, xoffset, yoffset, zoffset, width, height, - depth, format, type, pixels)) + ValidateBindBufferRange(context, targetPacked, index, buffer, offset, size)) { - context->texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, - format, type, pixels); + context->bindBufferRange(targetPacked, index, buffer, offset, size); } } } -void GL_APIENTRY CopyTexSubImage3D(GLenum target, - GLint level, - GLint xoffset, - GLint yoffset, - GLint zoffset, - GLint x, - GLint y, - GLsizei width, - GLsizei height) +void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler) { - EVENT( - "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " - "zoffset = %d, GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", - target, level, xoffset, yoffset, zoffset, x, y, width, height); + EVENT("(GLuint unit = %u, GLuint sampler = %u)", unit, sampler); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target, level, xoffset, yoffset, - zoffset, x, y, width, height); + context->gatherParams(unit, sampler); - if (context->skipValidation() || - ValidateCopyTexSubImage3D(context, target, level, xoffset, yoffset, zoffset, x, y, - width, height)) + if (context->skipValidation() || ValidateBindSampler(context, unit, sampler)) { - context->copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, - height); + context->bindSampler(unit, sampler); } } } +void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id) +{ + EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, id); + + if (context->skipValidation() || ValidateBindTransformFeedback(context, target, id)) + { + context->bindTransformFeedback(target, id); + } + } +} + +void GL_APIENTRY BindVertexArray(GLuint array) +{ + EVENT("(GLuint array = %u)", array); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(array); + + if (context->skipValidation() || ValidateBindVertexArray(context, array)) + { + context->bindVertexArray(array); + } + } +} + +void GL_APIENTRY BlitFramebuffer(GLint srcX0, + GLint srcY0, + GLint srcX1, + GLint srcY1, + GLint dstX0, + GLint dstY0, + GLint dstX1, + GLint dstY1, + GLbitfield mask, + GLenum filter) +{ + EVENT( + "(GLint srcX0 = %d, GLint srcY0 = %d, GLint srcX1 = %d, GLint srcY1 = %d, GLint dstX0 = " + "%d, GLint dstY0 = %d, GLint dstX1 = %d, GLint dstY1 = %d, GLbitfield mask = 0x%X, GLenum " + "filter = 0x%X)", + srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, + dstX1, dstY1, mask, filter); + + if (context->skipValidation() || + ValidateBlitFramebuffer(context, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, + mask, filter)) + { + context->blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, + filter); + } + } +} + +void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) +{ + EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, GLfloat depth = %f, GLint stencil = %d)", + buffer, drawbuffer, depth, stencil); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(buffer, drawbuffer, depth, stencil); + + if (context->skipValidation() || + ValidateClearBufferfi(context, buffer, drawbuffer, depth, stencil)) + { + context->clearBufferfi(buffer, drawbuffer, depth, stencil); + } + } +} + +void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) +{ + EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLfloat *value = 0x%0.8p)", buffer, + drawbuffer, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(buffer, drawbuffer, value); + + if (context->skipValidation() || ValidateClearBufferfv(context, buffer, drawbuffer, value)) + { + context->clearBufferfv(buffer, drawbuffer, value); + } + } +} + +void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) +{ + EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLint *value = 0x%0.8p)", buffer, + drawbuffer, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(buffer, drawbuffer, value); + + if (context->skipValidation() || ValidateClearBufferiv(context, buffer, drawbuffer, value)) + { + context->clearBufferiv(buffer, drawbuffer, value); + } + } +} + +void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) +{ + EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLuint *value = 0x%0.8p)", buffer, + drawbuffer, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(buffer, drawbuffer, value); + + if (context->skipValidation() || ValidateClearBufferuiv(context, buffer, drawbuffer, value)) + { + context->clearBufferuiv(buffer, drawbuffer, value); + } + } +} + +GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) +{ + EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, + timeout); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sync, flags, timeout); + + if (context->skipValidation() || ValidateClientWaitSync(context, sync, flags, timeout)) + { + return context->clientWaitSync(sync, flags, timeout); + } + } + + return GetDefaultReturnValue(); +} + void GL_APIENTRY CompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, @@ -221,18 +323,62 @@ void GL_APIENTRY CompressedTexSubImage3D(GLenum target, } } -void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids) +void GL_APIENTRY CopyBufferSubData(GLenum readTarget, + GLenum writeTarget, + GLintptr readOffset, + GLintptr writeOffset, + GLsizeiptr size) { - EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); + EVENT( + "(GLenum readTarget = 0x%X, GLenum writeTarget = 0x%X, GLintptr readOffset = %d, GLintptr " + "writeOffset = %d, GLsizeiptr size = %d)", + readTarget, writeTarget, readOffset, writeOffset, size); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(n, ids); + BufferBinding readTargetPacked = FromGLenum(readTarget); + BufferBinding writeTargetPacked = FromGLenum(writeTarget); + context->gatherParams(readTargetPacked, writeTargetPacked, + readOffset, writeOffset, size); - if (context->skipValidation() || ValidateGenQueries(context, n, ids)) + if (context->skipValidation() || + ValidateCopyBufferSubData(context, readTargetPacked, writeTargetPacked, readOffset, + writeOffset, size)) { - context->genQueries(n, ids); + context->copyBufferSubData(readTargetPacked, writeTargetPacked, readOffset, writeOffset, + size); + } + } +} + +void GL_APIENTRY CopyTexSubImage3D(GLenum target, + GLint level, + GLint xoffset, + GLint yoffset, + GLint zoffset, + GLint x, + GLint y, + GLsizei width, + GLsizei height) +{ + EVENT( + "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " + "zoffset = %d, GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", + target, level, xoffset, yoffset, zoffset, x, y, width, height); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, level, xoffset, yoffset, + zoffset, x, y, width, height); + + if (context->skipValidation() || + ValidateCopyTexSubImage3D(context, target, level, xoffset, yoffset, zoffset, x, y, + width, height)) + { + context->copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, + height); } } } @@ -253,123 +399,84 @@ void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids) } } -GLboolean GL_APIENTRY IsQuery(GLuint id) +void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers) { - EVENT("(GLuint id = %u)", id); + EVENT("(GLsizei count = %d, const GLuint *samplers = 0x%0.8p)", count, samplers); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(id); + context->gatherParams(count, samplers); - if (context->skipValidation() || ValidateIsQuery(context, id)) + if (context->skipValidation() || ValidateDeleteSamplers(context, count, samplers)) { - return context->isQuery(id); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY BeginQuery(GLenum target, GLuint id) -{ - EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target, id); - - if (context->skipValidation() || ValidateBeginQuery(context, target, id)) - { - context->beginQuery(target, id); + context->deleteSamplers(count, samplers); } } } -void GL_APIENTRY EndQuery(GLenum target) +void GL_APIENTRY DeleteSync(GLsync sync) { - EVENT("(GLenum target = 0x%X)", target); + EVENT("(GLsync sync = 0x%0.8p)", sync); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target); + context->gatherParams(sync); - if (context->skipValidation() || ValidateEndQuery(context, target)) + if (context->skipValidation() || ValidateDeleteSync(context, sync)) { - context->endQuery(target); + context->deleteSync(sync); } } } -void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params) +void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids) { - EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, - params); + EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target, pname, params); + context->gatherParams(n, ids); - if (context->skipValidation() || ValidateGetQueryiv(context, target, pname, params)) + if (context->skipValidation() || ValidateDeleteTransformFeedbacks(context, n, ids)) { - context->getQueryiv(target, pname, params); + context->deleteTransformFeedbacks(n, ids); } } } -void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) +void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays) { - EVENT("(GLuint id = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", id, pname, params); + EVENT("(GLsizei n = %d, const GLuint *arrays = 0x%0.8p)", n, arrays); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(id, pname, params); + context->gatherParams(n, arrays); - if (context->skipValidation() || ValidateGetQueryObjectuiv(context, id, pname, params)) + if (context->skipValidation() || ValidateDeleteVertexArrays(context, n, arrays)) { - context->getQueryObjectuiv(id, pname, params); + context->deleteVertexArrays(n, arrays); } } } -GLboolean GL_APIENTRY UnmapBuffer(GLenum target) +void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) { - EVENT("(GLenum target = 0x%X)", target); + EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d, GLsizei instancecount = %d)", + mode, first, count, instancecount); Context *context = GetValidGlobalContext(); if (context) { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked); - - if (context->skipValidation() || ValidateUnmapBuffer(context, targetPacked)) - { - return context->unmapBuffer(targetPacked); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params) -{ - EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, void **params = 0x%0.8p)", target, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, pname, params); + context->gatherParams(mode, first, count, instancecount); if (context->skipValidation() || - ValidateGetBufferPointerv(context, targetPacked, pname, params)) + ValidateDrawArraysInstanced(context, mode, first, count, instancecount)) { - context->getBufferPointerv(targetPacked, pname, params); + context->drawArraysInstanced(mode, first, count, instancecount); } } } @@ -390,199 +497,122 @@ void GL_APIENTRY DrawBuffers(GLsizei n, const GLenum *bufs) } } -void GL_APIENTRY UniformMatrix2x3fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +void GL_APIENTRY DrawElementsInstanced(GLenum mode, + GLsizei count, + GLenum type, + const void *indices, + GLsizei instancecount) { EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + "(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = " + "0x%0.8p, GLsizei instancecount = %d)", + mode, count, type, indices, instancecount); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + context->gatherParams(mode, count, type, indices, + instancecount); if (context->skipValidation() || - ValidateUniformMatrix2x3fv(context, location, count, transpose, value)) + ValidateDrawElementsInstanced(context, mode, count, type, indices, instancecount)) { - context->uniformMatrix2x3fv(location, count, transpose, value); + context->drawElementsInstanced(mode, count, type, indices, instancecount); } } } -void GL_APIENTRY UniformMatrix3x2fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +void GL_APIENTRY DrawRangeElements(GLenum mode, + GLuint start, + GLuint end, + GLsizei count, + GLenum type, + const void *indices) { EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + "(GLenum mode = 0x%X, GLuint start = %u, GLuint end = %u, GLsizei count = %d, GLenum type " + "= 0x%X, const void *indices = 0x%0.8p)", + mode, start, end, count, type, indices); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + context->gatherParams(mode, start, end, count, type, + indices); if (context->skipValidation() || - ValidateUniformMatrix3x2fv(context, location, count, transpose, value)) + ValidateDrawRangeElements(context, mode, start, end, count, type, indices)) { - context->uniformMatrix3x2fv(location, count, transpose, value); + context->drawRangeElements(mode, start, end, count, type, indices); } } } -void GL_APIENTRY UniformMatrix2x4fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +void GL_APIENTRY EndQuery(GLenum target) { - EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + EVENT("(GLenum target = 0x%X)", target); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + context->gatherParams(target); - if (context->skipValidation() || - ValidateUniformMatrix2x4fv(context, location, count, transpose, value)) + if (context->skipValidation() || ValidateEndQuery(context, target)) { - context->uniformMatrix2x4fv(location, count, transpose, value); + context->endQuery(target); } } } -void GL_APIENTRY UniformMatrix4x2fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +void GL_APIENTRY EndTransformFeedback() { - EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + EVENT("()"); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + context->gatherParams(); - if (context->skipValidation() || - ValidateUniformMatrix4x2fv(context, location, count, transpose, value)) + if (context->skipValidation() || ValidateEndTransformFeedback(context)) { - context->uniformMatrix4x2fv(location, count, transpose, value); + context->endTransformFeedback(); } } } -void GL_APIENTRY UniformMatrix3x4fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags) { - EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + EVENT("(GLenum condition = 0x%X, GLbitfield flags = 0x%X)", condition, flags); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + context->gatherParams(condition, flags); - if (context->skipValidation() || - ValidateUniformMatrix3x4fv(context, location, count, transpose, value)) + if (context->skipValidation() || ValidateFenceSync(context, condition, flags)) { - context->uniformMatrix3x4fv(location, count, transpose, value); + return context->fenceSync(condition, flags); } } + + return GetDefaultReturnValue(); } -void GL_APIENTRY UniformMatrix4x3fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) +void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) { - EVENT( - "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " - "= 0x%0.8p)", - location, count, transpose, value); + EVENT("(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d)", target, offset, + length); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(location, count, transpose, value); + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, offset, length); if (context->skipValidation() || - ValidateUniformMatrix4x3fv(context, location, count, transpose, value)) + ValidateFlushMappedBufferRange(context, targetPacked, offset, length)) { - context->uniformMatrix4x3fv(location, count, transpose, value); - } - } -} - -void GL_APIENTRY BlitFramebuffer(GLint srcX0, - GLint srcY0, - GLint srcX1, - GLint srcY1, - GLint dstX0, - GLint dstY0, - GLint dstX1, - GLint dstY1, - GLbitfield mask, - GLenum filter) -{ - EVENT( - "(GLint srcX0 = %d, GLint srcY0 = %d, GLint srcX1 = %d, GLint srcY1 = %d, GLint dstX0 = " - "%d, GLint dstY0 = %d, GLint dstX1 = %d, GLint dstY1 = %d, GLbitfield mask = 0x%X, GLenum " - "filter = 0x%X)", - srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, - dstX1, dstY1, mask, filter); - - if (context->skipValidation() || - ValidateBlitFramebuffer(context, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, - mask, filter)) - { - context->blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, - filter); - } - } -} - -void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, - GLsizei samples, - GLenum internalformat, - GLsizei width, - GLsizei height) -{ - EVENT( - "(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width " - "= %d, GLsizei height = %d)", - target, samples, internalformat, width, height); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams( - target, samples, internalformat, width, height); - - if (context->skipValidation() || - ValidateRenderbufferStorageMultisample(context, target, samples, internalformat, width, - height)) - { - context->renderbufferStorageMultisample(target, samples, internalformat, width, height); + context->flushMappedBufferRange(targetPacked, offset, length); } } } @@ -609,79 +639,50 @@ FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint } } -void *GL_APIENTRY MapBufferRange(GLenum target, - GLintptr offset, - GLsizeiptr length, - GLbitfield access) +void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids) { - EVENT( - "(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d, GLbitfield access = " - "0x%X)", - target, offset, length, access); + EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); Context *context = GetValidGlobalContext(); if (context) { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, offset, length, access); + context->gatherParams(n, ids); - if (context->skipValidation() || - ValidateMapBufferRange(context, targetPacked, offset, length, access)) + if (context->skipValidation() || ValidateGenQueries(context, n, ids)) { - return context->mapBufferRange(targetPacked, offset, length, access); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length) -{ - EVENT("(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d)", target, offset, - length); - - Context *context = GetValidGlobalContext(); - if (context) - { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, offset, length); - - if (context->skipValidation() || - ValidateFlushMappedBufferRange(context, targetPacked, offset, length)) - { - context->flushMappedBufferRange(targetPacked, offset, length); + context->genQueries(n, ids); } } } -void GL_APIENTRY BindVertexArray(GLuint array) +void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers) { - EVENT("(GLuint array = %u)", array); + EVENT("(GLsizei count = %d, GLuint *samplers = 0x%0.8p)", count, samplers); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(array); + context->gatherParams(count, samplers); - if (context->skipValidation() || ValidateBindVertexArray(context, array)) + if (context->skipValidation() || ValidateGenSamplers(context, count, samplers)) { - context->bindVertexArray(array); + context->genSamplers(count, samplers); } } } -void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays) +void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids) { - EVENT("(GLsizei n = %d, const GLuint *arrays = 0x%0.8p)", n, arrays); + EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(n, arrays); + context->gatherParams(n, ids); - if (context->skipValidation() || ValidateDeleteVertexArrays(context, n, arrays)) + if (context->skipValidation() || ValidateGenTransformFeedbacks(context, n, ids)) { - context->deleteVertexArrays(n, arrays); + context->genTransformFeedbacks(n, ids); } } } @@ -702,22 +703,169 @@ void GL_APIENTRY GenVertexArrays(GLsizei n, GLuint *arrays) } } -GLboolean GL_APIENTRY IsVertexArray(GLuint array) +void GL_APIENTRY GetActiveUniformBlockName(GLuint program, + GLuint uniformBlockIndex, + GLsizei bufSize, + GLsizei *length, + GLchar *uniformBlockName) { - EVENT("(GLuint array = %u)", array); + EVENT( + "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLsizei bufSize = %d, GLsizei " + "*length = 0x%0.8p, GLchar *uniformBlockName = 0x%0.8p)", + program, uniformBlockIndex, bufSize, length, uniformBlockName); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(array); + context->gatherParams( + program, uniformBlockIndex, bufSize, length, uniformBlockName); - if (context->skipValidation() || ValidateIsVertexArray(context, array)) + if (context->skipValidation() || + ValidateGetActiveUniformBlockName(context, program, uniformBlockIndex, bufSize, length, + uniformBlockName)) { - return context->isVertexArray(array); + context->getActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, + uniformBlockName); + } + } +} + +void GL_APIENTRY GetActiveUniformBlockiv(GLuint program, + GLuint uniformBlockIndex, + GLenum pname, + GLint *params) +{ + EVENT( + "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLenum pname = 0x%X, GLint *params = " + "0x%0.8p)", + program, uniformBlockIndex, pname, params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, uniformBlockIndex, + pname, params); + + if (context->skipValidation() || + ValidateGetActiveUniformBlockiv(context, program, uniformBlockIndex, pname, params)) + { + context->getActiveUniformBlockiv(program, uniformBlockIndex, pname, params); + } + } +} + +void GL_APIENTRY GetActiveUniformsiv(GLuint program, + GLsizei uniformCount, + const GLuint *uniformIndices, + GLenum pname, + GLint *params) +{ + EVENT( + "(GLuint program = %u, GLsizei uniformCount = %d, const GLuint *uniformIndices = 0x%0.8p, " + "GLenum pname = 0x%X, GLint *params = 0x%0.8p)", + program, uniformCount, uniformIndices, pname, params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, uniformCount, + uniformIndices, pname, params); + + if (context->skipValidation() || ValidateGetActiveUniformsiv(context, program, uniformCount, + uniformIndices, pname, params)) + { + context->getActiveUniformsiv(program, uniformCount, uniformIndices, pname, params); + } + } +} + +void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params) +{ + EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint64 *params = 0x%0.8p)", target, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, pname, params); + + if (context->skipValidation() || + ValidateGetBufferParameteri64v(context, targetPacked, pname, params)) + { + context->getBufferParameteri64v(targetPacked, pname, params); + } + } +} + +void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params) +{ + EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, void **params = 0x%0.8p)", target, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, pname, params); + + if (context->skipValidation() || + ValidateGetBufferPointerv(context, targetPacked, pname, params)) + { + context->getBufferPointerv(targetPacked, pname, params); + } + } +} + +GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name) +{ + EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, name); + + if (context->skipValidation() || ValidateGetFragDataLocation(context, program, name)) + { + return context->getFragDataLocation(program, name); } } - return GetDefaultReturnValue(); + return GetDefaultReturnValue(); +} + +void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data) +{ + EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint64 *data = 0x%0.8p)", target, index, + data); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, index, data); + + if (context->skipValidation() || ValidateGetInteger64i_v(context, target, index, data)) + { + context->getInteger64i_v(target, index, data); + } + } +} + +void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data) +{ + EVENT("(GLenum pname = 0x%X, GLint64 *data = 0x%0.8p)", pname, data); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pname, data); + + if (context->skipValidation() || ValidateGetInteger64v(context, pname, data)) + { + context->getInteger64v(pname, data); + } + } } void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data) @@ -736,99 +884,160 @@ void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data) } } -void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode) +void GL_APIENTRY GetInternalformativ(GLenum target, + GLenum internalformat, + GLenum pname, + GLsizei bufSize, + GLint *params) { - EVENT("(GLenum primitiveMode = 0x%X)", primitiveMode); + EVENT( + "(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLenum pname = 0x%X, GLsizei bufSize " + "= %d, GLint *params = 0x%0.8p)", + target, internalformat, pname, bufSize, params); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(primitiveMode); + context->gatherParams(target, internalformat, pname, + bufSize, params); - if (context->skipValidation() || ValidateBeginTransformFeedback(context, primitiveMode)) + if (context->skipValidation() || + ValidateGetInternalformativ(context, target, internalformat, pname, bufSize, params)) { - context->beginTransformFeedback(primitiveMode); + context->getInternalformativ(target, internalformat, pname, bufSize, params); } } } -void GL_APIENTRY EndTransformFeedback() +void GL_APIENTRY GetProgramBinary(GLuint program, + GLsizei bufSize, + GLsizei *length, + GLenum *binaryFormat, + void *binary) { - EVENT("()"); + EVENT( + "(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLenum " + "*binaryFormat = 0x%0.8p, void *binary = 0x%0.8p)", + program, bufSize, length, binaryFormat, binary); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(); + context->gatherParams(program, bufSize, length, binaryFormat, + binary); - if (context->skipValidation() || ValidateEndTransformFeedback(context)) + if (context->skipValidation() || + ValidateGetProgramBinary(context, program, bufSize, length, binaryFormat, binary)) { - context->endTransformFeedback(); + context->getProgramBinary(program, bufSize, length, binaryFormat, binary); } } } +void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params) +{ + EVENT("(GLuint id = %u, GLenum pname = 0x%X, GLuint *params = 0x%0.8p)", id, pname, params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(id, pname, params); + + if (context->skipValidation() || ValidateGetQueryObjectuiv(context, id, pname, params)) + { + context->getQueryObjectuiv(id, pname, params); + } + } +} + +void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params) +{ + EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, pname, params); + + if (context->skipValidation() || ValidateGetQueryiv(context, target, pname, params)) + { + context->getQueryiv(target, pname, params); + } + } +} + +void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", sampler, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, params); + + if (context->skipValidation() || + ValidateGetSamplerParameterfv(context, sampler, pname, params)) + { + context->getSamplerParameterfv(sampler, pname, params); + } + } +} + +void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", sampler, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, params); + + if (context->skipValidation() || + ValidateGetSamplerParameteriv(context, sampler, pname, params)) + { + context->getSamplerParameteriv(sampler, pname, params); + } + } +} + +const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index) +{ + EVENT("(GLenum name = 0x%X, GLuint index = %u)", name, index); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(name, index); + + if (context->skipValidation() || ValidateGetStringi(context, name, index)) + { + return context->getStringi(name, index); + } + } + + return GetDefaultReturnValue(); +} + void GL_APIENTRY -BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) +GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) { EVENT( - "(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u, GLintptr offset = %d, " - "GLsizeiptr size = %d)", - target, index, buffer, offset, size); + "(GLsync sync = 0x%0.8p, GLenum pname = 0x%X, GLsizei bufSize = %d, GLsizei *length = " + "0x%0.8p, GLint *values = 0x%0.8p)", + sync, pname, bufSize, length, values); Context *context = GetValidGlobalContext(); if (context) { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, index, buffer, offset, - size); + context->gatherParams(sync, pname, bufSize, length, values); if (context->skipValidation() || - ValidateBindBufferRange(context, targetPacked, index, buffer, offset, size)) + ValidateGetSynciv(context, sync, pname, bufSize, length, values)) { - context->bindBufferRange(targetPacked, index, buffer, offset, size); - } - } -} - -void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer) -{ - EVENT("(GLenum target = 0x%X, GLuint index = %u, GLuint buffer = %u)", target, index, buffer); - - Context *context = GetValidGlobalContext(); - if (context) - { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, index, buffer); - - if (context->skipValidation() || - ValidateBindBufferBase(context, targetPacked, index, buffer)) - { - context->bindBufferBase(targetPacked, index, buffer); - } - } -} - -void GL_APIENTRY TransformFeedbackVaryings(GLuint program, - GLsizei count, - const GLchar *const *varyings, - GLenum bufferMode) -{ - EVENT( - "(GLuint program = %u, GLsizei count = %d, const GLchar *const*varyings = 0x%0.8p, GLenum " - "bufferMode = 0x%X)", - program, count, varyings, bufferMode); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, count, varyings, - bufferMode); - - if (context->skipValidation() || - ValidateTransformFeedbackVaryings(context, program, count, varyings, bufferMode)) - { - context->transformFeedbackVaryings(program, count, varyings, bufferMode); + context->getSynciv(sync, pname, bufSize, length, values); } } } @@ -861,23 +1070,63 @@ void GL_APIENTRY GetTransformFeedbackVarying(GLuint program, } } -void GL_APIENTRY -VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer) +GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) { - EVENT( - "(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void " - "*pointer = 0x%0.8p)", - index, size, type, stride, pointer); + EVENT("(GLuint program = %u, const GLchar *uniformBlockName = 0x%0.8p)", program, + uniformBlockName); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(index, size, type, stride, pointer); + context->gatherParams(program, uniformBlockName); if (context->skipValidation() || - ValidateVertexAttribIPointer(context, index, size, type, stride, pointer)) + ValidateGetUniformBlockIndex(context, program, uniformBlockName)) { - context->vertexAttribIPointer(index, size, type, stride, pointer); + return context->getUniformBlockIndex(program, uniformBlockName); + } + } + + return GetDefaultReturnValue(); +} + +void GL_APIENTRY GetUniformIndices(GLuint program, + GLsizei uniformCount, + const GLchar *const *uniformNames, + GLuint *uniformIndices) +{ + EVENT( + "(GLuint program = %u, GLsizei uniformCount = %d, const GLchar *const*uniformNames = " + "0x%0.8p, GLuint *uniformIndices = 0x%0.8p)", + program, uniformCount, uniformNames, uniformIndices); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, uniformCount, uniformNames, + uniformIndices); + + if (context->skipValidation() || + ValidateGetUniformIndices(context, program, uniformCount, uniformNames, uniformIndices)) + { + context->getUniformIndices(program, uniformCount, uniformNames, uniformIndices); + } + } +} + +void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLuint *params = 0x%0.8p)", program, location, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, params); + + if (context->skipValidation() || ValidateGetUniformuiv(context, program, location, params)) + { + context->getUniformuiv(program, location, params); } } } @@ -916,1048 +1165,6 @@ void GL_APIENTRY GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params) } } -void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w) -{ - EVENT("(GLuint index = %u, GLint x = %d, GLint y = %d, GLint z = %d, GLint w = %d)", index, x, - y, z, w); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, x, y, z, w); - - if (context->skipValidation() || ValidateVertexAttribI4i(context, index, x, y, z, w)) - { - context->vertexAttribI4i(index, x, y, z, w); - } - } -} - -void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) -{ - EVENT("(GLuint index = %u, GLuint x = %u, GLuint y = %u, GLuint z = %u, GLuint w = %u)", index, - x, y, z, w); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, x, y, z, w); - - if (context->skipValidation() || ValidateVertexAttribI4ui(context, index, x, y, z, w)) - { - context->vertexAttribI4ui(index, x, y, z, w); - } - } -} - -void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v) -{ - EVENT("(GLuint index = %u, const GLint *v = 0x%0.8p)", index, v); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, v); - - if (context->skipValidation() || ValidateVertexAttribI4iv(context, index, v)) - { - context->vertexAttribI4iv(index, v); - } - } -} - -void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v) -{ - EVENT("(GLuint index = %u, const GLuint *v = 0x%0.8p)", index, v); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, v); - - if (context->skipValidation() || ValidateVertexAttribI4uiv(context, index, v)) - { - context->vertexAttribI4uiv(index, v); - } - } -} - -void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLuint *params = 0x%0.8p)", program, location, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, params); - - if (context->skipValidation() || ValidateGetUniformuiv(context, program, location, params)) - { - context->getUniformuiv(program, location, params); - } - } -} - -GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name) -{ - EVENT("(GLuint program = %u, const GLchar *name = 0x%0.8p)", program, name); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, name); - - if (context->skipValidation() || ValidateGetFragDataLocation(context, program, name)) - { - return context->getFragDataLocation(program, name); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY Uniform1ui(GLint location, GLuint v0) -{ - EVENT("(GLint location = %d, GLuint v0 = %u)", location, v0); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, v0); - - if (context->skipValidation() || ValidateUniform1ui(context, location, v0)) - { - context->uniform1ui(location, v0); - } - } -} - -void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1) -{ - EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", location, v0, v1); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, v0, v1); - - if (context->skipValidation() || ValidateUniform2ui(context, location, v0, v1)) - { - context->uniform2ui(location, v0, v1); - } - } -} - -void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) -{ - EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u)", location, v0, v1, - v2); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, v0, v1, v2); - - if (context->skipValidation() || ValidateUniform3ui(context, location, v0, v1, v2)) - { - context->uniform3ui(location, v0, v1, v2); - } - } -} - -void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) -{ - EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u, GLuint v3 = %u)", - location, v0, v1, v2, v3); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, v0, v1, v2, v3); - - if (context->skipValidation() || ValidateUniform4ui(context, location, v0, v1, v2, v3)) - { - context->uniform4ui(location, v0, v1, v2, v3); - } - } -} - -void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value) -{ - EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, - count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, count, value); - - if (context->skipValidation() || ValidateUniform1uiv(context, location, count, value)) - { - context->uniform1uiv(location, count, value); - } - } -} - -void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value) -{ - EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, - count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, count, value); - - if (context->skipValidation() || ValidateUniform2uiv(context, location, count, value)) - { - context->uniform2uiv(location, count, value); - } - } -} - -void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value) -{ - EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, - count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, count, value); - - if (context->skipValidation() || ValidateUniform3uiv(context, location, count, value)) - { - context->uniform3uiv(location, count, value); - } - } -} - -void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value) -{ - EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, - count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(location, count, value); - - if (context->skipValidation() || ValidateUniform4uiv(context, location, count, value)) - { - context->uniform4uiv(location, count, value); - } - } -} - -void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value) -{ - EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLint *value = 0x%0.8p)", buffer, - drawbuffer, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(buffer, drawbuffer, value); - - if (context->skipValidation() || ValidateClearBufferiv(context, buffer, drawbuffer, value)) - { - context->clearBufferiv(buffer, drawbuffer, value); - } - } -} - -void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value) -{ - EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLuint *value = 0x%0.8p)", buffer, - drawbuffer, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(buffer, drawbuffer, value); - - if (context->skipValidation() || ValidateClearBufferuiv(context, buffer, drawbuffer, value)) - { - context->clearBufferuiv(buffer, drawbuffer, value); - } - } -} - -void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value) -{ - EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, const GLfloat *value = 0x%0.8p)", buffer, - drawbuffer, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(buffer, drawbuffer, value); - - if (context->skipValidation() || ValidateClearBufferfv(context, buffer, drawbuffer, value)) - { - context->clearBufferfv(buffer, drawbuffer, value); - } - } -} - -void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) -{ - EVENT("(GLenum buffer = 0x%X, GLint drawbuffer = %d, GLfloat depth = %f, GLint stencil = %d)", - buffer, drawbuffer, depth, stencil); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(buffer, drawbuffer, depth, stencil); - - if (context->skipValidation() || - ValidateClearBufferfi(context, buffer, drawbuffer, depth, stencil)) - { - context->clearBufferfi(buffer, drawbuffer, depth, stencil); - } - } -} - -const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index) -{ - EVENT("(GLenum name = 0x%X, GLuint index = %u)", name, index); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(name, index); - - if (context->skipValidation() || ValidateGetStringi(context, name, index)) - { - return context->getStringi(name, index); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY CopyBufferSubData(GLenum readTarget, - GLenum writeTarget, - GLintptr readOffset, - GLintptr writeOffset, - GLsizeiptr size) -{ - EVENT( - "(GLenum readTarget = 0x%X, GLenum writeTarget = 0x%X, GLintptr readOffset = %d, GLintptr " - "writeOffset = %d, GLsizeiptr size = %d)", - readTarget, writeTarget, readOffset, writeOffset, size); - - Context *context = GetValidGlobalContext(); - if (context) - { - BufferBinding readTargetPacked = FromGLenum(readTarget); - BufferBinding writeTargetPacked = FromGLenum(writeTarget); - context->gatherParams(readTargetPacked, writeTargetPacked, - readOffset, writeOffset, size); - - if (context->skipValidation() || - ValidateCopyBufferSubData(context, readTargetPacked, writeTargetPacked, readOffset, - writeOffset, size)) - { - context->copyBufferSubData(readTargetPacked, writeTargetPacked, readOffset, writeOffset, - size); - } - } -} - -void GL_APIENTRY GetUniformIndices(GLuint program, - GLsizei uniformCount, - const GLchar *const *uniformNames, - GLuint *uniformIndices) -{ - EVENT( - "(GLuint program = %u, GLsizei uniformCount = %d, const GLchar *const*uniformNames = " - "0x%0.8p, GLuint *uniformIndices = 0x%0.8p)", - program, uniformCount, uniformNames, uniformIndices); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, uniformCount, uniformNames, - uniformIndices); - - if (context->skipValidation() || - ValidateGetUniformIndices(context, program, uniformCount, uniformNames, uniformIndices)) - { - context->getUniformIndices(program, uniformCount, uniformNames, uniformIndices); - } - } -} - -void GL_APIENTRY GetActiveUniformsiv(GLuint program, - GLsizei uniformCount, - const GLuint *uniformIndices, - GLenum pname, - GLint *params) -{ - EVENT( - "(GLuint program = %u, GLsizei uniformCount = %d, const GLuint *uniformIndices = 0x%0.8p, " - "GLenum pname = 0x%X, GLint *params = 0x%0.8p)", - program, uniformCount, uniformIndices, pname, params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, uniformCount, - uniformIndices, pname, params); - - if (context->skipValidation() || ValidateGetActiveUniformsiv(context, program, uniformCount, - uniformIndices, pname, params)) - { - context->getActiveUniformsiv(program, uniformCount, uniformIndices, pname, params); - } - } -} - -GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName) -{ - EVENT("(GLuint program = %u, const GLchar *uniformBlockName = 0x%0.8p)", program, - uniformBlockName); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, uniformBlockName); - - if (context->skipValidation() || - ValidateGetUniformBlockIndex(context, program, uniformBlockName)) - { - return context->getUniformBlockIndex(program, uniformBlockName); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY GetActiveUniformBlockiv(GLuint program, - GLuint uniformBlockIndex, - GLenum pname, - GLint *params) -{ - EVENT( - "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLenum pname = 0x%X, GLint *params = " - "0x%0.8p)", - program, uniformBlockIndex, pname, params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, uniformBlockIndex, - pname, params); - - if (context->skipValidation() || - ValidateGetActiveUniformBlockiv(context, program, uniformBlockIndex, pname, params)) - { - context->getActiveUniformBlockiv(program, uniformBlockIndex, pname, params); - } - } -} - -void GL_APIENTRY GetActiveUniformBlockName(GLuint program, - GLuint uniformBlockIndex, - GLsizei bufSize, - GLsizei *length, - GLchar *uniformBlockName) -{ - EVENT( - "(GLuint program = %u, GLuint uniformBlockIndex = %u, GLsizei bufSize = %d, GLsizei " - "*length = 0x%0.8p, GLchar *uniformBlockName = 0x%0.8p)", - program, uniformBlockIndex, bufSize, length, uniformBlockName); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams( - program, uniformBlockIndex, bufSize, length, uniformBlockName); - - if (context->skipValidation() || - ValidateGetActiveUniformBlockName(context, program, uniformBlockIndex, bufSize, length, - uniformBlockName)) - { - context->getActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, - uniformBlockName); - } - } -} - -void GL_APIENTRY UniformBlockBinding(GLuint program, - GLuint uniformBlockIndex, - GLuint uniformBlockBinding) -{ - EVENT("(GLuint program = %u, GLuint uniformBlockIndex = %u, GLuint uniformBlockBinding = %u)", - program, uniformBlockIndex, uniformBlockBinding); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, uniformBlockIndex, - uniformBlockBinding); - - if (context->skipValidation() || - ValidateUniformBlockBinding(context, program, uniformBlockIndex, uniformBlockBinding)) - { - context->uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); - } - } -} - -void GL_APIENTRY DrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) -{ - EVENT("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d, GLsizei instancecount = %d)", - mode, first, count, instancecount); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(mode, first, count, instancecount); - - if (context->skipValidation() || - ValidateDrawArraysInstanced(context, mode, first, count, instancecount)) - { - context->drawArraysInstanced(mode, first, count, instancecount); - } - } -} - -void GL_APIENTRY DrawElementsInstanced(GLenum mode, - GLsizei count, - GLenum type, - const void *indices, - GLsizei instancecount) -{ - EVENT( - "(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const void *indices = " - "0x%0.8p, GLsizei instancecount = %d)", - mode, count, type, indices, instancecount); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(mode, count, type, indices, - instancecount); - - if (context->skipValidation() || - ValidateDrawElementsInstanced(context, mode, count, type, indices, instancecount)) - { - context->drawElementsInstanced(mode, count, type, indices, instancecount); - } - } -} - -GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags) -{ - EVENT("(GLenum condition = 0x%X, GLbitfield flags = 0x%X)", condition, flags); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(condition, flags); - - if (context->skipValidation() || ValidateFenceSync(context, condition, flags)) - { - return context->fenceSync(condition, flags); - } - } - - return GetDefaultReturnValue(); -} - -GLboolean GL_APIENTRY IsSync(GLsync sync) -{ - EVENT("(GLsync sync = 0x%0.8p)", sync); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sync); - - if (context->skipValidation() || ValidateIsSync(context, sync)) - { - return context->isSync(sync); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY DeleteSync(GLsync sync) -{ - EVENT("(GLsync sync = 0x%0.8p)", sync); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sync); - - if (context->skipValidation() || ValidateDeleteSync(context, sync)) - { - context->deleteSync(sync); - } - } -} - -GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) -{ - EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, - timeout); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sync, flags, timeout); - - if (context->skipValidation() || ValidateClientWaitSync(context, sync, flags, timeout)) - { - return context->clientWaitSync(sync, flags, timeout); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) -{ - EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, - timeout); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sync, flags, timeout); - - if (context->skipValidation() || ValidateWaitSync(context, sync, flags, timeout)) - { - context->waitSync(sync, flags, timeout); - } - } -} - -void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data) -{ - EVENT("(GLenum pname = 0x%X, GLint64 *data = 0x%0.8p)", pname, data); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pname, data); - - if (context->skipValidation() || ValidateGetInteger64v(context, pname, data)) - { - context->getInteger64v(pname, data); - } - } -} - -void GL_APIENTRY -GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values) -{ - EVENT( - "(GLsync sync = 0x%0.8p, GLenum pname = 0x%X, GLsizei bufSize = %d, GLsizei *length = " - "0x%0.8p, GLint *values = 0x%0.8p)", - sync, pname, bufSize, length, values); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sync, pname, bufSize, length, values); - - if (context->skipValidation() || - ValidateGetSynciv(context, sync, pname, bufSize, length, values)) - { - context->getSynciv(sync, pname, bufSize, length, values); - } - } -} - -void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data) -{ - EVENT("(GLenum target = 0x%X, GLuint index = %u, GLint64 *data = 0x%0.8p)", target, index, - data); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target, index, data); - - if (context->skipValidation() || ValidateGetInteger64i_v(context, target, index, data)) - { - context->getInteger64i_v(target, index, data); - } - } -} - -void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params) -{ - EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint64 *params = 0x%0.8p)", target, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - BufferBinding targetPacked = FromGLenum(target); - context->gatherParams(targetPacked, pname, params); - - if (context->skipValidation() || - ValidateGetBufferParameteri64v(context, targetPacked, pname, params)) - { - context->getBufferParameteri64v(targetPacked, pname, params); - } - } -} - -void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers) -{ - EVENT("(GLsizei count = %d, GLuint *samplers = 0x%0.8p)", count, samplers); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(count, samplers); - - if (context->skipValidation() || ValidateGenSamplers(context, count, samplers)) - { - context->genSamplers(count, samplers); - } - } -} - -void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers) -{ - EVENT("(GLsizei count = %d, const GLuint *samplers = 0x%0.8p)", count, samplers); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(count, samplers); - - if (context->skipValidation() || ValidateDeleteSamplers(context, count, samplers)) - { - context->deleteSamplers(count, samplers); - } - } -} - -GLboolean GL_APIENTRY IsSampler(GLuint sampler) -{ - EVENT("(GLuint sampler = %u)", sampler); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler); - - if (context->skipValidation() || ValidateIsSampler(context, sampler)) - { - return context->isSampler(sampler); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler) -{ - EVENT("(GLuint unit = %u, GLuint sampler = %u)", unit, sampler); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(unit, sampler); - - if (context->skipValidation() || ValidateBindSampler(context, unit, sampler)) - { - context->bindSampler(unit, sampler); - } - } -} - -void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint param = %d)", sampler, pname, param); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, param); - - if (context->skipValidation() || ValidateSamplerParameteri(context, sampler, pname, param)) - { - context->samplerParameteri(sampler, pname, param); - } - } -} - -void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLint *param = 0x%0.8p)", sampler, - pname, param); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, param); - - if (context->skipValidation() || ValidateSamplerParameteriv(context, sampler, pname, param)) - { - context->samplerParameteriv(sampler, pname, param); - } - } -} - -void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat param = %f)", sampler, pname, param); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, param); - - if (context->skipValidation() || ValidateSamplerParameterf(context, sampler, pname, param)) - { - context->samplerParameterf(sampler, pname, param); - } - } -} - -void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLfloat *param = 0x%0.8p)", sampler, - pname, param); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, param); - - if (context->skipValidation() || ValidateSamplerParameterfv(context, sampler, pname, param)) - { - context->samplerParameterfv(sampler, pname, param); - } - } -} - -void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", sampler, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, params); - - if (context->skipValidation() || - ValidateGetSamplerParameteriv(context, sampler, pname, params)) - { - context->getSamplerParameteriv(sampler, pname, params); - } - } -} - -void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params) -{ - EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", sampler, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(sampler, pname, params); - - if (context->skipValidation() || - ValidateGetSamplerParameterfv(context, sampler, pname, params)) - { - context->getSamplerParameterfv(sampler, pname, params); - } - } -} - -void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor) -{ - EVENT("(GLuint index = %u, GLuint divisor = %u)", index, divisor); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(index, divisor); - - if (context->skipValidation() || ValidateVertexAttribDivisor(context, index, divisor)) - { - context->vertexAttribDivisor(index, divisor); - } - } -} - -void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id) -{ - EVENT("(GLenum target = 0x%X, GLuint id = %u)", target, id); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target, id); - - if (context->skipValidation() || ValidateBindTransformFeedback(context, target, id)) - { - context->bindTransformFeedback(target, id); - } - } -} - -void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids) -{ - EVENT("(GLsizei n = %d, const GLuint *ids = 0x%0.8p)", n, ids); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(n, ids); - - if (context->skipValidation() || ValidateDeleteTransformFeedbacks(context, n, ids)) - { - context->deleteTransformFeedbacks(n, ids); - } - } -} - -void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids) -{ - EVENT("(GLsizei n = %d, GLuint *ids = 0x%0.8p)", n, ids); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(n, ids); - - if (context->skipValidation() || ValidateGenTransformFeedbacks(context, n, ids)) - { - context->genTransformFeedbacks(n, ids); - } - } -} - -GLboolean GL_APIENTRY IsTransformFeedback(GLuint id) -{ - EVENT("(GLuint id = %u)", id); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(id); - - if (context->skipValidation() || ValidateIsTransformFeedback(context, id)) - { - return context->isTransformFeedback(id); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY PauseTransformFeedback() -{ - EVENT("()"); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(); - - if (context->skipValidation() || ValidatePauseTransformFeedback(context)) - { - context->pauseTransformFeedback(); - } - } -} - -void GL_APIENTRY ResumeTransformFeedback() -{ - EVENT("()"); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(); - - if (context->skipValidation() || ValidateResumeTransformFeedback(context)) - { - context->resumeTransformFeedback(); - } - } -} - -void GL_APIENTRY GetProgramBinary(GLuint program, - GLsizei bufSize, - GLsizei *length, - GLenum *binaryFormat, - void *binary) -{ - EVENT( - "(GLuint program = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLenum " - "*binaryFormat = 0x%0.8p, void *binary = 0x%0.8p)", - program, bufSize, length, binaryFormat, binary); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, bufSize, length, binaryFormat, - binary); - - if (context->skipValidation() || - ValidateGetProgramBinary(context, program, bufSize, length, binaryFormat, binary)) - { - context->getProgramBinary(program, bufSize, length, binaryFormat, binary); - } - } -} - -void GL_APIENTRY ProgramBinary(GLuint program, - GLenum binaryFormat, - const void *binary, - GLsizei length) -{ - EVENT( - "(GLuint program = %u, GLenum binaryFormat = 0x%X, const void *binary = 0x%0.8p, GLsizei " - "length = %d)", - program, binaryFormat, binary, length); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, binaryFormat, binary, length); - - if (context->skipValidation() || - ValidateProgramBinary(context, program, binaryFormat, binary, length)) - { - context->programBinary(program, binaryFormat, binary, length); - } - } -} - -void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value) -{ - EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint value = %d)", program, pname, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, pname, value); - - if (context->skipValidation() || ValidateProgramParameteri(context, program, pname, value)) - { - context->programParameteri(program, pname, value); - } - } -} - void GL_APIENTRY InvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments) @@ -2009,6 +1216,334 @@ void GL_APIENTRY InvalidateSubFramebuffer(GLenum target, } } +GLboolean GL_APIENTRY IsQuery(GLuint id) +{ + EVENT("(GLuint id = %u)", id); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(id); + + if (context->skipValidation() || ValidateIsQuery(context, id)) + { + return context->isQuery(id); + } + } + + return GetDefaultReturnValue(); +} + +GLboolean GL_APIENTRY IsSampler(GLuint sampler) +{ + EVENT("(GLuint sampler = %u)", sampler); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler); + + if (context->skipValidation() || ValidateIsSampler(context, sampler)) + { + return context->isSampler(sampler); + } + } + + return GetDefaultReturnValue(); +} + +GLboolean GL_APIENTRY IsSync(GLsync sync) +{ + EVENT("(GLsync sync = 0x%0.8p)", sync); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sync); + + if (context->skipValidation() || ValidateIsSync(context, sync)) + { + return context->isSync(sync); + } + } + + return GetDefaultReturnValue(); +} + +GLboolean GL_APIENTRY IsTransformFeedback(GLuint id) +{ + EVENT("(GLuint id = %u)", id); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(id); + + if (context->skipValidation() || ValidateIsTransformFeedback(context, id)) + { + return context->isTransformFeedback(id); + } + } + + return GetDefaultReturnValue(); +} + +GLboolean GL_APIENTRY IsVertexArray(GLuint array) +{ + EVENT("(GLuint array = %u)", array); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(array); + + if (context->skipValidation() || ValidateIsVertexArray(context, array)) + { + return context->isVertexArray(array); + } + } + + return GetDefaultReturnValue(); +} + +void *GL_APIENTRY MapBufferRange(GLenum target, + GLintptr offset, + GLsizeiptr length, + GLbitfield access) +{ + EVENT( + "(GLenum target = 0x%X, GLintptr offset = %d, GLsizeiptr length = %d, GLbitfield access = " + "0x%X)", + target, offset, length, access); + + Context *context = GetValidGlobalContext(); + if (context) + { + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked, offset, length, access); + + if (context->skipValidation() || + ValidateMapBufferRange(context, targetPacked, offset, length, access)) + { + return context->mapBufferRange(targetPacked, offset, length, access); + } + } + + return GetDefaultReturnValue(); +} + +void GL_APIENTRY PauseTransformFeedback() +{ + EVENT("()"); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(); + + if (context->skipValidation() || ValidatePauseTransformFeedback(context)) + { + context->pauseTransformFeedback(); + } + } +} + +void GL_APIENTRY ProgramBinary(GLuint program, + GLenum binaryFormat, + const void *binary, + GLsizei length) +{ + EVENT( + "(GLuint program = %u, GLenum binaryFormat = 0x%X, const void *binary = 0x%0.8p, GLsizei " + "length = %d)", + program, binaryFormat, binary, length); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, binaryFormat, binary, length); + + if (context->skipValidation() || + ValidateProgramBinary(context, program, binaryFormat, binary, length)) + { + context->programBinary(program, binaryFormat, binary, length); + } + } +} + +void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value) +{ + EVENT("(GLuint program = %u, GLenum pname = 0x%X, GLint value = %d)", program, pname, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, pname, value); + + if (context->skipValidation() || ValidateProgramParameteri(context, program, pname, value)) + { + context->programParameteri(program, pname, value); + } + } +} + +void GL_APIENTRY ReadBuffer(GLenum src) +{ + EVENT("(GLenum src = 0x%X)", src); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(src); + + if (context->skipValidation() || ValidateReadBuffer(context, src)) + { + context->readBuffer(src); + } + } +} + +void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, + GLsizei samples, + GLenum internalformat, + GLsizei width, + GLsizei height) +{ + EVENT( + "(GLenum target = 0x%X, GLsizei samples = %d, GLenum internalformat = 0x%X, GLsizei width " + "= %d, GLsizei height = %d)", + target, samples, internalformat, width, height); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams( + target, samples, internalformat, width, height); + + if (context->skipValidation() || + ValidateRenderbufferStorageMultisample(context, target, samples, internalformat, width, + height)) + { + context->renderbufferStorageMultisample(target, samples, internalformat, width, height); + } + } +} + +void GL_APIENTRY ResumeTransformFeedback() +{ + EVENT("()"); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(); + + if (context->skipValidation() || ValidateResumeTransformFeedback(context)) + { + context->resumeTransformFeedback(); + } + } +} + +void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLfloat param = %f)", sampler, pname, param); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, param); + + if (context->skipValidation() || ValidateSamplerParameterf(context, sampler, pname, param)) + { + context->samplerParameterf(sampler, pname, param); + } + } +} + +void GL_APIENTRY SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLfloat *param = 0x%0.8p)", sampler, + pname, param); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, param); + + if (context->skipValidation() || ValidateSamplerParameterfv(context, sampler, pname, param)) + { + context->samplerParameterfv(sampler, pname, param); + } + } +} + +void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, GLint param = %d)", sampler, pname, param); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, param); + + if (context->skipValidation() || ValidateSamplerParameteri(context, sampler, pname, param)) + { + context->samplerParameteri(sampler, pname, param); + } + } +} + +void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param) +{ + EVENT("(GLuint sampler = %u, GLenum pname = 0x%X, const GLint *param = 0x%0.8p)", sampler, + pname, param); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sampler, pname, param); + + if (context->skipValidation() || ValidateSamplerParameteriv(context, sampler, pname, param)) + { + context->samplerParameteriv(sampler, pname, param); + } + } +} + +void GL_APIENTRY TexImage3D(GLenum target, + GLint level, + GLint internalformat, + GLsizei width, + GLsizei height, + GLsizei depth, + GLint border, + GLenum format, + GLenum type, + const void *pixels) +{ + EVENT( + "(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, " + "GLsizei height = %d, GLsizei depth = %d, GLint border = %d, GLenum format = 0x%X, GLenum " + "type = 0x%X, const void *pixels = 0x%0.8p)", + target, level, internalformat, width, height, depth, border, format, type, pixels); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, level, internalformat, width, height, + depth, border, format, type, pixels); + + if (context->skipValidation() || + ValidateTexImage3D(context, target, level, internalformat, width, height, depth, border, + format, type, pixels)) + { + context->texImage3D(target, level, internalformat, width, height, depth, border, format, + type, pixels); + } + } +} + void GL_APIENTRY TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) { @@ -2057,27 +1592,492 @@ void GL_APIENTRY TexStorage3D(GLenum target, } } -void GL_APIENTRY GetInternalformativ(GLenum target, - GLenum internalformat, - GLenum pname, - GLsizei bufSize, - GLint *params) +void GL_APIENTRY TexSubImage3D(GLenum target, + GLint level, + GLint xoffset, + GLint yoffset, + GLint zoffset, + GLsizei width, + GLsizei height, + GLsizei depth, + GLenum format, + GLenum type, + const void *pixels) { EVENT( - "(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLenum pname = 0x%X, GLsizei bufSize " - "= %d, GLint *params = 0x%0.8p)", - target, internalformat, pname, bufSize, params); + "(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, GLint " + "zoffset = %d, GLsizei width = %d, GLsizei height = %d, GLsizei depth = %d, GLenum format " + "= 0x%X, GLenum type = 0x%X, const void *pixels = 0x%0.8p)", + target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target, internalformat, pname, - bufSize, params); + context->gatherParams( + target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); if (context->skipValidation() || - ValidateGetInternalformativ(context, target, internalformat, pname, bufSize, params)) + ValidateTexSubImage3D(context, target, level, xoffset, yoffset, zoffset, width, height, + depth, format, type, pixels)) { - context->getInternalformativ(target, internalformat, pname, bufSize, params); + context->texSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, + format, type, pixels); + } + } +} + +void GL_APIENTRY TransformFeedbackVaryings(GLuint program, + GLsizei count, + const GLchar *const *varyings, + GLenum bufferMode) +{ + EVENT( + "(GLuint program = %u, GLsizei count = %d, const GLchar *const*varyings = 0x%0.8p, GLenum " + "bufferMode = 0x%X)", + program, count, varyings, bufferMode); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, count, varyings, + bufferMode); + + if (context->skipValidation() || + ValidateTransformFeedbackVaryings(context, program, count, varyings, bufferMode)) + { + context->transformFeedbackVaryings(program, count, varyings, bufferMode); + } + } +} + +void GL_APIENTRY Uniform1ui(GLint location, GLuint v0) +{ + EVENT("(GLint location = %d, GLuint v0 = %u)", location, v0); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, v0); + + if (context->skipValidation() || ValidateUniform1ui(context, location, v0)) + { + context->uniform1ui(location, v0); + } + } +} + +void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value) +{ + EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, + count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, value); + + if (context->skipValidation() || ValidateUniform1uiv(context, location, count, value)) + { + context->uniform1uiv(location, count, value); + } + } +} + +void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1) +{ + EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", location, v0, v1); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, v0, v1); + + if (context->skipValidation() || ValidateUniform2ui(context, location, v0, v1)) + { + context->uniform2ui(location, v0, v1); + } + } +} + +void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value) +{ + EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, + count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, value); + + if (context->skipValidation() || ValidateUniform2uiv(context, location, count, value)) + { + context->uniform2uiv(location, count, value); + } + } +} + +void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) +{ + EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u)", location, v0, v1, + v2); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, v0, v1, v2); + + if (context->skipValidation() || ValidateUniform3ui(context, location, v0, v1, v2)) + { + context->uniform3ui(location, v0, v1, v2); + } + } +} + +void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value) +{ + EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, + count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, value); + + if (context->skipValidation() || ValidateUniform3uiv(context, location, count, value)) + { + context->uniform3uiv(location, count, value); + } + } +} + +void GL_APIENTRY Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) +{ + EVENT("(GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = %u, GLuint v3 = %u)", + location, v0, v1, v2, v3); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, v0, v1, v2, v3); + + if (context->skipValidation() || ValidateUniform4ui(context, location, v0, v1, v2, v3)) + { + context->uniform4ui(location, v0, v1, v2, v3); + } + } +} + +void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value) +{ + EVENT("(GLint location = %d, GLsizei count = %d, const GLuint *value = 0x%0.8p)", location, + count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, value); + + if (context->skipValidation() || ValidateUniform4uiv(context, location, count, value)) + { + context->uniform4uiv(location, count, value); + } + } +} + +void GL_APIENTRY UniformBlockBinding(GLuint program, + GLuint uniformBlockIndex, + GLuint uniformBlockBinding) +{ + EVENT("(GLuint program = %u, GLuint uniformBlockIndex = %u, GLuint uniformBlockBinding = %u)", + program, uniformBlockIndex, uniformBlockBinding); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, uniformBlockIndex, + uniformBlockBinding); + + if (context->skipValidation() || + ValidateUniformBlockBinding(context, program, uniformBlockIndex, uniformBlockBinding)) + { + context->uniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding); + } + } +} + +void GL_APIENTRY UniformMatrix2x3fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix2x3fv(context, location, count, transpose, value)) + { + context->uniformMatrix2x3fv(location, count, transpose, value); + } + } +} + +void GL_APIENTRY UniformMatrix2x4fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix2x4fv(context, location, count, transpose, value)) + { + context->uniformMatrix2x4fv(location, count, transpose, value); + } + } +} + +void GL_APIENTRY UniformMatrix3x2fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix3x2fv(context, location, count, transpose, value)) + { + context->uniformMatrix3x2fv(location, count, transpose, value); + } + } +} + +void GL_APIENTRY UniformMatrix3x4fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix3x4fv(context, location, count, transpose, value)) + { + context->uniformMatrix3x4fv(location, count, transpose, value); + } + } +} + +void GL_APIENTRY UniformMatrix4x2fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix4x2fv(context, location, count, transpose, value)) + { + context->uniformMatrix4x2fv(location, count, transpose, value); + } + } +} + +void GL_APIENTRY UniformMatrix4x3fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, const GLfloat *value " + "= 0x%0.8p)", + location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(location, count, transpose, value); + + if (context->skipValidation() || + ValidateUniformMatrix4x3fv(context, location, count, transpose, value)) + { + context->uniformMatrix4x3fv(location, count, transpose, value); + } + } +} + +GLboolean GL_APIENTRY UnmapBuffer(GLenum target) +{ + EVENT("(GLenum target = 0x%X)", target); + + Context *context = GetValidGlobalContext(); + if (context) + { + BufferBinding targetPacked = FromGLenum(target); + context->gatherParams(targetPacked); + + if (context->skipValidation() || ValidateUnmapBuffer(context, targetPacked)) + { + return context->unmapBuffer(targetPacked); + } + } + + return GetDefaultReturnValue(); +} + +void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor) +{ + EVENT("(GLuint index = %u, GLuint divisor = %u)", index, divisor); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, divisor); + + if (context->skipValidation() || ValidateVertexAttribDivisor(context, index, divisor)) + { + context->vertexAttribDivisor(index, divisor); + } + } +} + +void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w) +{ + EVENT("(GLuint index = %u, GLint x = %d, GLint y = %d, GLint z = %d, GLint w = %d)", index, x, + y, z, w); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, x, y, z, w); + + if (context->skipValidation() || ValidateVertexAttribI4i(context, index, x, y, z, w)) + { + context->vertexAttribI4i(index, x, y, z, w); + } + } +} + +void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v) +{ + EVENT("(GLuint index = %u, const GLint *v = 0x%0.8p)", index, v); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, v); + + if (context->skipValidation() || ValidateVertexAttribI4iv(context, index, v)) + { + context->vertexAttribI4iv(index, v); + } + } +} + +void GL_APIENTRY VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) +{ + EVENT("(GLuint index = %u, GLuint x = %u, GLuint y = %u, GLuint z = %u, GLuint w = %u)", index, + x, y, z, w); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, x, y, z, w); + + if (context->skipValidation() || ValidateVertexAttribI4ui(context, index, x, y, z, w)) + { + context->vertexAttribI4ui(index, x, y, z, w); + } + } +} + +void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v) +{ + EVENT("(GLuint index = %u, const GLuint *v = 0x%0.8p)", index, v); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, v); + + if (context->skipValidation() || ValidateVertexAttribI4uiv(context, index, v)) + { + context->vertexAttribI4uiv(index, v); + } + } +} + +void GL_APIENTRY +VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer) +{ + EVENT( + "(GLuint index = %u, GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const void " + "*pointer = 0x%0.8p)", + index, size, type, stride, pointer); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(index, size, type, stride, pointer); + + if (context->skipValidation() || + ValidateVertexAttribIPointer(context, index, size, type, stride, pointer)) + { + context->vertexAttribIPointer(index, size, type, stride, pointer); + } + } +} + +void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) +{ + EVENT("(GLsync sync = 0x%0.8p, GLbitfield flags = 0x%X, GLuint64 timeout = %llu)", sync, flags, + timeout); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(sync, flags, timeout); + + if (context->skipValidation() || ValidateWaitSync(context, sync, flags, timeout)) + { + context->waitSync(sync, flags, timeout); } } } diff --git a/src/libGLESv2/entry_points_gles_3_0_autogen.h b/src/libGLESv2/entry_points_gles_3_0_autogen.h index e93dde96e..6da179de7 100644 --- a/src/libGLESv2/entry_points_gles_3_0_autogen.h +++ b/src/libGLESv2/entry_points_gles_3_0_autogen.h @@ -16,43 +16,32 @@ namespace gl { -ANGLE_EXPORT void GL_APIENTRY ReadBuffer(GLenum src); -ANGLE_EXPORT void GL_APIENTRY DrawRangeElements(GLenum mode, - GLuint start, - GLuint end, - GLsizei count, - GLenum type, - const void *indices); -ANGLE_EXPORT void GL_APIENTRY TexImage3D(GLenum target, - GLint level, - GLint internalformat, - GLsizei width, - GLsizei height, - GLsizei depth, - GLint border, - GLenum format, - GLenum type, - const void *pixels); -ANGLE_EXPORT void GL_APIENTRY TexSubImage3D(GLenum target, - GLint level, - GLint xoffset, - GLint yoffset, - GLint zoffset, - GLsizei width, - GLsizei height, - GLsizei depth, - GLenum format, - GLenum type, - const void *pixels); -ANGLE_EXPORT void GL_APIENTRY CopyTexSubImage3D(GLenum target, - GLint level, - GLint xoffset, - GLint yoffset, - GLint zoffset, - GLint x, - GLint y, - GLsizei width, - GLsizei height); +ANGLE_EXPORT void GL_APIENTRY BeginQuery(GLenum target, GLuint id); +ANGLE_EXPORT void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode); +ANGLE_EXPORT void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer); +ANGLE_EXPORT void GL_APIENTRY +BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); +ANGLE_EXPORT void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler); +ANGLE_EXPORT void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id); +ANGLE_EXPORT void GL_APIENTRY BindVertexArray(GLuint array); +ANGLE_EXPORT void GL_APIENTRY BlitFramebuffer(GLint srcX0, + GLint srcY0, + GLint srcX1, + GLint srcY1, + GLint dstX0, + GLint dstY0, + GLint dstX1, + GLint dstY1, + GLbitfield mask, + GLenum filter); +ANGLE_EXPORT void GL_APIENTRY ClearBufferfi(GLenum buffer, + GLint drawbuffer, + GLfloat depth, + GLint stencil); +ANGLE_EXPORT void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); +ANGLE_EXPORT void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); +ANGLE_EXPORT GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); ANGLE_EXPORT void GL_APIENTRY CompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, @@ -73,78 +62,90 @@ ANGLE_EXPORT void GL_APIENTRY CompressedTexSubImage3D(GLenum target, GLenum format, GLsizei imageSize, const void *data); -ANGLE_EXPORT void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids); +ANGLE_EXPORT void GL_APIENTRY CopyBufferSubData(GLenum readTarget, + GLenum writeTarget, + GLintptr readOffset, + GLintptr writeOffset, + GLsizeiptr size); +ANGLE_EXPORT void GL_APIENTRY CopyTexSubImage3D(GLenum target, + GLint level, + GLint xoffset, + GLint yoffset, + GLint zoffset, + GLint x, + GLint y, + GLsizei width, + GLsizei height); ANGLE_EXPORT void GL_APIENTRY DeleteQueries(GLsizei n, const GLuint *ids); -ANGLE_EXPORT GLboolean GL_APIENTRY IsQuery(GLuint id); -ANGLE_EXPORT void GL_APIENTRY BeginQuery(GLenum target, GLuint id); -ANGLE_EXPORT void GL_APIENTRY EndQuery(GLenum target); -ANGLE_EXPORT void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); -ANGLE_EXPORT GLboolean GL_APIENTRY UnmapBuffer(GLenum target); -ANGLE_EXPORT void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params); +ANGLE_EXPORT void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers); +ANGLE_EXPORT void GL_APIENTRY DeleteSync(GLsync sync); +ANGLE_EXPORT void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids); +ANGLE_EXPORT void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays); +ANGLE_EXPORT void GL_APIENTRY DrawArraysInstanced(GLenum mode, + GLint first, + GLsizei count, + GLsizei instancecount); ANGLE_EXPORT void GL_APIENTRY DrawBuffers(GLsizei n, const GLenum *bufs); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix2x3fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix3x2fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix2x4fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix4x2fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix3x4fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY UniformMatrix4x3fv(GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY BlitFramebuffer(GLint srcX0, - GLint srcY0, - GLint srcX1, - GLint srcY1, - GLint dstX0, - GLint dstY0, - GLint dstX1, - GLint dstY1, - GLbitfield mask, - GLenum filter); -ANGLE_EXPORT void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, - GLsizei samples, - GLenum internalformat, - GLsizei width, - GLsizei height); -ANGLE_EXPORT void GL_APIENTRY -FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); -ANGLE_EXPORT void *GL_APIENTRY MapBufferRange(GLenum target, - GLintptr offset, - GLsizeiptr length, - GLbitfield access); +ANGLE_EXPORT void GL_APIENTRY DrawElementsInstanced(GLenum mode, + GLsizei count, + GLenum type, + const void *indices, + GLsizei instancecount); +ANGLE_EXPORT void GL_APIENTRY DrawRangeElements(GLenum mode, + GLuint start, + GLuint end, + GLsizei count, + GLenum type, + const void *indices); +ANGLE_EXPORT void GL_APIENTRY EndQuery(GLenum target); +ANGLE_EXPORT void GL_APIENTRY EndTransformFeedback(); +ANGLE_EXPORT GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags); ANGLE_EXPORT void GL_APIENTRY FlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length); -ANGLE_EXPORT void GL_APIENTRY BindVertexArray(GLuint array); -ANGLE_EXPORT void GL_APIENTRY DeleteVertexArrays(GLsizei n, const GLuint *arrays); -ANGLE_EXPORT void GL_APIENTRY GenVertexArrays(GLsizei n, GLuint *arrays); -ANGLE_EXPORT GLboolean GL_APIENTRY IsVertexArray(GLuint array); -ANGLE_EXPORT void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data); -ANGLE_EXPORT void GL_APIENTRY BeginTransformFeedback(GLenum primitiveMode); -ANGLE_EXPORT void GL_APIENTRY EndTransformFeedback(); ANGLE_EXPORT void GL_APIENTRY -BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); -ANGLE_EXPORT void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer); -ANGLE_EXPORT void GL_APIENTRY TransformFeedbackVaryings(GLuint program, - GLsizei count, - const GLchar *const *varyings, - GLenum bufferMode); +FramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer); +ANGLE_EXPORT void GL_APIENTRY GenQueries(GLsizei n, GLuint *ids); +ANGLE_EXPORT void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers); +ANGLE_EXPORT void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids); +ANGLE_EXPORT void GL_APIENTRY GenVertexArrays(GLsizei n, GLuint *arrays); +ANGLE_EXPORT void GL_APIENTRY GetActiveUniformBlockName(GLuint program, + GLuint uniformBlockIndex, + GLsizei bufSize, + GLsizei *length, + GLchar *uniformBlockName); +ANGLE_EXPORT void GL_APIENTRY GetActiveUniformBlockiv(GLuint program, + GLuint uniformBlockIndex, + GLenum pname, + GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetActiveUniformsiv(GLuint program, + GLsizei uniformCount, + const GLuint *uniformIndices, + GLenum pname, + GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); +ANGLE_EXPORT void GL_APIENTRY GetBufferPointerv(GLenum target, GLenum pname, void **params); +ANGLE_EXPORT GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name); +ANGLE_EXPORT void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data); +ANGLE_EXPORT void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data); +ANGLE_EXPORT void GL_APIENTRY GetIntegeri_v(GLenum target, GLuint index, GLint *data); +ANGLE_EXPORT void GL_APIENTRY GetInternalformativ(GLenum target, + GLenum internalformat, + GLenum pname, + GLsizei bufSize, + GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetProgramBinary(GLuint program, + GLsizei bufSize, + GLsizei *length, + GLenum *binaryFormat, + void *binary); +ANGLE_EXPORT void GL_APIENTRY GetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params); +ANGLE_EXPORT void GL_APIENTRY GetQueryiv(GLenum target, GLenum pname, GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params); +ANGLE_EXPORT void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params); +ANGLE_EXPORT const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index); +ANGLE_EXPORT void GL_APIENTRY +GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); ANGLE_EXPORT void GL_APIENTRY GetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, @@ -152,110 +153,15 @@ ANGLE_EXPORT void GL_APIENTRY GetTransformFeedbackVarying(GLuint program, GLsizei *size, GLenum *type, GLchar *name); -ANGLE_EXPORT void GL_APIENTRY -VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); -ANGLE_EXPORT void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); -ANGLE_EXPORT void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); -ANGLE_EXPORT void GL_APIENTRY -VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); -ANGLE_EXPORT void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v); -ANGLE_EXPORT void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v); -ANGLE_EXPORT void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params); -ANGLE_EXPORT GLint GL_APIENTRY GetFragDataLocation(GLuint program, const GLchar *name); -ANGLE_EXPORT void GL_APIENTRY Uniform1ui(GLint location, GLuint v0); -ANGLE_EXPORT void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1); -ANGLE_EXPORT void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); -ANGLE_EXPORT void GL_APIENTRY -Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); -ANGLE_EXPORT void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); -ANGLE_EXPORT void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ClearBufferfi(GLenum buffer, - GLint drawbuffer, - GLfloat depth, - GLint stencil); -ANGLE_EXPORT const GLubyte *GL_APIENTRY GetStringi(GLenum name, GLuint index); -ANGLE_EXPORT void GL_APIENTRY CopyBufferSubData(GLenum readTarget, - GLenum writeTarget, - GLintptr readOffset, - GLintptr writeOffset, - GLsizeiptr size); +ANGLE_EXPORT GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, + const GLchar *uniformBlockName); ANGLE_EXPORT void GL_APIENTRY GetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar *const *uniformNames, GLuint *uniformIndices); -ANGLE_EXPORT void GL_APIENTRY GetActiveUniformsiv(GLuint program, - GLsizei uniformCount, - const GLuint *uniformIndices, - GLenum pname, - GLint *params); -ANGLE_EXPORT GLuint GL_APIENTRY GetUniformBlockIndex(GLuint program, - const GLchar *uniformBlockName); -ANGLE_EXPORT void GL_APIENTRY GetActiveUniformBlockiv(GLuint program, - GLuint uniformBlockIndex, - GLenum pname, - GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetActiveUniformBlockName(GLuint program, - GLuint uniformBlockIndex, - GLsizei bufSize, - GLsizei *length, - GLchar *uniformBlockName); -ANGLE_EXPORT void GL_APIENTRY UniformBlockBinding(GLuint program, - GLuint uniformBlockIndex, - GLuint uniformBlockBinding); -ANGLE_EXPORT void GL_APIENTRY DrawArraysInstanced(GLenum mode, - GLint first, - GLsizei count, - GLsizei instancecount); -ANGLE_EXPORT void GL_APIENTRY DrawElementsInstanced(GLenum mode, - GLsizei count, - GLenum type, - const void *indices, - GLsizei instancecount); -ANGLE_EXPORT GLsync GL_APIENTRY FenceSync(GLenum condition, GLbitfield flags); -ANGLE_EXPORT GLboolean GL_APIENTRY IsSync(GLsync sync); -ANGLE_EXPORT void GL_APIENTRY DeleteSync(GLsync sync); -ANGLE_EXPORT GLenum GL_APIENTRY ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); -ANGLE_EXPORT void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); -ANGLE_EXPORT void GL_APIENTRY GetInteger64v(GLenum pname, GLint64 *data); -ANGLE_EXPORT void GL_APIENTRY -GetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values); -ANGLE_EXPORT void GL_APIENTRY GetInteger64i_v(GLenum target, GLuint index, GLint64 *data); -ANGLE_EXPORT void GL_APIENTRY GetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params); -ANGLE_EXPORT void GL_APIENTRY GenSamplers(GLsizei count, GLuint *samplers); -ANGLE_EXPORT void GL_APIENTRY DeleteSamplers(GLsizei count, const GLuint *samplers); -ANGLE_EXPORT GLboolean GL_APIENTRY IsSampler(GLuint sampler); -ANGLE_EXPORT void GL_APIENTRY BindSampler(GLuint unit, GLuint sampler); -ANGLE_EXPORT void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param); -ANGLE_EXPORT void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param); -ANGLE_EXPORT void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); -ANGLE_EXPORT void GL_APIENTRY SamplerParameterfv(GLuint sampler, - GLenum pname, - const GLfloat *param); -ANGLE_EXPORT void GL_APIENTRY GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params); -ANGLE_EXPORT void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor); -ANGLE_EXPORT void GL_APIENTRY BindTransformFeedback(GLenum target, GLuint id); -ANGLE_EXPORT void GL_APIENTRY DeleteTransformFeedbacks(GLsizei n, const GLuint *ids); -ANGLE_EXPORT void GL_APIENTRY GenTransformFeedbacks(GLsizei n, GLuint *ids); -ANGLE_EXPORT GLboolean GL_APIENTRY IsTransformFeedback(GLuint id); -ANGLE_EXPORT void GL_APIENTRY PauseTransformFeedback(); -ANGLE_EXPORT void GL_APIENTRY ResumeTransformFeedback(); -ANGLE_EXPORT void GL_APIENTRY GetProgramBinary(GLuint program, - GLsizei bufSize, - GLsizei *length, - GLenum *binaryFormat, - void *binary); -ANGLE_EXPORT void GL_APIENTRY ProgramBinary(GLuint program, - GLenum binaryFormat, - const void *binary, - GLsizei length); -ANGLE_EXPORT void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value); +ANGLE_EXPORT void GL_APIENTRY GetUniformuiv(GLuint program, GLint location, GLuint *params); +ANGLE_EXPORT void GL_APIENTRY GetVertexAttribIiv(GLuint index, GLenum pname, GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params); ANGLE_EXPORT void GL_APIENTRY InvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments); @@ -266,6 +172,44 @@ ANGLE_EXPORT void GL_APIENTRY InvalidateSubFramebuffer(GLenum target, GLint y, GLsizei width, GLsizei height); +ANGLE_EXPORT GLboolean GL_APIENTRY IsQuery(GLuint id); +ANGLE_EXPORT GLboolean GL_APIENTRY IsSampler(GLuint sampler); +ANGLE_EXPORT GLboolean GL_APIENTRY IsSync(GLsync sync); +ANGLE_EXPORT GLboolean GL_APIENTRY IsTransformFeedback(GLuint id); +ANGLE_EXPORT GLboolean GL_APIENTRY IsVertexArray(GLuint array); +ANGLE_EXPORT void *GL_APIENTRY MapBufferRange(GLenum target, + GLintptr offset, + GLsizeiptr length, + GLbitfield access); +ANGLE_EXPORT void GL_APIENTRY PauseTransformFeedback(); +ANGLE_EXPORT void GL_APIENTRY ProgramBinary(GLuint program, + GLenum binaryFormat, + const void *binary, + GLsizei length); +ANGLE_EXPORT void GL_APIENTRY ProgramParameteri(GLuint program, GLenum pname, GLint value); +ANGLE_EXPORT void GL_APIENTRY ReadBuffer(GLenum src); +ANGLE_EXPORT void GL_APIENTRY RenderbufferStorageMultisample(GLenum target, + GLsizei samples, + GLenum internalformat, + GLsizei width, + GLsizei height); +ANGLE_EXPORT void GL_APIENTRY ResumeTransformFeedback(); +ANGLE_EXPORT void GL_APIENTRY SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param); +ANGLE_EXPORT void GL_APIENTRY SamplerParameterfv(GLuint sampler, + GLenum pname, + const GLfloat *param); +ANGLE_EXPORT void GL_APIENTRY SamplerParameteri(GLuint sampler, GLenum pname, GLint param); +ANGLE_EXPORT void GL_APIENTRY SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param); +ANGLE_EXPORT void GL_APIENTRY TexImage3D(GLenum target, + GLint level, + GLint internalformat, + GLsizei width, + GLsizei height, + GLsizei depth, + GLint border, + GLenum format, + GLenum type, + const void *pixels); ANGLE_EXPORT void GL_APIENTRY TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height); ANGLE_EXPORT void GL_APIENTRY TexStorage3D(GLenum target, @@ -274,11 +218,67 @@ ANGLE_EXPORT void GL_APIENTRY TexStorage3D(GLenum target, GLsizei width, GLsizei height, GLsizei depth); -ANGLE_EXPORT void GL_APIENTRY GetInternalformativ(GLenum target, - GLenum internalformat, - GLenum pname, - GLsizei bufSize, - GLint *params); +ANGLE_EXPORT void GL_APIENTRY TexSubImage3D(GLenum target, + GLint level, + GLint xoffset, + GLint yoffset, + GLint zoffset, + GLsizei width, + GLsizei height, + GLsizei depth, + GLenum format, + GLenum type, + const void *pixels); +ANGLE_EXPORT void GL_APIENTRY TransformFeedbackVaryings(GLuint program, + GLsizei count, + const GLchar *const *varyings, + GLenum bufferMode); +ANGLE_EXPORT void GL_APIENTRY Uniform1ui(GLint location, GLuint v0); +ANGLE_EXPORT void GL_APIENTRY Uniform1uiv(GLint location, GLsizei count, const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY Uniform2ui(GLint location, GLuint v0, GLuint v1); +ANGLE_EXPORT void GL_APIENTRY Uniform2uiv(GLint location, GLsizei count, const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); +ANGLE_EXPORT void GL_APIENTRY Uniform3uiv(GLint location, GLsizei count, const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY +Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +ANGLE_EXPORT void GL_APIENTRY Uniform4uiv(GLint location, GLsizei count, const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY UniformBlockBinding(GLuint program, + GLuint uniformBlockIndex, + GLuint uniformBlockBinding); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix2x3fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix2x4fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix3x2fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix3x4fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix4x2fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY UniformMatrix4x3fv(GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT GLboolean GL_APIENTRY UnmapBuffer(GLenum target); +ANGLE_EXPORT void GL_APIENTRY VertexAttribDivisor(GLuint index, GLuint divisor); +ANGLE_EXPORT void GL_APIENTRY VertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w); +ANGLE_EXPORT void GL_APIENTRY VertexAttribI4iv(GLuint index, const GLint *v); +ANGLE_EXPORT void GL_APIENTRY +VertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w); +ANGLE_EXPORT void GL_APIENTRY VertexAttribI4uiv(GLuint index, const GLuint *v); +ANGLE_EXPORT void GL_APIENTRY +VertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer); +ANGLE_EXPORT void GL_APIENTRY WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout); } // namespace gl #endif // LIBGLESV2_ENTRYPOINTSGLES30_AUTOGEN_H_ diff --git a/src/libGLESv2/entry_points_gles_3_1_autogen.cpp b/src/libGLESv2/entry_points_gles_3_1_autogen.cpp index 5d836872d..f71b7e512 100644 --- a/src/libGLESv2/entry_points_gles_3_1_autogen.cpp +++ b/src/libGLESv2/entry_points_gles_3_1_autogen.cpp @@ -14,6 +14,123 @@ namespace gl { +void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program) +{ + EVENT("(GLuint pipeline = %u, GLuint program = %u)", pipeline, program); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pipeline, program); + + if (context->skipValidation() || ValidateActiveShaderProgram(context, pipeline, program)) + { + context->activeShaderProgram(pipeline, program); + } + } +} + +void GL_APIENTRY BindImageTexture(GLuint unit, + GLuint texture, + GLint level, + GLboolean layered, + GLint layer, + GLenum access, + GLenum format) +{ + EVENT( + "(GLuint unit = %u, GLuint texture = %u, GLint level = %d, GLboolean layered = %u, GLint " + "layer = %d, GLenum access = 0x%X, GLenum format = 0x%X)", + unit, texture, level, layered, layer, access, format); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(unit, texture, level, layered, layer, + access, format); + + if (context->skipValidation() || + ValidateBindImageTexture(context, unit, texture, level, layered, layer, access, format)) + { + context->bindImageTexture(unit, texture, level, layered, layer, access, format); + } + } +} + +void GL_APIENTRY BindProgramPipeline(GLuint pipeline) +{ + EVENT("(GLuint pipeline = %u)", pipeline); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pipeline); + + if (context->skipValidation() || ValidateBindProgramPipeline(context, pipeline)) + { + context->bindProgramPipeline(pipeline); + } + } +} + +void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, + GLuint buffer, + GLintptr offset, + GLsizei stride) +{ + EVENT( + "(GLuint bindingindex = %u, GLuint buffer = %u, GLintptr offset = %d, GLsizei stride = %d)", + bindingindex, buffer, offset, stride); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(bindingindex, buffer, offset, stride); + + if (context->skipValidation() || + ValidateBindVertexBuffer(context, bindingindex, buffer, offset, stride)) + { + context->bindVertexBuffer(bindingindex, buffer, offset, stride); + } + } +} + +GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const *strings) +{ + EVENT("(GLenum type = 0x%X, GLsizei count = %d, const GLchar *const*strings = 0x%0.8p)", type, + count, strings); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(type, count, strings); + + if (context->skipValidation() || + ValidateCreateShaderProgramv(context, type, count, strings)) + { + return context->createShaderProgramv(type, count, strings); + } + } + + return GetDefaultReturnValue(); +} + +void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines) +{ + EVENT("(GLsizei n = %d, const GLuint *pipelines = 0x%0.8p)", n, pipelines); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(n, pipelines); + + if (context->skipValidation() || ValidateDeleteProgramPipelines(context, n, pipelines)) + { + context->deleteProgramPipelines(n, pipelines); + } + } +} + void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) { EVENT("(GLuint num_groups_x = %u, GLuint num_groups_y = %u, GLuint num_groups_z = %u)", @@ -100,6 +217,39 @@ void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param) } } +void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines) +{ + EVENT("(GLsizei n = %d, GLuint *pipelines = 0x%0.8p)", n, pipelines); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(n, pipelines); + + if (context->skipValidation() || ValidateGenProgramPipelines(context, n, pipelines)) + { + context->genProgramPipelines(n, pipelines); + } + } +} + +void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data) +{ + EVENT("(GLenum target = 0x%X, GLuint index = %u, GLboolean *data = 0x%0.8p)", target, index, + data); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(target, index, data); + + if (context->skipValidation() || ValidateGetBooleani_v(context, target, index, data)) + { + context->getBooleani_v(target, index, data); + } + } +} + void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params) { EVENT("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", target, pname, @@ -118,6 +268,22 @@ void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *p } } +void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val) +{ + EVENT("(GLenum pname = 0x%X, GLuint index = %u, GLfloat *val = 0x%0.8p)", pname, index, val); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pname, index, val); + + if (context->skipValidation() || ValidateGetMultisamplefv(context, pname, index, val)) + { + context->getMultisamplefv(pname, index, val); + } + } +} + void GL_APIENTRY GetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, @@ -142,6 +308,48 @@ void GL_APIENTRY GetProgramInterfaceiv(GLuint program, } } +void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, + GLsizei bufSize, + GLsizei *length, + GLchar *infoLog) +{ + EVENT( + "(GLuint pipeline = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = " + "0x%0.8p)", + pipeline, bufSize, length, infoLog); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pipeline, bufSize, length, + infoLog); + + if (context->skipValidation() || + ValidateGetProgramPipelineInfoLog(context, pipeline, bufSize, length, infoLog)) + { + context->getProgramPipelineInfoLog(pipeline, bufSize, length, infoLog); + } + } +} + +void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params) +{ + EVENT("(GLuint pipeline = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", pipeline, pname, + params); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(pipeline, pname, params); + + if (context->skipValidation() || + ValidateGetProgramPipelineiv(context, pipeline, pname, params)) + { + context->getProgramPipelineiv(pipeline, pname, params); + } + } +} + GLuint GL_APIENTRY GetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name) @@ -164,6 +372,29 @@ GLuint GL_APIENTRY GetProgramResourceIndex(GLuint program, return GetDefaultReturnValue(); } +GLint GL_APIENTRY GetProgramResourceLocation(GLuint program, + GLenum programInterface, + const GLchar *name) +{ + EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)", + program, programInterface, name); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, programInterface, + name); + + if (context->skipValidation() || + ValidateGetProgramResourceLocation(context, program, programInterface, name)) + { + return context->getProgramResourceLocation(program, programInterface, name); + } + } + + return GetDefaultReturnValue(); +} + void GL_APIENTRY GetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, @@ -223,127 +454,39 @@ void GL_APIENTRY GetProgramResourceiv(GLuint program, } } -GLint GL_APIENTRY GetProgramResourceLocation(GLuint program, - GLenum programInterface, - const GLchar *name) +void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) { - EVENT("(GLuint program = %u, GLenum programInterface = 0x%X, const GLchar *name = 0x%0.8p)", - program, programInterface, name); + EVENT( + "(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", + target, level, pname, params); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(program, programInterface, - name); + context->gatherParams(target, level, pname, params); if (context->skipValidation() || - ValidateGetProgramResourceLocation(context, program, programInterface, name)) + ValidateGetTexLevelParameterfv(context, target, level, pname, params)) { - return context->getProgramResourceLocation(program, programInterface, name); + context->getTexLevelParameterfv(target, level, pname, params); } } - - return GetDefaultReturnValue(); } -void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program) +void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) { - EVENT("(GLuint pipeline = %u, GLbitfield stages = 0x%X, GLuint program = %u)", pipeline, stages, - program); + EVENT("(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", + target, level, pname, params); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(pipeline, stages, program); + context->gatherParams(target, level, pname, params); if (context->skipValidation() || - ValidateUseProgramStages(context, pipeline, stages, program)) + ValidateGetTexLevelParameteriv(context, target, level, pname, params)) { - context->useProgramStages(pipeline, stages, program); - } - } -} - -void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program) -{ - EVENT("(GLuint pipeline = %u, GLuint program = %u)", pipeline, program); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pipeline, program); - - if (context->skipValidation() || ValidateActiveShaderProgram(context, pipeline, program)) - { - context->activeShaderProgram(pipeline, program); - } - } -} - -GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, GLsizei count, const GLchar *const *strings) -{ - EVENT("(GLenum type = 0x%X, GLsizei count = %d, const GLchar *const*strings = 0x%0.8p)", type, - count, strings); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(type, count, strings); - - if (context->skipValidation() || - ValidateCreateShaderProgramv(context, type, count, strings)) - { - return context->createShaderProgramv(type, count, strings); - } - } - - return GetDefaultReturnValue(); -} - -void GL_APIENTRY BindProgramPipeline(GLuint pipeline) -{ - EVENT("(GLuint pipeline = %u)", pipeline); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pipeline); - - if (context->skipValidation() || ValidateBindProgramPipeline(context, pipeline)) - { - context->bindProgramPipeline(pipeline); - } - } -} - -void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines) -{ - EVENT("(GLsizei n = %d, const GLuint *pipelines = 0x%0.8p)", n, pipelines); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(n, pipelines); - - if (context->skipValidation() || ValidateDeleteProgramPipelines(context, n, pipelines)) - { - context->deleteProgramPipelines(n, pipelines); - } - } -} - -void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines) -{ - EVENT("(GLsizei n = %d, GLuint *pipelines = 0x%0.8p)", n, pipelines); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(n, pipelines); - - if (context->skipValidation() || ValidateGenProgramPipelines(context, n, pipelines)) - { - context->genProgramPipelines(n, pipelines); + context->getTexLevelParameteriv(target, level, pname, params); } } } @@ -366,833 +509,6 @@ GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline) return GetDefaultReturnValue(); } -void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params) -{ - EVENT("(GLuint pipeline = %u, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", pipeline, pname, - params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pipeline, pname, params); - - if (context->skipValidation() || - ValidateGetProgramPipelineiv(context, pipeline, pname, params)) - { - context->getProgramPipelineiv(pipeline, pname, params); - } - } -} - -void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d)", program, location, v0); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0); - - if (context->skipValidation() || ValidateProgramUniform1i(context, program, location, v0)) - { - context->programUniform1i(program, location, v0); - } - } -} - -void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d)", program, - location, v0, v1); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1); - - if (context->skipValidation() || - ValidateProgramUniform2i(context, program, location, v0, v1)) - { - context->programUniform2i(program, location, v0, v1); - } - } -} - -void GL_APIENTRY ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)", - program, location, v0, v1, v2); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2); - - if (context->skipValidation() || - ValidateProgramUniform3i(context, program, location, v0, v1, v2)) - { - context->programUniform3i(program, location, v0, v1, v2); - } - } -} - -void GL_APIENTRY -ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, " - "GLint v3 = %d)", - program, location, v0, v1, v2, v3); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2, v3); - - if (context->skipValidation() || - ValidateProgramUniform4i(context, program, location, v0, v1, v2, v3)) - { - context->programUniform4i(program, location, v0, v1, v2, v3); - } - } -} - -void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u)", program, location, v0); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0); - - if (context->skipValidation() || ValidateProgramUniform1ui(context, program, location, v0)) - { - context->programUniform1ui(program, location, v0); - } - } -} - -void GL_APIENTRY ProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", program, - location, v0, v1); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1); - - if (context->skipValidation() || - ValidateProgramUniform2ui(context, program, location, v0, v1)) - { - context->programUniform2ui(program, location, v0, v1); - } - } -} - -void GL_APIENTRY ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " - "%u)", - program, location, v0, v1, v2); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2); - - if (context->skipValidation() || - ValidateProgramUniform3ui(context, program, location, v0, v1, v2)) - { - context->programUniform3ui(program, location, v0, v1, v2); - } - } -} - -void GL_APIENTRY -ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " - "%u, GLuint v3 = %u)", - program, location, v0, v1, v2, v3); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2, v3); - - if (context->skipValidation() || - ValidateProgramUniform4ui(context, program, location, v0, v1, v2, v3)) - { - context->programUniform4ui(program, location, v0, v1, v2, v3); - } - } -} - -void GL_APIENTRY ProgramUniform1f(GLuint program, GLint location, GLfloat v0) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f)", program, location, v0); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0); - - if (context->skipValidation() || ValidateProgramUniform1f(context, program, location, v0)) - { - context->programUniform1f(program, location, v0); - } - } -} - -void GL_APIENTRY ProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1) -{ - EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", program, - location, v0, v1); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1); - - if (context->skipValidation() || - ValidateProgramUniform2f(context, program, location, v0, v1)) - { - context->programUniform2f(program, location, v0, v1); - } - } -} - -void GL_APIENTRY -ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " - "%f)", - program, location, v0, v1, v2); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2); - - if (context->skipValidation() || - ValidateProgramUniform3f(context, program, location, v0, v1, v2)) - { - context->programUniform3f(program, location, v0, v1, v2); - } - } -} - -void GL_APIENTRY -ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " - "%f, GLfloat v3 = %f)", - program, location, v0, v1, v2, v3); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, v0, v1, v2, v3); - - if (context->skipValidation() || - ValidateProgramUniform4f(context, program, location, v0, v1, v2, v3)) - { - context->programUniform4f(program, location, v0, v1, v2, v3); - } - } -} - -void GL_APIENTRY ProgramUniform1iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform1iv(context, program, location, count, value)) - { - context->programUniform1iv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform2iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform2iv(context, program, location, count, value)) - { - context->programUniform2iv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform3iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform3iv(context, program, location, count, value)) - { - context->programUniform3iv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform4iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform4iv(context, program, location, count, value)) - { - context->programUniform4iv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform1uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform1uiv(context, program, location, count, value)) - { - context->programUniform1uiv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform2uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform2uiv(context, program, location, count, value)) - { - context->programUniform2uiv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform3uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform3uiv(context, program, location, count, value)) - { - context->programUniform3uiv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform4uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform4uiv(context, program, location, count, value)) - { - context->programUniform4uiv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform1fv(GLuint program, - GLint location, - GLsizei count, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform1fv(context, program, location, count, value)) - { - context->programUniform1fv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform2fv(GLuint program, - GLint location, - GLsizei count, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform2fv(context, program, location, count, value)) - { - context->programUniform2fv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform3fv(GLuint program, - GLint location, - GLsizei count, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform3fv(context, program, location, count, value)) - { - context->programUniform3fv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniform4fv(GLuint program, - GLint location, - GLsizei count, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " - "0x%0.8p)", - program, location, count, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, value); - - if (context->skipValidation() || - ValidateProgramUniform4fv(context, program, location, count, value)) - { - context->programUniform4fv(program, location, count, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix2fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix2fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix2fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix3fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix3fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix4fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix4fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix2x3fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix2x3fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix2x3fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix3x2fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix3x2fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix2x4fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix2x4fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix2x4fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix4x2fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix4x2fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix3x4fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix3x4fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix3x4fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value) -{ - EVENT( - "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " - "const GLfloat *value = 0x%0.8p)", - program, location, count, transpose, value); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(program, location, count, - transpose, value); - - if (context->skipValidation() || - ValidateProgramUniformMatrix4x3fv(context, program, location, count, transpose, value)) - { - context->programUniformMatrix4x3fv(program, location, count, transpose, value); - } - } -} - -void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline) -{ - EVENT("(GLuint pipeline = %u)", pipeline); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pipeline); - - if (context->skipValidation() || ValidateValidateProgramPipeline(context, pipeline)) - { - context->validateProgramPipeline(pipeline); - } - } -} - -void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, - GLsizei bufSize, - GLsizei *length, - GLchar *infoLog) -{ - EVENT( - "(GLuint pipeline = %u, GLsizei bufSize = %d, GLsizei *length = 0x%0.8p, GLchar *infoLog = " - "0x%0.8p)", - pipeline, bufSize, length, infoLog); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(pipeline, bufSize, length, - infoLog); - - if (context->skipValidation() || - ValidateGetProgramPipelineInfoLog(context, pipeline, bufSize, length, infoLog)) - { - context->getProgramPipelineInfoLog(pipeline, bufSize, length, infoLog); - } - } -} - -void GL_APIENTRY BindImageTexture(GLuint unit, - GLuint texture, - GLint level, - GLboolean layered, - GLint layer, - GLenum access, - GLenum format) -{ - EVENT( - "(GLuint unit = %u, GLuint texture = %u, GLint level = %d, GLboolean layered = %u, GLint " - "layer = %d, GLenum access = 0x%X, GLenum format = 0x%X)", - unit, texture, level, layered, layer, access, format); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(unit, texture, level, layered, layer, - access, format); - - if (context->skipValidation() || - ValidateBindImageTexture(context, unit, texture, level, layered, layer, access, format)) - { - context->bindImageTexture(unit, texture, level, layered, layer, access, format); - } - } -} - -void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data) -{ - EVENT("(GLenum target = 0x%X, GLuint index = %u, GLboolean *data = 0x%0.8p)", target, index, - data); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target, index, data); - - if (context->skipValidation() || ValidateGetBooleani_v(context, target, index, data)) - { - context->getBooleani_v(target, index, data); - } - } -} - void GL_APIENTRY MemoryBarrier(GLbitfield barriers) { EVENT("(GLbitfield barriers = 0x%X)", barriers); @@ -1225,6 +541,747 @@ void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers) } } +void GL_APIENTRY ProgramUniform1f(GLuint program, GLint location, GLfloat v0) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f)", program, location, v0); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0); + + if (context->skipValidation() || ValidateProgramUniform1f(context, program, location, v0)) + { + context->programUniform1f(program, location, v0); + } + } +} + +void GL_APIENTRY ProgramUniform1fv(GLuint program, + GLint location, + GLsizei count, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform1fv(context, program, location, count, value)) + { + context->programUniform1fv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d)", program, location, v0); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0); + + if (context->skipValidation() || ValidateProgramUniform1i(context, program, location, v0)) + { + context->programUniform1i(program, location, v0); + } + } +} + +void GL_APIENTRY ProgramUniform1iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform1iv(context, program, location, count, value)) + { + context->programUniform1iv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u)", program, location, v0); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0); + + if (context->skipValidation() || ValidateProgramUniform1ui(context, program, location, v0)) + { + context->programUniform1ui(program, location, v0); + } + } +} + +void GL_APIENTRY ProgramUniform1uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform1uiv(context, program, location, count, value)) + { + context->programUniform1uiv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f)", program, + location, v0, v1); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1); + + if (context->skipValidation() || + ValidateProgramUniform2f(context, program, location, v0, v1)) + { + context->programUniform2f(program, location, v0, v1); + } + } +} + +void GL_APIENTRY ProgramUniform2fv(GLuint program, + GLint location, + GLsizei count, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform2fv(context, program, location, count, value)) + { + context->programUniform2fv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d)", program, + location, v0, v1); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1); + + if (context->skipValidation() || + ValidateProgramUniform2i(context, program, location, v0, v1)) + { + context->programUniform2i(program, location, v0, v1); + } + } +} + +void GL_APIENTRY ProgramUniform2iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform2iv(context, program, location, count, value)) + { + context->programUniform2iv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u)", program, + location, v0, v1); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1); + + if (context->skipValidation() || + ValidateProgramUniform2ui(context, program, location, v0, v1)) + { + context->programUniform2ui(program, location, v0, v1); + } + } +} + +void GL_APIENTRY ProgramUniform2uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform2uiv(context, program, location, count, value)) + { + context->programUniform2uiv(program, location, count, value); + } + } +} + +void GL_APIENTRY +ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " + "%f)", + program, location, v0, v1, v2); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2); + + if (context->skipValidation() || + ValidateProgramUniform3f(context, program, location, v0, v1, v2)) + { + context->programUniform3f(program, location, v0, v1, v2); + } + } +} + +void GL_APIENTRY ProgramUniform3fv(GLuint program, + GLint location, + GLsizei count, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform3fv(context, program, location, count, value)) + { + context->programUniform3fv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2) +{ + EVENT("(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d)", + program, location, v0, v1, v2); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2); + + if (context->skipValidation() || + ValidateProgramUniform3i(context, program, location, v0, v1, v2)) + { + context->programUniform3i(program, location, v0, v1, v2); + } + } +} + +void GL_APIENTRY ProgramUniform3iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform3iv(context, program, location, count, value)) + { + context->programUniform3iv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " + "%u)", + program, location, v0, v1, v2); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2); + + if (context->skipValidation() || + ValidateProgramUniform3ui(context, program, location, v0, v1, v2)) + { + context->programUniform3ui(program, location, v0, v1, v2); + } + } +} + +void GL_APIENTRY ProgramUniform3uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform3uiv(context, program, location, count, value)) + { + context->programUniform3uiv(program, location, count, value); + } + } +} + +void GL_APIENTRY +ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLfloat v0 = %f, GLfloat v1 = %f, GLfloat v2 = " + "%f, GLfloat v3 = %f)", + program, location, v0, v1, v2, v3); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2, v3); + + if (context->skipValidation() || + ValidateProgramUniform4f(context, program, location, v0, v1, v2, v3)) + { + context->programUniform4f(program, location, v0, v1, v2, v3); + } + } +} + +void GL_APIENTRY ProgramUniform4fv(GLuint program, + GLint location, + GLsizei count, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLfloat *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform4fv(context, program, location, count, value)) + { + context->programUniform4fv(program, location, count, value); + } + } +} + +void GL_APIENTRY +ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLint v0 = %d, GLint v1 = %d, GLint v2 = %d, " + "GLint v3 = %d)", + program, location, v0, v1, v2, v3); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2, v3); + + if (context->skipValidation() || + ValidateProgramUniform4i(context, program, location, v0, v1, v2, v3)) + { + context->programUniform4i(program, location, v0, v1, v2, v3); + } + } +} + +void GL_APIENTRY ProgramUniform4iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform4iv(context, program, location, count, value)) + { + context->programUniform4iv(program, location, count, value); + } + } +} + +void GL_APIENTRY +ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLuint v0 = %u, GLuint v1 = %u, GLuint v2 = " + "%u, GLuint v3 = %u)", + program, location, v0, v1, v2, v3); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, v0, v1, v2, v3); + + if (context->skipValidation() || + ValidateProgramUniform4ui(context, program, location, v0, v1, v2, v3)) + { + context->programUniform4ui(program, location, v0, v1, v2, v3); + } + } +} + +void GL_APIENTRY ProgramUniform4uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, const GLuint *value = " + "0x%0.8p)", + program, location, count, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, value); + + if (context->skipValidation() || + ValidateProgramUniform4uiv(context, program, location, count, value)) + { + context->programUniform4uiv(program, location, count, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix2fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix2fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix2fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix2x3fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix2x3fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix2x3fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix2x4fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix2x4fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix2x4fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix3fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix3fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix3x2fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix3x2fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix3x4fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix3x4fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix3x4fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix4fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix4fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix4x2fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix4x2fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value) +{ + EVENT( + "(GLuint program = %u, GLint location = %d, GLsizei count = %d, GLboolean transpose = %u, " + "const GLfloat *value = 0x%0.8p)", + program, location, count, transpose, value); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(program, location, count, + transpose, value); + + if (context->skipValidation() || + ValidateProgramUniformMatrix4x3fv(context, program, location, count, transpose, value)) + { + context->programUniformMatrix4x3fv(program, location, count, transpose, value); + } + } +} + +void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask) +{ + EVENT("(GLuint maskNumber = %u, GLbitfield mask = 0x%X)", maskNumber, mask); + + Context *context = GetValidGlobalContext(); + if (context) + { + context->gatherParams(maskNumber, mask); + + if (context->skipValidation() || ValidateSampleMaski(context, maskNumber, mask)) + { + context->sampleMaski(maskNumber, mask); + } + } +} + void GL_APIENTRY TexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, @@ -1253,93 +1310,53 @@ void GL_APIENTRY TexStorage2DMultisample(GLenum target, } } -void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val) +void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program) { - EVENT("(GLenum pname = 0x%X, GLuint index = %u, GLfloat *val = 0x%0.8p)", pname, index, val); + EVENT("(GLuint pipeline = %u, GLbitfield stages = 0x%X, GLuint program = %u)", pipeline, stages, + program); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(pname, index, val); - - if (context->skipValidation() || ValidateGetMultisamplefv(context, pname, index, val)) - { - context->getMultisamplefv(pname, index, val); - } - } -} - -void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask) -{ - EVENT("(GLuint maskNumber = %u, GLbitfield mask = 0x%X)", maskNumber, mask); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(maskNumber, mask); - - if (context->skipValidation() || ValidateSampleMaski(context, maskNumber, mask)) - { - context->sampleMaski(maskNumber, mask); - } - } -} - -void GL_APIENTRY GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) -{ - EVENT("(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLint *params = 0x%0.8p)", - target, level, pname, params); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(target, level, pname, params); + context->gatherParams(pipeline, stages, program); if (context->skipValidation() || - ValidateGetTexLevelParameteriv(context, target, level, pname, params)) + ValidateUseProgramStages(context, pipeline, stages, program)) { - context->getTexLevelParameteriv(target, level, pname, params); + context->useProgramStages(pipeline, stages, program); } } } -void GL_APIENTRY GetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params) +void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline) { - EVENT( - "(GLenum target = 0x%X, GLint level = %d, GLenum pname = 0x%X, GLfloat *params = 0x%0.8p)", - target, level, pname, params); + EVENT("(GLuint pipeline = %u)", pipeline); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(target, level, pname, params); + context->gatherParams(pipeline); - if (context->skipValidation() || - ValidateGetTexLevelParameterfv(context, target, level, pname, params)) + if (context->skipValidation() || ValidateValidateProgramPipeline(context, pipeline)) { - context->getTexLevelParameterfv(target, level, pname, params); + context->validateProgramPipeline(pipeline); } } } -void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, - GLuint buffer, - GLintptr offset, - GLsizei stride) +void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex) { - EVENT( - "(GLuint bindingindex = %u, GLuint buffer = %u, GLintptr offset = %d, GLsizei stride = %d)", - bindingindex, buffer, offset, stride); + EVENT("(GLuint attribindex = %u, GLuint bindingindex = %u)", attribindex, bindingindex); Context *context = GetValidGlobalContext(); if (context) { - context->gatherParams(bindingindex, buffer, offset, stride); + context->gatherParams(attribindex, bindingindex); if (context->skipValidation() || - ValidateBindVertexBuffer(context, bindingindex, buffer, offset, stride)) + ValidateVertexAttribBinding(context, attribindex, bindingindex)) { - context->bindVertexBuffer(bindingindex, buffer, offset, stride); + context->vertexAttribBinding(attribindex, bindingindex); } } } @@ -1394,23 +1411,6 @@ void GL_APIENTRY VertexAttribIFormat(GLuint attribindex, } } -void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex) -{ - EVENT("(GLuint attribindex = %u, GLuint bindingindex = %u)", attribindex, bindingindex); - - Context *context = GetValidGlobalContext(); - if (context) - { - context->gatherParams(attribindex, bindingindex); - - if (context->skipValidation() || - ValidateVertexAttribBinding(context, attribindex, bindingindex)) - { - context->vertexAttribBinding(attribindex, bindingindex); - } - } -} - void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor) { EVENT("(GLuint bindingindex = %u, GLuint divisor = %u)", bindingindex, divisor); diff --git a/src/libGLESv2/entry_points_gles_3_1_autogen.h b/src/libGLESv2/entry_points_gles_3_1_autogen.h index e11d5a10b..06bcc5105 100644 --- a/src/libGLESv2/entry_points_gles_3_1_autogen.h +++ b/src/libGLESv2/entry_points_gles_3_1_autogen.h @@ -18,6 +18,23 @@ namespace gl { +ANGLE_EXPORT void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program); +ANGLE_EXPORT void GL_APIENTRY BindImageTexture(GLuint unit, + GLuint texture, + GLint level, + GLboolean layered, + GLint layer, + GLenum access, + GLenum format); +ANGLE_EXPORT void GL_APIENTRY BindProgramPipeline(GLuint pipeline); +ANGLE_EXPORT void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, + GLuint buffer, + GLintptr offset, + GLsizei stride); +ANGLE_EXPORT GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, + GLsizei count, + const GLchar *const *strings); +ANGLE_EXPORT void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines); ANGLE_EXPORT void GL_APIENTRY DispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z); @@ -25,14 +42,25 @@ ANGLE_EXPORT void GL_APIENTRY DispatchComputeIndirect(GLintptr indirect); ANGLE_EXPORT void GL_APIENTRY DrawArraysIndirect(GLenum mode, const void *indirect); ANGLE_EXPORT void GL_APIENTRY DrawElementsIndirect(GLenum mode, GLenum type, const void *indirect); ANGLE_EXPORT void GL_APIENTRY FramebufferParameteri(GLenum target, GLenum pname, GLint param); +ANGLE_EXPORT void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines); +ANGLE_EXPORT void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data); ANGLE_EXPORT void GL_APIENTRY GetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); ANGLE_EXPORT void GL_APIENTRY GetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint *params); +ANGLE_EXPORT void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, + GLsizei bufSize, + GLsizei *length, + GLchar *infoLog); +ANGLE_EXPORT void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params); ANGLE_EXPORT GLuint GL_APIENTRY GetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name); +ANGLE_EXPORT GLint GL_APIENTRY GetProgramResourceLocation(GLuint program, + GLenum programInterface, + const GLchar *name); ANGLE_EXPORT void GL_APIENTRY GetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, @@ -47,122 +75,110 @@ ANGLE_EXPORT void GL_APIENTRY GetProgramResourceiv(GLuint program, GLsizei bufSize, GLsizei *length, GLint *params); -ANGLE_EXPORT GLint GL_APIENTRY GetProgramResourceLocation(GLuint program, - GLenum programInterface, - const GLchar *name); -ANGLE_EXPORT void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program); -ANGLE_EXPORT void GL_APIENTRY ActiveShaderProgram(GLuint pipeline, GLuint program); -ANGLE_EXPORT GLuint GL_APIENTRY CreateShaderProgramv(GLenum type, - GLsizei count, - const GLchar *const *strings); -ANGLE_EXPORT void GL_APIENTRY BindProgramPipeline(GLuint pipeline); -ANGLE_EXPORT void GL_APIENTRY DeleteProgramPipelines(GLsizei n, const GLuint *pipelines); -ANGLE_EXPORT void GL_APIENTRY GenProgramPipelines(GLsizei n, GLuint *pipelines); +ANGLE_EXPORT void GL_APIENTRY GetTexLevelParameterfv(GLenum target, + GLint level, + GLenum pname, + GLfloat *params); +ANGLE_EXPORT void GL_APIENTRY GetTexLevelParameteriv(GLenum target, + GLint level, + GLenum pname, + GLint *params); ANGLE_EXPORT GLboolean GL_APIENTRY IsProgramPipeline(GLuint pipeline); -ANGLE_EXPORT void GL_APIENTRY GetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform2ui(GLuint program, - GLint location, - GLuint v0, - GLuint v1); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +ANGLE_EXPORT void GL_APIENTRY MemoryBarrier(GLbitfield barriers); +ANGLE_EXPORT void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers); ANGLE_EXPORT void GL_APIENTRY ProgramUniform1f(GLuint program, GLint location, GLfloat v0); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform2f(GLuint program, - GLint location, - GLfloat v0, - GLfloat v1); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); -ANGLE_EXPORT void GL_APIENTRY -ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform1iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform2iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform3iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform4iv(GLuint program, - GLint location, - GLsizei count, - const GLint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform1uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform2uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform3uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniform4uiv(GLuint program, - GLint location, - GLsizei count, - const GLuint *value); ANGLE_EXPORT void GL_APIENTRY ProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform1i(GLuint program, GLint location, GLint v0); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform1iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform1ui(GLuint program, GLint location, GLuint v0); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform1uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform2f(GLuint program, + GLint location, + GLfloat v0, + GLfloat v1); ANGLE_EXPORT void GL_APIENTRY ProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform2iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform2ui(GLuint program, + GLint location, + GLuint v0, + GLuint v1); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform2uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2); ANGLE_EXPORT void GL_APIENTRY ProgramUniform3fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform3iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform3uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); ANGLE_EXPORT void GL_APIENTRY ProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform4iv(GLuint program, + GLint location, + GLsizei count, + const GLint *value); +ANGLE_EXPORT void GL_APIENTRY +ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); +ANGLE_EXPORT void GL_APIENTRY ProgramUniform4uiv(GLuint program, + GLint location, + GLsizei count, + const GLuint *value); ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program, - GLint location, - GLsizei count, - GLboolean transpose, - const GLfloat *value); ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program, +ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix3fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, @@ -172,46 +188,31 @@ ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix3x4fv(GLuint program, GLsizei count, GLboolean transpose, const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix4fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); +ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix4x2fv(GLuint program, + GLint location, + GLsizei count, + GLboolean transpose, + const GLfloat *value); ANGLE_EXPORT void GL_APIENTRY ProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value); -ANGLE_EXPORT void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline); -ANGLE_EXPORT void GL_APIENTRY GetProgramPipelineInfoLog(GLuint pipeline, - GLsizei bufSize, - GLsizei *length, - GLchar *infoLog); -ANGLE_EXPORT void GL_APIENTRY BindImageTexture(GLuint unit, - GLuint texture, - GLint level, - GLboolean layered, - GLint layer, - GLenum access, - GLenum format); -ANGLE_EXPORT void GL_APIENTRY GetBooleani_v(GLenum target, GLuint index, GLboolean *data); -ANGLE_EXPORT void GL_APIENTRY MemoryBarrier(GLbitfield barriers); -ANGLE_EXPORT void GL_APIENTRY MemoryBarrierByRegion(GLbitfield barriers); +ANGLE_EXPORT void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask); ANGLE_EXPORT void GL_APIENTRY TexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations); -ANGLE_EXPORT void GL_APIENTRY GetMultisamplefv(GLenum pname, GLuint index, GLfloat *val); -ANGLE_EXPORT void GL_APIENTRY SampleMaski(GLuint maskNumber, GLbitfield mask); -ANGLE_EXPORT void GL_APIENTRY GetTexLevelParameteriv(GLenum target, - GLint level, - GLenum pname, - GLint *params); -ANGLE_EXPORT void GL_APIENTRY GetTexLevelParameterfv(GLenum target, - GLint level, - GLenum pname, - GLfloat *params); -ANGLE_EXPORT void GL_APIENTRY BindVertexBuffer(GLuint bindingindex, - GLuint buffer, - GLintptr offset, - GLsizei stride); +ANGLE_EXPORT void GL_APIENTRY UseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program); +ANGLE_EXPORT void GL_APIENTRY ValidateProgramPipeline(GLuint pipeline); +ANGLE_EXPORT void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex); ANGLE_EXPORT void GL_APIENTRY VertexAttribFormat(GLuint attribindex, GLint size, GLenum type, @@ -221,7 +222,6 @@ ANGLE_EXPORT void GL_APIENTRY VertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset); -ANGLE_EXPORT void GL_APIENTRY VertexAttribBinding(GLuint attribindex, GLuint bindingindex); ANGLE_EXPORT void GL_APIENTRY VertexBindingDivisor(GLuint bindingindex, GLuint divisor); } // namespace gl