blob: 31e8c1e98dec014851187140a15dcb0ed8859476 [file]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This file is auto-generated from
// ui/gl/generate_bindings.py
// It's formatted by clang-format using chromium coding style:
// clang-format -i -style=chromium filename
// DO NOT EDIT!
#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif
#include <string>
#include "base/containers/span.h"
#include "base/debug/crash_logging.h"
#include "base/debug/dump_without_crashing.h"
#include "base/trace_event/trace_event.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_enums.h"
#include "ui/gl/gl_gl_api_implementation.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_version_info.h"
namespace gl {
void DriverGL::InitializeStaticBindings(GLGetProcAddressProc get_proc_address) {
TRACE_EVENT("gpu,startup", "DriverGL::InitializeStaticBindings");
fn.glActiveTextureFn = reinterpret_cast<glActiveTextureProc>(
get_proc_address("glActiveTexture"));
fn.glAttachShaderFn =
reinterpret_cast<glAttachShaderProc>(get_proc_address("glAttachShader"));
fn.glBindAttribLocationFn = reinterpret_cast<glBindAttribLocationProc>(
get_proc_address("glBindAttribLocation"));
fn.glBindBufferFn =
reinterpret_cast<glBindBufferProc>(get_proc_address("glBindBuffer"));
fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
get_proc_address("glBindFramebuffer"));
fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>(
get_proc_address("glBindRenderbuffer"));
fn.glBindTextureFn =
reinterpret_cast<glBindTextureProc>(get_proc_address("glBindTexture"));
fn.glBlendColorFn =
reinterpret_cast<glBlendColorProc>(get_proc_address("glBlendColor"));
fn.glBlendEquationFn = reinterpret_cast<glBlendEquationProc>(
get_proc_address("glBlendEquation"));
fn.glBlendEquationSeparateFn = reinterpret_cast<glBlendEquationSeparateProc>(
get_proc_address("glBlendEquationSeparate"));
fn.glBlendFuncFn =
reinterpret_cast<glBlendFuncProc>(get_proc_address("glBlendFunc"));
fn.glBlendFuncSeparateFn = reinterpret_cast<glBlendFuncSeparateProc>(
get_proc_address("glBlendFuncSeparate"));
fn.glBufferDataFn =
reinterpret_cast<glBufferDataProc>(get_proc_address("glBufferData"));
fn.glBufferSubDataFn = reinterpret_cast<glBufferSubDataProc>(
get_proc_address("glBufferSubData"));
fn.glCheckFramebufferStatusEXTFn =
reinterpret_cast<glCheckFramebufferStatusEXTProc>(
get_proc_address("glCheckFramebufferStatus"));
fn.glClearFn = reinterpret_cast<glClearProc>(get_proc_address("glClear"));
fn.glClearColorFn =
reinterpret_cast<glClearColorProc>(get_proc_address("glClearColor"));
fn.glClearDepthFn =
reinterpret_cast<glClearDepthProc>(get_proc_address("glClearDepth"));
fn.glClearDepthfFn =
reinterpret_cast<glClearDepthfProc>(get_proc_address("glClearDepthf"));
fn.glClearStencilFn =
reinterpret_cast<glClearStencilProc>(get_proc_address("glClearStencil"));
fn.glColorMaskFn =
reinterpret_cast<glColorMaskProc>(get_proc_address("glColorMask"));
fn.glCompileShaderFn = reinterpret_cast<glCompileShaderProc>(
get_proc_address("glCompileShader"));
fn.glCompressedTexImage2DFn = reinterpret_cast<glCompressedTexImage2DProc>(
get_proc_address("glCompressedTexImage2D"));
fn.glCompressedTexSubImage2DFn =
reinterpret_cast<glCompressedTexSubImage2DProc>(
get_proc_address("glCompressedTexSubImage2D"));
fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>(
get_proc_address("glCopyTexImage2D"));
fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>(
get_proc_address("glCopyTexSubImage2D"));
fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>(
get_proc_address("glCreateProgram"));
fn.glCreateShaderFn =
reinterpret_cast<glCreateShaderProc>(get_proc_address("glCreateShader"));
fn.glCullFaceFn =
reinterpret_cast<glCullFaceProc>(get_proc_address("glCullFace"));
fn.glDeleteBuffersARBFn = reinterpret_cast<glDeleteBuffersARBProc>(
get_proc_address("glDeleteBuffers"));
fn.glDeleteFramebuffersEXTFn = reinterpret_cast<glDeleteFramebuffersEXTProc>(
get_proc_address("glDeleteFramebuffers"));
fn.glDeleteProgramFn = reinterpret_cast<glDeleteProgramProc>(
get_proc_address("glDeleteProgram"));
fn.glDeleteRenderbuffersEXTFn =
reinterpret_cast<glDeleteRenderbuffersEXTProc>(
get_proc_address("glDeleteRenderbuffers"));
fn.glDeleteShaderFn =
reinterpret_cast<glDeleteShaderProc>(get_proc_address("glDeleteShader"));
fn.glDeleteTexturesFn = reinterpret_cast<glDeleteTexturesProc>(
get_proc_address("glDeleteTextures"));
fn.glDepthFuncFn =
reinterpret_cast<glDepthFuncProc>(get_proc_address("glDepthFunc"));
fn.glDepthMaskFn =
reinterpret_cast<glDepthMaskProc>(get_proc_address("glDepthMask"));
fn.glDepthRangeFn =
reinterpret_cast<glDepthRangeProc>(get_proc_address("glDepthRange"));
fn.glDepthRangefFn =
reinterpret_cast<glDepthRangefProc>(get_proc_address("glDepthRangef"));
fn.glDetachShaderFn =
reinterpret_cast<glDetachShaderProc>(get_proc_address("glDetachShader"));
fn.glDisableFn =
reinterpret_cast<glDisableProc>(get_proc_address("glDisable"));
fn.glDisableVertexAttribArrayFn =
reinterpret_cast<glDisableVertexAttribArrayProc>(
get_proc_address("glDisableVertexAttribArray"));
fn.glDrawArraysFn =
reinterpret_cast<glDrawArraysProc>(get_proc_address("glDrawArrays"));
fn.glDrawBufferFn =
reinterpret_cast<glDrawBufferProc>(get_proc_address("glDrawBuffer"));
fn.glDrawElementsFn =
reinterpret_cast<glDrawElementsProc>(get_proc_address("glDrawElements"));
fn.glEnableFn = reinterpret_cast<glEnableProc>(get_proc_address("glEnable"));
fn.glEnableVertexAttribArrayFn =
reinterpret_cast<glEnableVertexAttribArrayProc>(
get_proc_address("glEnableVertexAttribArray"));
fn.glFinishFn = reinterpret_cast<glFinishProc>(get_proc_address("glFinish"));
fn.glFlushFn = reinterpret_cast<glFlushProc>(get_proc_address("glFlush"));
fn.glFramebufferRenderbufferEXTFn =
reinterpret_cast<glFramebufferRenderbufferEXTProc>(
get_proc_address("glFramebufferRenderbuffer"));
fn.glFramebufferTexture2DEXTFn =
reinterpret_cast<glFramebufferTexture2DEXTProc>(
get_proc_address("glFramebufferTexture2D"));
fn.glFrontFaceFn =
reinterpret_cast<glFrontFaceProc>(get_proc_address("glFrontFace"));
fn.glGenBuffersARBFn =
reinterpret_cast<glGenBuffersARBProc>(get_proc_address("glGenBuffers"));
fn.glGenerateMipmapEXTFn = reinterpret_cast<glGenerateMipmapEXTProc>(
get_proc_address("glGenerateMipmap"));
fn.glGenFramebuffersEXTFn = reinterpret_cast<glGenFramebuffersEXTProc>(
get_proc_address("glGenFramebuffers"));
fn.glGenRenderbuffersEXTFn = reinterpret_cast<glGenRenderbuffersEXTProc>(
get_proc_address("glGenRenderbuffers"));
fn.glGenTexturesFn =
reinterpret_cast<glGenTexturesProc>(get_proc_address("glGenTextures"));
fn.glGetActiveAttribFn = reinterpret_cast<glGetActiveAttribProc>(
get_proc_address("glGetActiveAttrib"));
fn.glGetActiveUniformFn = reinterpret_cast<glGetActiveUniformProc>(
get_proc_address("glGetActiveUniform"));
fn.glGetAttachedShadersFn = reinterpret_cast<glGetAttachedShadersProc>(
get_proc_address("glGetAttachedShaders"));
fn.glGetAttribLocationFn = reinterpret_cast<glGetAttribLocationProc>(
get_proc_address("glGetAttribLocation"));
fn.glGetBooleanvFn =
reinterpret_cast<glGetBooleanvProc>(get_proc_address("glGetBooleanv"));
fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>(
get_proc_address("glGetBufferParameteriv"));
fn.glGetErrorFn =
reinterpret_cast<glGetErrorProc>(get_proc_address("glGetError"));
fn.glGetFloatvFn =
reinterpret_cast<glGetFloatvProc>(get_proc_address("glGetFloatv"));
fn.glGetFramebufferAttachmentParameterivEXTFn =
reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>(
get_proc_address("glGetFramebufferAttachmentParameteriv"));
fn.glGetIntegervFn =
reinterpret_cast<glGetIntegervProc>(get_proc_address("glGetIntegerv"));
fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>(
get_proc_address("glGetProgramInfoLog"));
fn.glGetProgramivFn =
reinterpret_cast<glGetProgramivProc>(get_proc_address("glGetProgramiv"));
fn.glGetRenderbufferParameterivEXTFn =
reinterpret_cast<glGetRenderbufferParameterivEXTProc>(
get_proc_address("glGetRenderbufferParameteriv"));
fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>(
get_proc_address("glGetShaderInfoLog"));
fn.glGetShaderivFn =
reinterpret_cast<glGetShaderivProc>(get_proc_address("glGetShaderiv"));
fn.glGetShaderPrecisionFormatFn =
reinterpret_cast<glGetShaderPrecisionFormatProc>(
get_proc_address("glGetShaderPrecisionFormat"));
fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>(
get_proc_address("glGetShaderSource"));
fn.glGetStringFn =
reinterpret_cast<glGetStringProc>(get_proc_address("glGetString"));
fn.glGetStringiFn =
reinterpret_cast<glGetStringiProc>(get_proc_address("glGetStringi"));
fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>(
get_proc_address("glGetTexParameterfv"));
fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>(
get_proc_address("glGetTexParameteriv"));
fn.glGetUniformfvFn =
reinterpret_cast<glGetUniformfvProc>(get_proc_address("glGetUniformfv"));
fn.glGetUniformivFn =
reinterpret_cast<glGetUniformivProc>(get_proc_address("glGetUniformiv"));
fn.glGetUniformLocationFn = reinterpret_cast<glGetUniformLocationProc>(
get_proc_address("glGetUniformLocation"));
fn.glGetVertexAttribfvFn = reinterpret_cast<glGetVertexAttribfvProc>(
get_proc_address("glGetVertexAttribfv"));
fn.glGetVertexAttribivFn = reinterpret_cast<glGetVertexAttribivProc>(
get_proc_address("glGetVertexAttribiv"));
fn.glGetVertexAttribPointervFn =
reinterpret_cast<glGetVertexAttribPointervProc>(
get_proc_address("glGetVertexAttribPointerv"));
fn.glHintFn = reinterpret_cast<glHintProc>(get_proc_address("glHint"));
fn.glIsBufferFn =
reinterpret_cast<glIsBufferProc>(get_proc_address("glIsBuffer"));
fn.glIsEnabledFn =
reinterpret_cast<glIsEnabledProc>(get_proc_address("glIsEnabled"));
fn.glIsFramebufferEXTFn = reinterpret_cast<glIsFramebufferEXTProc>(
get_proc_address("glIsFramebuffer"));
fn.glIsProgramFn =
reinterpret_cast<glIsProgramProc>(get_proc_address("glIsProgram"));
fn.glIsRenderbufferEXTFn = reinterpret_cast<glIsRenderbufferEXTProc>(
get_proc_address("glIsRenderbuffer"));
fn.glIsShaderFn =
reinterpret_cast<glIsShaderProc>(get_proc_address("glIsShader"));
fn.glIsTextureFn =
reinterpret_cast<glIsTextureProc>(get_proc_address("glIsTexture"));
fn.glLineWidthFn =
reinterpret_cast<glLineWidthProc>(get_proc_address("glLineWidth"));
fn.glLinkProgramFn =
reinterpret_cast<glLinkProgramProc>(get_proc_address("glLinkProgram"));
fn.glPixelStoreiFn =
reinterpret_cast<glPixelStoreiProc>(get_proc_address("glPixelStorei"));
fn.glPointParameteriFn = reinterpret_cast<glPointParameteriProc>(
get_proc_address("glPointParameteri"));
fn.glPolygonModeFn =
reinterpret_cast<glPolygonModeProc>(get_proc_address("glPolygonMode"));
fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>(
get_proc_address("glPolygonOffset"));
fn.glPrimitiveRestartIndexFn = reinterpret_cast<glPrimitiveRestartIndexProc>(
get_proc_address("glPrimitiveRestartIndex"));
fn.glReadPixelsFn =
reinterpret_cast<glReadPixelsProc>(get_proc_address("glReadPixels"));
fn.glReleaseShaderCompilerFn = reinterpret_cast<glReleaseShaderCompilerProc>(
get_proc_address("glReleaseShaderCompiler"));
fn.glRenderbufferStorageEXTFn =
reinterpret_cast<glRenderbufferStorageEXTProc>(
get_proc_address("glRenderbufferStorage"));
fn.glSampleCoverageFn = reinterpret_cast<glSampleCoverageProc>(
get_proc_address("glSampleCoverage"));
fn.glScissorFn =
reinterpret_cast<glScissorProc>(get_proc_address("glScissor"));
fn.glShaderBinaryFn =
reinterpret_cast<glShaderBinaryProc>(get_proc_address("glShaderBinary"));
fn.glShaderSourceFn =
reinterpret_cast<glShaderSourceProc>(get_proc_address("glShaderSource"));
fn.glStencilFuncFn =
reinterpret_cast<glStencilFuncProc>(get_proc_address("glStencilFunc"));
fn.glStencilFuncSeparateFn = reinterpret_cast<glStencilFuncSeparateProc>(
get_proc_address("glStencilFuncSeparate"));
fn.glStencilMaskFn =
reinterpret_cast<glStencilMaskProc>(get_proc_address("glStencilMask"));
fn.glStencilMaskSeparateFn = reinterpret_cast<glStencilMaskSeparateProc>(
get_proc_address("glStencilMaskSeparate"));
fn.glStencilOpFn =
reinterpret_cast<glStencilOpProc>(get_proc_address("glStencilOp"));
fn.glStencilOpSeparateFn = reinterpret_cast<glStencilOpSeparateProc>(
get_proc_address("glStencilOpSeparate"));
fn.glTexImage2DFn =
reinterpret_cast<glTexImage2DProc>(get_proc_address("glTexImage2D"));
fn.glTexParameterfFn = reinterpret_cast<glTexParameterfProc>(
get_proc_address("glTexParameterf"));
fn.glTexParameterfvFn = reinterpret_cast<glTexParameterfvProc>(
get_proc_address("glTexParameterfv"));
fn.glTexParameteriFn = reinterpret_cast<glTexParameteriProc>(
get_proc_address("glTexParameteri"));
fn.glTexParameterivFn = reinterpret_cast<glTexParameterivProc>(
get_proc_address("glTexParameteriv"));
fn.glTexSubImage2DFn = reinterpret_cast<glTexSubImage2DProc>(
get_proc_address("glTexSubImage2D"));
fn.glUniform1fFn =
reinterpret_cast<glUniform1fProc>(get_proc_address("glUniform1f"));
fn.glUniform1fvFn =
reinterpret_cast<glUniform1fvProc>(get_proc_address("glUniform1fv"));
fn.glUniform1iFn =
reinterpret_cast<glUniform1iProc>(get_proc_address("glUniform1i"));
fn.glUniform1ivFn =
reinterpret_cast<glUniform1ivProc>(get_proc_address("glUniform1iv"));
fn.glUniform2fFn =
reinterpret_cast<glUniform2fProc>(get_proc_address("glUniform2f"));
fn.glUniform2fvFn =
reinterpret_cast<glUniform2fvProc>(get_proc_address("glUniform2fv"));
fn.glUniform2iFn =
reinterpret_cast<glUniform2iProc>(get_proc_address("glUniform2i"));
fn.glUniform2ivFn =
reinterpret_cast<glUniform2ivProc>(get_proc_address("glUniform2iv"));
fn.glUniform3fFn =
reinterpret_cast<glUniform3fProc>(get_proc_address("glUniform3f"));
fn.glUniform3fvFn =
reinterpret_cast<glUniform3fvProc>(get_proc_address("glUniform3fv"));
fn.glUniform3iFn =
reinterpret_cast<glUniform3iProc>(get_proc_address("glUniform3i"));
fn.glUniform3ivFn =
reinterpret_cast<glUniform3ivProc>(get_proc_address("glUniform3iv"));
fn.glUniform4fFn =
reinterpret_cast<glUniform4fProc>(get_proc_address("glUniform4f"));
fn.glUniform4fvFn =
reinterpret_cast<glUniform4fvProc>(get_proc_address("glUniform4fv"));
fn.glUniform4iFn =
reinterpret_cast<glUniform4iProc>(get_proc_address("glUniform4i"));
fn.glUniform4ivFn =
reinterpret_cast<glUniform4ivProc>(get_proc_address("glUniform4iv"));
fn.glUniformMatrix2fvFn = reinterpret_cast<glUniformMatrix2fvProc>(
get_proc_address("glUniformMatrix2fv"));
fn.glUniformMatrix3fvFn = reinterpret_cast<glUniformMatrix3fvProc>(
get_proc_address("glUniformMatrix3fv"));
fn.glUniformMatrix4fvFn = reinterpret_cast<glUniformMatrix4fvProc>(
get_proc_address("glUniformMatrix4fv"));
fn.glUseProgramFn =
reinterpret_cast<glUseProgramProc>(get_proc_address("glUseProgram"));
fn.glValidateProgramFn = reinterpret_cast<glValidateProgramProc>(
get_proc_address("glValidateProgram"));
fn.glVertexAttrib1fFn = reinterpret_cast<glVertexAttrib1fProc>(
get_proc_address("glVertexAttrib1f"));
fn.glVertexAttrib1fvFn = reinterpret_cast<glVertexAttrib1fvProc>(
get_proc_address("glVertexAttrib1fv"));
fn.glVertexAttrib2fFn = reinterpret_cast<glVertexAttrib2fProc>(
get_proc_address("glVertexAttrib2f"));
fn.glVertexAttrib2fvFn = reinterpret_cast<glVertexAttrib2fvProc>(
get_proc_address("glVertexAttrib2fv"));
fn.glVertexAttrib3fFn = reinterpret_cast<glVertexAttrib3fProc>(
get_proc_address("glVertexAttrib3f"));
fn.glVertexAttrib3fvFn = reinterpret_cast<glVertexAttrib3fvProc>(
get_proc_address("glVertexAttrib3fv"));
fn.glVertexAttrib4fFn = reinterpret_cast<glVertexAttrib4fProc>(
get_proc_address("glVertexAttrib4f"));
fn.glVertexAttrib4fvFn = reinterpret_cast<glVertexAttrib4fvProc>(
get_proc_address("glVertexAttrib4fv"));
fn.glVertexAttribPointerFn = reinterpret_cast<glVertexAttribPointerProc>(
get_proc_address("glVertexAttribPointer"));
fn.glViewportFn =
reinterpret_cast<glViewportProc>(get_proc_address("glViewport"));
}
void DriverGL::InitializeDynamicBindings(GLGetProcAddressProc get_proc_address,
const GLVersionInfo* ver,
const gfx::ExtensionSet& extensions) {
ext.b_GL_AMD_framebuffer_multisample_advanced =
gfx::HasExtension(extensions, "GL_AMD_framebuffer_multisample_advanced");
ext.b_GL_ANGLE_base_vertex_base_instance =
gfx::HasExtension(extensions, "GL_ANGLE_base_vertex_base_instance");
ext.b_GL_ANGLE_blob_cache =
gfx::HasExtension(extensions, "GL_ANGLE_blob_cache");
ext.b_GL_ANGLE_framebuffer_blit =
gfx::HasExtension(extensions, "GL_ANGLE_framebuffer_blit");
ext.b_GL_ANGLE_framebuffer_multisample =
gfx::HasExtension(extensions, "GL_ANGLE_framebuffer_multisample");
ext.b_GL_ANGLE_get_tex_level_parameter =
gfx::HasExtension(extensions, "GL_ANGLE_get_tex_level_parameter");
ext.b_GL_ANGLE_instanced_arrays =
gfx::HasExtension(extensions, "GL_ANGLE_instanced_arrays");
ext.b_GL_ANGLE_memory_object_flags =
gfx::HasExtension(extensions, "GL_ANGLE_memory_object_flags");
ext.b_GL_ANGLE_memory_object_fuchsia =
gfx::HasExtension(extensions, "GL_ANGLE_memory_object_fuchsia");
ext.b_GL_ANGLE_multi_draw =
gfx::HasExtension(extensions, "GL_ANGLE_multi_draw");
ext.b_GL_ANGLE_polygon_mode =
gfx::HasExtension(extensions, "GL_ANGLE_polygon_mode");
ext.b_GL_ANGLE_provoking_vertex =
gfx::HasExtension(extensions, "GL_ANGLE_provoking_vertex");
ext.b_GL_ANGLE_renderability_validation =
gfx::HasExtension(extensions, "GL_ANGLE_renderability_validation");
ext.b_GL_ANGLE_request_extension =
gfx::HasExtension(extensions, "GL_ANGLE_request_extension");
ext.b_GL_ANGLE_robust_client_memory =
gfx::HasExtension(extensions, "GL_ANGLE_robust_client_memory");
ext.b_GL_ANGLE_robust_resource_initialization =
gfx::HasExtension(extensions, "GL_ANGLE_robust_resource_initialization");
ext.b_GL_ANGLE_semaphore_fuchsia =
gfx::HasExtension(extensions, "GL_ANGLE_semaphore_fuchsia");
ext.b_GL_ANGLE_shader_pixel_local_storage =
gfx::HasExtension(extensions, "GL_ANGLE_shader_pixel_local_storage");
ext.b_GL_ANGLE_texture_external_update =
gfx::HasExtension(extensions, "GL_ANGLE_texture_external_update");
ext.b_GL_ANGLE_translated_shader_source =
gfx::HasExtension(extensions, "GL_ANGLE_translated_shader_source");
ext.b_GL_ANGLE_vulkan_image =
gfx::HasExtension(extensions, "GL_ANGLE_vulkan_image");
ext.b_GL_ANGLE_webgl_compatibility =
gfx::HasExtension(extensions, "GL_ANGLE_webgl_compatibility");
ext.b_GL_CHROMIUM_bind_uniform_location =
gfx::HasExtension(extensions, "GL_CHROMIUM_bind_uniform_location");
ext.b_GL_CHROMIUM_copy_texture =
gfx::HasExtension(extensions, "GL_CHROMIUM_copy_texture");
ext.b_GL_CHROMIUM_gles_depth_binding_hack =
gfx::HasExtension(extensions, "GL_CHROMIUM_gles_depth_binding_hack");
ext.b_GL_CHROMIUM_glgetstringi_hack =
gfx::HasExtension(extensions, "GL_CHROMIUM_glgetstringi_hack");
ext.b_GL_EXT_base_instance =
gfx::HasExtension(extensions, "GL_EXT_base_instance");
ext.b_GL_EXT_blend_func_extended =
gfx::HasExtension(extensions, "GL_EXT_blend_func_extended");
ext.b_GL_EXT_clear_texture =
gfx::HasExtension(extensions, "GL_EXT_clear_texture");
ext.b_GL_EXT_clip_control =
gfx::HasExtension(extensions, "GL_EXT_clip_control");
ext.b_GL_EXT_debug_marker =
gfx::HasExtension(extensions, "GL_EXT_debug_marker");
ext.b_GL_EXT_discard_framebuffer =
gfx::HasExtension(extensions, "GL_EXT_discard_framebuffer");
ext.b_GL_EXT_disjoint_timer_query =
gfx::HasExtension(extensions, "GL_EXT_disjoint_timer_query");
ext.b_GL_EXT_draw_buffers =
gfx::HasExtension(extensions, "GL_EXT_draw_buffers");
ext.b_GL_EXT_framebuffer_multisample =
gfx::HasExtension(extensions, "GL_EXT_framebuffer_multisample");
ext.b_GL_EXT_instanced_arrays =
gfx::HasExtension(extensions, "GL_EXT_instanced_arrays");
ext.b_GL_EXT_map_buffer_range =
gfx::HasExtension(extensions, "GL_EXT_map_buffer_range");
ext.b_GL_EXT_memory_object =
gfx::HasExtension(extensions, "GL_EXT_memory_object");
ext.b_GL_EXT_memory_object_fd =
gfx::HasExtension(extensions, "GL_EXT_memory_object_fd");
ext.b_GL_EXT_memory_object_win32 =
gfx::HasExtension(extensions, "GL_EXT_memory_object_win32");
ext.b_GL_EXT_multisampled_render_to_texture =
gfx::HasExtension(extensions, "GL_EXT_multisampled_render_to_texture");
ext.b_GL_EXT_occlusion_query_boolean =
gfx::HasExtension(extensions, "GL_EXT_occlusion_query_boolean");
ext.b_GL_EXT_polygon_offset_clamp =
gfx::HasExtension(extensions, "GL_EXT_polygon_offset_clamp");
ext.b_GL_EXT_robustness = gfx::HasExtension(extensions, "GL_EXT_robustness");
ext.b_GL_EXT_semaphore = gfx::HasExtension(extensions, "GL_EXT_semaphore");
ext.b_GL_EXT_semaphore_fd =
gfx::HasExtension(extensions, "GL_EXT_semaphore_fd");
ext.b_GL_EXT_semaphore_win32 =
gfx::HasExtension(extensions, "GL_EXT_semaphore_win32");
ext.b_GL_EXT_texture_buffer =
gfx::HasExtension(extensions, "GL_EXT_texture_buffer");
ext.b_GL_EXT_texture_format_BGRA8888 =
gfx::HasExtension(extensions, "GL_EXT_texture_format_BGRA8888");
ext.b_GL_EXT_texture_storage =
gfx::HasExtension(extensions, "GL_EXT_texture_storage");
ext.b_GL_EXT_texture_swizzle =
gfx::HasExtension(extensions, "GL_EXT_texture_swizzle");
ext.b_GL_EXT_unpack_subimage =
gfx::HasExtension(extensions, "GL_EXT_unpack_subimage");
ext.b_GL_EXT_window_rectangles =
gfx::HasExtension(extensions, "GL_EXT_window_rectangles");
ext.b_GL_IMG_multisampled_render_to_texture =
gfx::HasExtension(extensions, "GL_IMG_multisampled_render_to_texture");
ext.b_GL_KHR_blend_equation_advanced =
gfx::HasExtension(extensions, "GL_KHR_blend_equation_advanced");
ext.b_GL_KHR_debug = gfx::HasExtension(extensions, "GL_KHR_debug");
ext.b_GL_KHR_parallel_shader_compile =
gfx::HasExtension(extensions, "GL_KHR_parallel_shader_compile");
ext.b_GL_KHR_robustness = gfx::HasExtension(extensions, "GL_KHR_robustness");
ext.b_GL_MESA_framebuffer_flip_y =
gfx::HasExtension(extensions, "GL_MESA_framebuffer_flip_y");
ext.b_GL_MESA_sampler_objects =
gfx::HasExtension(extensions, "GL_MESA_sampler_objects");
ext.b_GL_NV_blend_equation_advanced =
gfx::HasExtension(extensions, "GL_NV_blend_equation_advanced");
ext.b_GL_NV_fence = gfx::HasExtension(extensions, "GL_NV_fence");
ext.b_GL_NV_framebuffer_blit =
gfx::HasExtension(extensions, "GL_NV_framebuffer_blit");
ext.b_GL_NV_internalformat_sample_query =
gfx::HasExtension(extensions, "GL_NV_internalformat_sample_query");
ext.b_GL_OES_EGL_image = gfx::HasExtension(extensions, "GL_OES_EGL_image");
ext.b_GL_OES_draw_buffers_indexed =
gfx::HasExtension(extensions, "GL_OES_draw_buffers_indexed");
ext.b_GL_OES_get_program_binary =
gfx::HasExtension(extensions, "GL_OES_get_program_binary");
ext.b_GL_OES_mapbuffer = gfx::HasExtension(extensions, "GL_OES_mapbuffer");
ext.b_GL_OES_tessellation_shader =
gfx::HasExtension(extensions, "GL_OES_tessellation_shader");
ext.b_GL_OES_texture_buffer =
gfx::HasExtension(extensions, "GL_OES_texture_buffer");
ext.b_GL_OES_vertex_array_object =
gfx::HasExtension(extensions, "GL_OES_vertex_array_object");
ext.b_GL_OVR_multiview = gfx::HasExtension(extensions, "GL_OVR_multiview");
ext.b_GL_OVR_multiview2 = gfx::HasExtension(extensions, "GL_OVR_multiview2");
ext.b_GL_QCOM_tiled_rendering =
gfx::HasExtension(extensions, "GL_QCOM_tiled_rendering");
if (ext.b_GL_ANGLE_vulkan_image) {
fn.glAcquireTexturesANGLEFn = reinterpret_cast<glAcquireTexturesANGLEProc>(
get_proc_address("glAcquireTexturesANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glBeginPixelLocalStorageANGLEFn =
reinterpret_cast<glBeginPixelLocalStorageANGLEProc>(
get_proc_address("glBeginPixelLocalStorageANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBeginQueryFn =
reinterpret_cast<glBeginQueryProc>(get_proc_address("glBeginQuery"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glBeginQueryFn =
reinterpret_cast<glBeginQueryProc>(get_proc_address("glBeginQueryEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBeginTransformFeedbackFn =
reinterpret_cast<glBeginTransformFeedbackProc>(
get_proc_address("glBeginTransformFeedback"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBindBufferBaseFn = reinterpret_cast<glBindBufferBaseProc>(
get_proc_address("glBindBufferBase"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>(
get_proc_address("glBindBufferRange"));
}
if (ext.b_GL_EXT_blend_func_extended) {
fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>(
get_proc_address("glBindFragDataLocationEXT"));
}
if (ext.b_GL_EXT_blend_func_extended) {
fn.glBindFragDataLocationIndexedFn =
reinterpret_cast<glBindFragDataLocationIndexedProc>(
get_proc_address("glBindFragDataLocationIndexedEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glBindSamplerFn =
reinterpret_cast<glBindSamplerProc>(get_proc_address("glBindSampler"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBindTransformFeedbackFn =
reinterpret_cast<glBindTransformFeedbackProc>(
get_proc_address("glBindTransformFeedback"));
}
if (ext.b_GL_CHROMIUM_bind_uniform_location) {
fn.glBindUniformLocationCHROMIUMFn =
reinterpret_cast<glBindUniformLocationCHROMIUMProc>(
get_proc_address("glBindUniformLocationCHROMIUM"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
get_proc_address("glBindVertexArray"));
} else if (ext.b_GL_OES_vertex_array_object) {
fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
get_proc_address("glBindVertexArrayOES"));
}
if (ext.b_GL_NV_blend_equation_advanced) {
fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
get_proc_address("glBlendBarrierNV"));
} else if (ext.b_GL_KHR_blend_equation_advanced) {
fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
get_proc_address("glBlendBarrierKHR"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glBlendEquationiOESFn = reinterpret_cast<glBlendEquationiOESProc>(
get_proc_address("glBlendEquationiOES"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glBlendEquationSeparateiOESFn =
reinterpret_cast<glBlendEquationSeparateiOESProc>(
get_proc_address("glBlendEquationSeparateiOES"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glBlendFunciOESFn = reinterpret_cast<glBlendFunciOESProc>(
get_proc_address("glBlendFunciOES"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glBlendFuncSeparateiOESFn =
reinterpret_cast<glBlendFuncSeparateiOESProc>(
get_proc_address("glBlendFuncSeparateiOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glBlitFramebufferFn = reinterpret_cast<glBlitFramebufferProc>(
get_proc_address("glBlitFramebuffer"));
} else if (ext.b_GL_NV_framebuffer_blit) {
fn.glBlitFramebufferFn = reinterpret_cast<glBlitFramebufferProc>(
get_proc_address("glBlitFramebufferNV"));
} else if (ext.b_GL_ANGLE_framebuffer_blit) {
fn.glBlitFramebufferFn = reinterpret_cast<glBlitFramebufferProc>(
get_proc_address("glBlitFramebufferANGLE"));
}
if (ext.b_GL_ANGLE_blob_cache) {
fn.glBlobCacheCallbacksANGLEFn =
reinterpret_cast<glBlobCacheCallbacksANGLEProc>(
get_proc_address("glBlobCacheCallbacksANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glClearBufferfiFn = reinterpret_cast<glClearBufferfiProc>(
get_proc_address("glClearBufferfi"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glClearBufferfvFn = reinterpret_cast<glClearBufferfvProc>(
get_proc_address("glClearBufferfv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glClearBufferivFn = reinterpret_cast<glClearBufferivProc>(
get_proc_address("glClearBufferiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glClearBufferuivFn = reinterpret_cast<glClearBufferuivProc>(
get_proc_address("glClearBufferuiv"));
}
if (ext.b_GL_EXT_clear_texture) {
fn.glClearTexImageFn = reinterpret_cast<glClearTexImageProc>(
get_proc_address("glClearTexImageEXT"));
}
if (ext.b_GL_EXT_clear_texture) {
fn.glClearTexSubImageFn = reinterpret_cast<glClearTexSubImageProc>(
get_proc_address("glClearTexSubImage"));
} else if (ext.b_GL_EXT_clear_texture) {
fn.glClearTexSubImageFn = reinterpret_cast<glClearTexSubImageProc>(
get_proc_address("glClearTexSubImageEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glClientWaitSyncFn = reinterpret_cast<glClientWaitSyncProc>(
get_proc_address("glClientWaitSync"));
}
if (ext.b_GL_EXT_clip_control) {
fn.glClipControlEXTFn = reinterpret_cast<glClipControlEXTProc>(
get_proc_address("glClipControlEXT"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glColorMaskiOESFn = reinterpret_cast<glColorMaskiOESProc>(
get_proc_address("glColorMaskiOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glCompressedTexImage3DFn = reinterpret_cast<glCompressedTexImage3DProc>(
get_proc_address("glCompressedTexImage3D"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glCompressedTexSubImage3DFn =
reinterpret_cast<glCompressedTexSubImage3DProc>(
get_proc_address("glCompressedTexSubImage3D"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>(
get_proc_address("glCopyBufferSubData"));
}
if (ext.b_GL_CHROMIUM_copy_texture) {
fn.glCopySubTextureCHROMIUMFn =
reinterpret_cast<glCopySubTextureCHROMIUMProc>(
get_proc_address("glCopySubTextureCHROMIUM"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>(
get_proc_address("glCopyTexSubImage3D"));
}
if (ext.b_GL_CHROMIUM_copy_texture) {
fn.glCopyTextureCHROMIUMFn = reinterpret_cast<glCopyTextureCHROMIUMProc>(
get_proc_address("glCopyTextureCHROMIUM"));
}
if (ext.b_GL_EXT_memory_object) {
fn.glCreateMemoryObjectsEXTFn =
reinterpret_cast<glCreateMemoryObjectsEXTProc>(
get_proc_address("glCreateMemoryObjectsEXT"));
}
if (ext.b_GL_KHR_debug) {
fn.glDebugMessageCallbackKHRFn =
reinterpret_cast<glDebugMessageCallbackKHRProc>(
get_proc_address("glDebugMessageCallbackKHR"));
}
if (ext.b_GL_KHR_debug) {
fn.glDebugMessageControlKHRFn =
reinterpret_cast<glDebugMessageControlKHRProc>(
get_proc_address("glDebugMessageControlKHR"));
}
if (ext.b_GL_KHR_debug) {
fn.glDebugMessageInsertKHRFn =
reinterpret_cast<glDebugMessageInsertKHRProc>(
get_proc_address("glDebugMessageInsertKHR"));
}
if (ext.b_GL_NV_fence) {
fn.glDeleteFencesNVFn = reinterpret_cast<glDeleteFencesNVProc>(
get_proc_address("glDeleteFencesNV"));
}
if (ext.b_GL_EXT_memory_object) {
fn.glDeleteMemoryObjectsEXTFn =
reinterpret_cast<glDeleteMemoryObjectsEXTProc>(
get_proc_address("glDeleteMemoryObjectsEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
get_proc_address("glDeleteQueries"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
get_proc_address("glDeleteQueriesEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glDeleteSamplersFn = reinterpret_cast<glDeleteSamplersProc>(
get_proc_address("glDeleteSamplers"));
}
if (ext.b_GL_EXT_semaphore) {
fn.glDeleteSemaphoresEXTFn = reinterpret_cast<glDeleteSemaphoresEXTProc>(
get_proc_address("glDeleteSemaphoresEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDeleteSyncFn =
reinterpret_cast<glDeleteSyncProc>(get_proc_address("glDeleteSync"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDeleteTransformFeedbacksFn =
reinterpret_cast<glDeleteTransformFeedbacksProc>(
get_proc_address("glDeleteTransformFeedbacks"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDeleteVertexArraysOESFn =
reinterpret_cast<glDeleteVertexArraysOESProc>(
get_proc_address("glDeleteVertexArrays"));
} else if (ext.b_GL_OES_vertex_array_object) {
fn.glDeleteVertexArraysOESFn =
reinterpret_cast<glDeleteVertexArraysOESProc>(
get_proc_address("glDeleteVertexArraysOES"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glDisableiOESFn =
reinterpret_cast<glDisableiOESProc>(get_proc_address("glDisableiOES"));
}
if (ext.b_GL_EXT_discard_framebuffer) {
fn.glDiscardFramebufferEXTFn =
reinterpret_cast<glDiscardFramebufferEXTProc>(
get_proc_address("glDiscardFramebufferEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDrawArraysInstancedANGLEFn =
reinterpret_cast<glDrawArraysInstancedANGLEProc>(
get_proc_address("glDrawArraysInstanced"));
} else if (ext.b_GL_ANGLE_instanced_arrays) {
fn.glDrawArraysInstancedANGLEFn =
reinterpret_cast<glDrawArraysInstancedANGLEProc>(
get_proc_address("glDrawArraysInstancedANGLE"));
}
if (ext.b_GL_EXT_base_instance) {
fn.glDrawArraysInstancedBaseInstanceANGLEFn =
reinterpret_cast<glDrawArraysInstancedBaseInstanceANGLEProc>(
get_proc_address("glDrawArraysInstancedBaseInstanceEXT"));
} else if (ext.b_GL_ANGLE_base_vertex_base_instance) {
fn.glDrawArraysInstancedBaseInstanceANGLEFn =
reinterpret_cast<glDrawArraysInstancedBaseInstanceANGLEProc>(
get_proc_address("glDrawArraysInstancedBaseInstanceANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
get_proc_address("glDrawBuffers"));
} else if (ext.b_GL_EXT_draw_buffers) {
fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
get_proc_address("glDrawBuffersEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDrawElementsInstancedANGLEFn =
reinterpret_cast<glDrawElementsInstancedANGLEProc>(
get_proc_address("glDrawElementsInstanced"));
} else if (ext.b_GL_ANGLE_instanced_arrays) {
fn.glDrawElementsInstancedANGLEFn =
reinterpret_cast<glDrawElementsInstancedANGLEProc>(
get_proc_address("glDrawElementsInstancedANGLE"));
}
if (ext.b_GL_EXT_base_instance) {
fn.glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn = reinterpret_cast<
glDrawElementsInstancedBaseVertexBaseInstanceANGLEProc>(
get_proc_address("glDrawElementsInstancedBaseVertexBaseInstanceEXT"));
} else if (ext.b_GL_ANGLE_base_vertex_base_instance) {
fn.glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn = reinterpret_cast<
glDrawElementsInstancedBaseVertexBaseInstanceANGLEProc>(
get_proc_address("glDrawElementsInstancedBaseVertexBaseInstanceANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glDrawRangeElementsFn = reinterpret_cast<glDrawRangeElementsProc>(
get_proc_address("glDrawRangeElements"));
}
if (ext.b_GL_OES_EGL_image) {
fn.glEGLImageTargetRenderbufferStorageOESFn =
reinterpret_cast<glEGLImageTargetRenderbufferStorageOESProc>(
get_proc_address("glEGLImageTargetRenderbufferStorageOES"));
}
if (ext.b_GL_OES_EGL_image) {
fn.glEGLImageTargetTexture2DOESFn =
reinterpret_cast<glEGLImageTargetTexture2DOESProc>(
get_proc_address("glEGLImageTargetTexture2DOES"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glEnableiOESFn =
reinterpret_cast<glEnableiOESProc>(get_proc_address("glEnableiOES"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glEndPixelLocalStorageANGLEFn =
reinterpret_cast<glEndPixelLocalStorageANGLEProc>(
get_proc_address("glEndPixelLocalStorageANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glEndPixelLocalStorageImplicitANGLEFn =
reinterpret_cast<glEndPixelLocalStorageImplicitANGLEProc>(
get_proc_address("glEndPixelLocalStorageImplicitANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glEndQueryFn =
reinterpret_cast<glEndQueryProc>(get_proc_address("glEndQuery"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glEndQueryFn =
reinterpret_cast<glEndQueryProc>(get_proc_address("glEndQueryEXT"));
}
if (ext.b_GL_QCOM_tiled_rendering) {
fn.glEndTilingQCOMFn = reinterpret_cast<glEndTilingQCOMProc>(
get_proc_address("glEndTilingQCOM"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glEndTransformFeedbackFn = reinterpret_cast<glEndTransformFeedbackProc>(
get_proc_address("glEndTransformFeedback"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glFenceSyncFn =
reinterpret_cast<glFenceSyncProc>(get_proc_address("glFenceSync"));
}
if (ext.b_GL_NV_fence) {
fn.glFinishFenceNVFn = reinterpret_cast<glFinishFenceNVProc>(
get_proc_address("glFinishFenceNV"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glFlushMappedBufferRangeFn =
reinterpret_cast<glFlushMappedBufferRangeProc>(
get_proc_address("glFlushMappedBufferRange"));
} else if (ext.b_GL_EXT_map_buffer_range) {
fn.glFlushMappedBufferRangeFn =
reinterpret_cast<glFlushMappedBufferRangeProc>(
get_proc_address("glFlushMappedBufferRangeEXT"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferMemorylessPixelLocalStorageANGLEFn =
reinterpret_cast<glFramebufferMemorylessPixelLocalStorageANGLEProc>(
get_proc_address("glFramebufferMemorylessPixelLocalStorageANGLE"));
}
if (ext.b_GL_MESA_framebuffer_flip_y) {
fn.glFramebufferParameteriMESAFn =
reinterpret_cast<glFramebufferParameteriMESAProc>(
get_proc_address("glFramebufferParameteriMESA"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferPixelLocalClearValuefvANGLEFn =
reinterpret_cast<glFramebufferPixelLocalClearValuefvANGLEProc>(
get_proc_address("glFramebufferPixelLocalClearValuefvANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferPixelLocalClearValueivANGLEFn =
reinterpret_cast<glFramebufferPixelLocalClearValueivANGLEProc>(
get_proc_address("glFramebufferPixelLocalClearValueivANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferPixelLocalClearValueuivANGLEFn =
reinterpret_cast<glFramebufferPixelLocalClearValueuivANGLEProc>(
get_proc_address("glFramebufferPixelLocalClearValueuivANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferPixelLocalStorageInterruptANGLEFn =
reinterpret_cast<glFramebufferPixelLocalStorageInterruptANGLEProc>(
get_proc_address("glFramebufferPixelLocalStorageInterruptANGLE"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferPixelLocalStorageRestoreANGLEFn =
reinterpret_cast<glFramebufferPixelLocalStorageRestoreANGLEProc>(
get_proc_address("glFramebufferPixelLocalStorageRestoreANGLE"));
}
if (ext.b_GL_EXT_multisampled_render_to_texture) {
fn.glFramebufferTexture2DMultisampleEXTFn =
reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc>(
get_proc_address("glFramebufferTexture2DMultisampleEXT"));
} else if (ext.b_GL_IMG_multisampled_render_to_texture) {
fn.glFramebufferTexture2DMultisampleEXTFn =
reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc>(
get_proc_address("glFramebufferTexture2DMultisampleIMG"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glFramebufferTextureLayerFn =
reinterpret_cast<glFramebufferTextureLayerProc>(
get_proc_address("glFramebufferTextureLayer"));
}
if (ext.b_GL_OVR_multiview || ext.b_GL_OVR_multiview2) {
fn.glFramebufferTextureMultiviewOVRFn =
reinterpret_cast<glFramebufferTextureMultiviewOVRProc>(
get_proc_address("glFramebufferTextureMultiviewOVR"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glFramebufferTexturePixelLocalStorageANGLEFn =
reinterpret_cast<glFramebufferTexturePixelLocalStorageANGLEProc>(
get_proc_address("glFramebufferTexturePixelLocalStorageANGLE"));
}
if (ext.b_GL_NV_fence) {
fn.glGenFencesNVFn =
reinterpret_cast<glGenFencesNVProc>(get_proc_address("glGenFencesNV"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGenQueriesFn =
reinterpret_cast<glGenQueriesProc>(get_proc_address("glGenQueries"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glGenQueriesFn =
reinterpret_cast<glGenQueriesProc>(get_proc_address("glGenQueriesEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glGenSamplersFn =
reinterpret_cast<glGenSamplersProc>(get_proc_address("glGenSamplers"));
}
if (ext.b_GL_EXT_semaphore) {
fn.glGenSemaphoresEXTFn = reinterpret_cast<glGenSemaphoresEXTProc>(
get_proc_address("glGenSemaphoresEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGenTransformFeedbacksFn =
reinterpret_cast<glGenTransformFeedbacksProc>(
get_proc_address("glGenTransformFeedbacks"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
get_proc_address("glGenVertexArrays"));
} else if (ext.b_GL_OES_vertex_array_object) {
fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
get_proc_address("glGenVertexArraysOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetActiveUniformBlockivFn =
reinterpret_cast<glGetActiveUniformBlockivProc>(
get_proc_address("glGetActiveUniformBlockiv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetActiveUniformBlockivRobustANGLEFn =
reinterpret_cast<glGetActiveUniformBlockivRobustANGLEProc>(
get_proc_address("glGetActiveUniformBlockivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetActiveUniformBlockNameFn =
reinterpret_cast<glGetActiveUniformBlockNameProc>(
get_proc_address("glGetActiveUniformBlockName"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetActiveUniformsivFn = reinterpret_cast<glGetActiveUniformsivProc>(
get_proc_address("glGetActiveUniformsiv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetBooleanvRobustANGLEFn =
reinterpret_cast<glGetBooleanvRobustANGLEProc>(
get_proc_address("glGetBooleanvRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetBufferParameteri64vRobustANGLEFn =
reinterpret_cast<glGetBufferParameteri64vRobustANGLEProc>(
get_proc_address("glGetBufferParameteri64vRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetBufferParameterivRobustANGLEFn =
reinterpret_cast<glGetBufferParameterivRobustANGLEProc>(
get_proc_address("glGetBufferParameterivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetBufferPointervRobustANGLEFn =
reinterpret_cast<glGetBufferPointervRobustANGLEProc>(
get_proc_address("glGetBufferPointervRobustANGLE"));
}
if (ext.b_GL_KHR_debug) {
fn.glGetDebugMessageLogKHRFn =
reinterpret_cast<glGetDebugMessageLogKHRProc>(
get_proc_address("glGetDebugMessageLogKHR"));
}
if (ext.b_GL_NV_fence) {
fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>(
get_proc_address("glGetFenceivNV"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetFloatvRobustANGLEFn = reinterpret_cast<glGetFloatvRobustANGLEProc>(
get_proc_address("glGetFloatvRobustANGLE"));
}
if (ext.b_GL_EXT_blend_func_extended) {
fn.glGetFragDataIndexFn = reinterpret_cast<glGetFragDataIndexProc>(
get_proc_address("glGetFragDataIndexEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>(
get_proc_address("glGetFragDataLocation"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetFramebufferAttachmentParameterivRobustANGLEFn =
reinterpret_cast<glGetFramebufferAttachmentParameterivRobustANGLEProc>(
get_proc_address(
"glGetFramebufferAttachmentParameterivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory ||
ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn =
reinterpret_cast<
glGetFramebufferPixelLocalStorageParameterfvRobustANGLEProc>(
get_proc_address(
"glGetFramebufferPixelLocalStorageParameterfvRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory ||
ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn =
reinterpret_cast<
glGetFramebufferPixelLocalStorageParameterivRobustANGLEProc>(
get_proc_address(
"glGetFramebufferPixelLocalStorageParameterivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory ||
ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn =
reinterpret_cast<
glGetFramebufferPixelLocalStorageParameteruivRobustANGLEProc>(
get_proc_address(
"glGetFramebufferPixelLocalStorageParameteruivRobustANGLE"));
}
if (ext.b_GL_KHR_robustness) {
fn.glGetGraphicsResetStatusARBFn =
reinterpret_cast<glGetGraphicsResetStatusARBProc>(
get_proc_address("glGetGraphicsResetStatusKHR"));
} else if (ext.b_GL_EXT_robustness) {
fn.glGetGraphicsResetStatusARBFn =
reinterpret_cast<glGetGraphicsResetStatusARBProc>(
get_proc_address("glGetGraphicsResetStatusEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetInteger64i_vFn = reinterpret_cast<glGetInteger64i_vProc>(
get_proc_address("glGetInteger64i_v"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetInteger64i_vRobustANGLEFn =
reinterpret_cast<glGetInteger64i_vRobustANGLEProc>(
get_proc_address("glGetInteger64i_vRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetInteger64vFn = reinterpret_cast<glGetInteger64vProc>(
get_proc_address("glGetInteger64v"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetInteger64vRobustANGLEFn =
reinterpret_cast<glGetInteger64vRobustANGLEProc>(
get_proc_address("glGetInteger64vRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetIntegeri_vFn = reinterpret_cast<glGetIntegeri_vProc>(
get_proc_address("glGetIntegeri_v"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetIntegeri_vRobustANGLEFn =
reinterpret_cast<glGetIntegeri_vRobustANGLEProc>(
get_proc_address("glGetIntegeri_vRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetIntegervRobustANGLEFn =
reinterpret_cast<glGetIntegervRobustANGLEProc>(
get_proc_address("glGetIntegervRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetInternalformativFn = reinterpret_cast<glGetInternalformativProc>(
get_proc_address("glGetInternalformativ"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetInternalformativRobustANGLEFn =
reinterpret_cast<glGetInternalformativRobustANGLEProc>(
get_proc_address("glGetInternalformativRobustANGLE"));
}
if (ext.b_GL_NV_internalformat_sample_query) {
fn.glGetInternalformatSampleivNVFn =
reinterpret_cast<glGetInternalformatSampleivNVProc>(
get_proc_address("glGetInternalformatSampleivNV"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetMultisamplefvRobustANGLEFn =
reinterpret_cast<glGetMultisamplefvRobustANGLEProc>(
get_proc_address("glGetMultisamplefvRobustANGLE"));
}
if (ext.b_GL_KHR_debug) {
fn.glGetObjectLabelKHRFn = reinterpret_cast<glGetObjectLabelKHRProc>(
get_proc_address("glGetObjectLabelKHR"));
}
if (ext.b_GL_KHR_debug) {
fn.glGetObjectPtrLabelKHRFn = reinterpret_cast<glGetObjectPtrLabelKHRProc>(
get_proc_address("glGetObjectPtrLabelKHR"));
}
if (ext.b_GL_KHR_debug) {
fn.glGetPointervKHRFn = reinterpret_cast<glGetPointervKHRProc>(
get_proc_address("glGetPointervKHR"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
get_proc_address("glGetProgramBinary"));
} else if (ext.b_GL_OES_get_program_binary) {
fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
get_proc_address("glGetProgramBinaryOES"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetProgramivRobustANGLEFn =
reinterpret_cast<glGetProgramivRobustANGLEProc>(
get_proc_address("glGetProgramivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetQueryivFn =
reinterpret_cast<glGetQueryivProc>(get_proc_address("glGetQueryiv"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glGetQueryivFn =
reinterpret_cast<glGetQueryivProc>(get_proc_address("glGetQueryivEXT"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetQueryivRobustANGLEFn =
reinterpret_cast<glGetQueryivRobustANGLEProc>(
get_proc_address("glGetQueryivRobustANGLE"));
}
if (ext.b_GL_EXT_disjoint_timer_query) {
fn.glGetQueryObjecti64vFn = reinterpret_cast<glGetQueryObjecti64vProc>(
get_proc_address("glGetQueryObjecti64vEXT"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetQueryObjecti64vRobustANGLEFn =
reinterpret_cast<glGetQueryObjecti64vRobustANGLEProc>(
get_proc_address("glGetQueryObjecti64vRobustANGLE"));
}
if (ext.b_GL_EXT_disjoint_timer_query) {
fn.glGetQueryObjectivFn = reinterpret_cast<glGetQueryObjectivProc>(
get_proc_address("glGetQueryObjectivEXT"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetQueryObjectivRobustANGLEFn =
reinterpret_cast<glGetQueryObjectivRobustANGLEProc>(
get_proc_address("glGetQueryObjectivRobustANGLE"));
}
if (ext.b_GL_EXT_disjoint_timer_query) {
fn.glGetQueryObjectui64vFn = reinterpret_cast<glGetQueryObjectui64vProc>(
get_proc_address("glGetQueryObjectui64vEXT"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetQueryObjectui64vRobustANGLEFn =
reinterpret_cast<glGetQueryObjectui64vRobustANGLEProc>(
get_proc_address("glGetQueryObjectui64vRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
get_proc_address("glGetQueryObjectuiv"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
get_proc_address("glGetQueryObjectuivEXT"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetQueryObjectuivRobustANGLEFn =
reinterpret_cast<glGetQueryObjectuivRobustANGLEProc>(
get_proc_address("glGetQueryObjectuivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetRenderbufferParameterivRobustANGLEFn =
reinterpret_cast<glGetRenderbufferParameterivRobustANGLEProc>(
get_proc_address("glGetRenderbufferParameterivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glGetSamplerParameterfvFn =
reinterpret_cast<glGetSamplerParameterfvProc>(
get_proc_address("glGetSamplerParameterfv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetSamplerParameterfvRobustANGLEFn =
reinterpret_cast<glGetSamplerParameterfvRobustANGLEProc>(
get_proc_address("glGetSamplerParameterfvRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glGetSamplerParameterivFn =
reinterpret_cast<glGetSamplerParameterivProc>(
get_proc_address("glGetSamplerParameteriv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetSamplerParameterivRobustANGLEFn =
reinterpret_cast<glGetSamplerParameterivRobustANGLEProc>(
get_proc_address("glGetSamplerParameterivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetShaderivRobustANGLEFn =
reinterpret_cast<glGetShaderivRobustANGLEProc>(
get_proc_address("glGetShaderivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetSyncivFn =
reinterpret_cast<glGetSyncivProc>(get_proc_address("glGetSynciv"));
}
if (ext.b_GL_ANGLE_get_tex_level_parameter) {
fn.glGetTexLevelParameterfvANGLEFn =
reinterpret_cast<glGetTexLevelParameterfvANGLEProc>(
get_proc_address("glGetTexLevelParameterfvANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetTexLevelParameterfvRobustANGLEFn =
reinterpret_cast<glGetTexLevelParameterfvRobustANGLEProc>(
get_proc_address("glGetTexLevelParameterfvRobustANGLE"));
}
if (ext.b_GL_ANGLE_get_tex_level_parameter) {
fn.glGetTexLevelParameterivANGLEFn =
reinterpret_cast<glGetTexLevelParameterivANGLEProc>(
get_proc_address("glGetTexLevelParameterivANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetTexLevelParameterivRobustANGLEFn =
reinterpret_cast<glGetTexLevelParameterivRobustANGLEProc>(
get_proc_address("glGetTexLevelParameterivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetTexParameterfvRobustANGLEFn =
reinterpret_cast<glGetTexParameterfvRobustANGLEProc>(
get_proc_address("glGetTexParameterfvRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetTexParameterivRobustANGLEFn =
reinterpret_cast<glGetTexParameterivRobustANGLEProc>(
get_proc_address("glGetTexParameterivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetTransformFeedbackVaryingFn =
reinterpret_cast<glGetTransformFeedbackVaryingProc>(
get_proc_address("glGetTransformFeedbackVarying"));
}
if (ext.b_GL_ANGLE_translated_shader_source) {
fn.glGetTranslatedShaderSourceANGLEFn =
reinterpret_cast<glGetTranslatedShaderSourceANGLEProc>(
get_proc_address("glGetTranslatedShaderSourceANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetUniformBlockIndexFn = reinterpret_cast<glGetUniformBlockIndexProc>(
get_proc_address("glGetUniformBlockIndex"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetUniformfvRobustANGLEFn =
reinterpret_cast<glGetUniformfvRobustANGLEProc>(
get_proc_address("glGetUniformfvRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetUniformIndicesFn = reinterpret_cast<glGetUniformIndicesProc>(
get_proc_address("glGetUniformIndices"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetUniformivRobustANGLEFn =
reinterpret_cast<glGetUniformivRobustANGLEProc>(
get_proc_address("glGetUniformivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glGetUniformuivFn = reinterpret_cast<glGetUniformuivProc>(
get_proc_address("glGetUniformuiv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetUniformuivRobustANGLEFn =
reinterpret_cast<glGetUniformuivRobustANGLEProc>(
get_proc_address("glGetUniformuivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetVertexAttribfvRobustANGLEFn =
reinterpret_cast<glGetVertexAttribfvRobustANGLEProc>(
get_proc_address("glGetVertexAttribfvRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetVertexAttribIivRobustANGLEFn =
reinterpret_cast<glGetVertexAttribIivRobustANGLEProc>(
get_proc_address("glGetVertexAttribIivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetVertexAttribIuivRobustANGLEFn =
reinterpret_cast<glGetVertexAttribIuivRobustANGLEProc>(
get_proc_address("glGetVertexAttribIuivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetVertexAttribivRobustANGLEFn =
reinterpret_cast<glGetVertexAttribivRobustANGLEProc>(
get_proc_address("glGetVertexAttribivRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glGetVertexAttribPointervRobustANGLEFn =
reinterpret_cast<glGetVertexAttribPointervRobustANGLEProc>(
get_proc_address("glGetVertexAttribPointervRobustANGLE"));
}
if (ext.b_GL_EXT_memory_object_fd) {
fn.glImportMemoryFdEXTFn = reinterpret_cast<glImportMemoryFdEXTProc>(
get_proc_address("glImportMemoryFdEXT"));
}
if (ext.b_GL_EXT_memory_object_win32) {
fn.glImportMemoryWin32HandleEXTFn =
reinterpret_cast<glImportMemoryWin32HandleEXTProc>(
get_proc_address("glImportMemoryWin32HandleEXT"));
}
if (ext.b_GL_ANGLE_memory_object_fuchsia) {
fn.glImportMemoryZirconHandleANGLEFn =
reinterpret_cast<glImportMemoryZirconHandleANGLEProc>(
get_proc_address("glImportMemoryZirconHandleANGLE"));
}
if (ext.b_GL_EXT_semaphore_fd) {
fn.glImportSemaphoreFdEXTFn = reinterpret_cast<glImportSemaphoreFdEXTProc>(
get_proc_address("glImportSemaphoreFdEXT"));
}
if (ext.b_GL_EXT_semaphore_win32) {
fn.glImportSemaphoreWin32HandleEXTFn =
reinterpret_cast<glImportSemaphoreWin32HandleEXTProc>(
get_proc_address("glImportSemaphoreWin32HandleEXT"));
}
if (ext.b_GL_ANGLE_semaphore_fuchsia) {
fn.glImportSemaphoreZirconHandleANGLEFn =
reinterpret_cast<glImportSemaphoreZirconHandleANGLEProc>(
get_proc_address("glImportSemaphoreZirconHandleANGLE"));
}
if (ext.b_GL_EXT_debug_marker) {
fn.glInsertEventMarkerEXTFn = reinterpret_cast<glInsertEventMarkerEXTProc>(
get_proc_address("glInsertEventMarkerEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glInvalidateFramebufferFn =
reinterpret_cast<glInvalidateFramebufferProc>(
get_proc_address("glInvalidateFramebuffer"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glInvalidateSubFramebufferFn =
reinterpret_cast<glInvalidateSubFramebufferProc>(
get_proc_address("glInvalidateSubFramebuffer"));
}
if (ext.b_GL_ANGLE_texture_external_update) {
fn.glInvalidateTextureANGLEFn =
reinterpret_cast<glInvalidateTextureANGLEProc>(
get_proc_address("glInvalidateTextureANGLE"));
}
if (ext.b_GL_OES_draw_buffers_indexed) {
fn.glIsEnablediOESFn = reinterpret_cast<glIsEnablediOESProc>(
get_proc_address("glIsEnablediOES"));
}
if (ext.b_GL_NV_fence) {
fn.glIsFenceNVFn =
reinterpret_cast<glIsFenceNVProc>(get_proc_address("glIsFenceNV"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glIsQueryFn =
reinterpret_cast<glIsQueryProc>(get_proc_address("glIsQuery"));
} else if (ext.b_GL_EXT_disjoint_timer_query ||
ext.b_GL_EXT_occlusion_query_boolean) {
fn.glIsQueryFn =
reinterpret_cast<glIsQueryProc>(get_proc_address("glIsQueryEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glIsSamplerFn =
reinterpret_cast<glIsSamplerProc>(get_proc_address("glIsSampler"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glIsSyncFn =
reinterpret_cast<glIsSyncProc>(get_proc_address("glIsSync"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glIsTransformFeedbackFn = reinterpret_cast<glIsTransformFeedbackProc>(
get_proc_address("glIsTransformFeedback"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
get_proc_address("glIsVertexArray"));
} else if (ext.b_GL_OES_vertex_array_object) {
fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
get_proc_address("glIsVertexArrayOES"));
}
if (ext.b_GL_OES_mapbuffer) {
fn.glMapBufferFn =
reinterpret_cast<glMapBufferProc>(get_proc_address("glMapBufferOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
get_proc_address("glMapBufferRange"));
} else if (ext.b_GL_EXT_map_buffer_range) {
fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
get_proc_address("glMapBufferRangeEXT"));
}
if (ext.b_GL_KHR_parallel_shader_compile) {
fn.glMaxShaderCompilerThreadsKHRFn =
reinterpret_cast<glMaxShaderCompilerThreadsKHRProc>(
get_proc_address("glMaxShaderCompilerThreadsKHR"));
}
if (ext.b_GL_EXT_memory_object) {
fn.glMemoryObjectParameterivEXTFn =
reinterpret_cast<glMemoryObjectParameterivEXTProc>(
get_proc_address("glMemoryObjectParameterivEXT"));
}
if (ext.b_GL_ANGLE_multi_draw) {
fn.glMultiDrawArraysANGLEFn = reinterpret_cast<glMultiDrawArraysANGLEProc>(
get_proc_address("glMultiDrawArraysANGLE"));
}
if (ext.b_GL_ANGLE_multi_draw) {
fn.glMultiDrawArraysInstancedANGLEFn =
reinterpret_cast<glMultiDrawArraysInstancedANGLEProc>(
get_proc_address("glMultiDrawArraysInstancedANGLE"));
}
if (ext.b_GL_ANGLE_base_vertex_base_instance) {
fn.glMultiDrawArraysInstancedBaseInstanceANGLEFn =
reinterpret_cast<glMultiDrawArraysInstancedBaseInstanceANGLEProc>(
get_proc_address("glMultiDrawArraysInstancedBaseInstanceANGLE"));
}
if (ext.b_GL_ANGLE_multi_draw) {
fn.glMultiDrawElementsANGLEFn =
reinterpret_cast<glMultiDrawElementsANGLEProc>(
get_proc_address("glMultiDrawElementsANGLE"));
}
if (ext.b_GL_ANGLE_multi_draw) {
fn.glMultiDrawElementsInstancedANGLEFn =
reinterpret_cast<glMultiDrawElementsInstancedANGLEProc>(
get_proc_address("glMultiDrawElementsInstancedANGLE"));
}
if (ext.b_GL_ANGLE_base_vertex_base_instance) {
fn.glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn =
reinterpret_cast<
glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEProc>(
get_proc_address(
"glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE"));
}
if (ext.b_GL_KHR_debug) {
fn.glObjectLabelKHRFn = reinterpret_cast<glObjectLabelKHRProc>(
get_proc_address("glObjectLabelKHR"));
}
if (ext.b_GL_KHR_debug) {
fn.glObjectPtrLabelKHRFn = reinterpret_cast<glObjectPtrLabelKHRProc>(
get_proc_address("glObjectPtrLabelKHR"));
}
if (ext.b_GL_OES_tessellation_shader) {
fn.glPatchParameteriOESFn = reinterpret_cast<glPatchParameteriOESProc>(
get_proc_address("glPatchParameteriOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glPauseTransformFeedbackFn =
reinterpret_cast<glPauseTransformFeedbackProc>(
get_proc_address("glPauseTransformFeedback"));
}
if (ext.b_GL_ANGLE_shader_pixel_local_storage) {
fn.glPixelLocalStorageBarrierANGLEFn =
reinterpret_cast<glPixelLocalStorageBarrierANGLEProc>(
get_proc_address("glPixelLocalStorageBarrierANGLE"));
}
if (ext.b_GL_ANGLE_polygon_mode) {
fn.glPolygonModeANGLEFn = reinterpret_cast<glPolygonModeANGLEProc>(
get_proc_address("glPolygonModeANGLE"));
}
if (ext.b_GL_EXT_polygon_offset_clamp) {
fn.glPolygonOffsetClampEXTFn =
reinterpret_cast<glPolygonOffsetClampEXTProc>(
get_proc_address("glPolygonOffsetClampEXT"));
}
if (ext.b_GL_KHR_debug) {
fn.glPopDebugGroupKHRFn = reinterpret_cast<glPopDebugGroupKHRProc>(
get_proc_address("glPopDebugGroupKHR"));
}
if (ext.b_GL_EXT_debug_marker) {
fn.glPopGroupMarkerEXTFn = reinterpret_cast<glPopGroupMarkerEXTProc>(
get_proc_address("glPopGroupMarkerEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
get_proc_address("glProgramBinary"));
} else if (ext.b_GL_OES_get_program_binary) {
fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
get_proc_address("glProgramBinaryOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glProgramParameteriFn = reinterpret_cast<glProgramParameteriProc>(
get_proc_address("glProgramParameteri"));
}
if (ext.b_GL_ANGLE_provoking_vertex) {
fn.glProvokingVertexANGLEFn = reinterpret_cast<glProvokingVertexANGLEProc>(
get_proc_address("glProvokingVertexANGLE"));
}
if (ext.b_GL_KHR_debug) {
fn.glPushDebugGroupKHRFn = reinterpret_cast<glPushDebugGroupKHRProc>(
get_proc_address("glPushDebugGroupKHR"));
}
if (ext.b_GL_EXT_debug_marker) {
fn.glPushGroupMarkerEXTFn = reinterpret_cast<glPushGroupMarkerEXTProc>(
get_proc_address("glPushGroupMarkerEXT"));
}
if (ext.b_GL_EXT_disjoint_timer_query) {
fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>(
get_proc_address("glQueryCounterEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glReadBufferFn =
reinterpret_cast<glReadBufferProc>(get_proc_address("glReadBuffer"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glReadPixelsRobustANGLEFn =
reinterpret_cast<glReadPixelsRobustANGLEProc>(
get_proc_address("glReadPixelsRobustANGLE"));
}
if (ext.b_GL_ANGLE_vulkan_image) {
fn.glReleaseTexturesANGLEFn = reinterpret_cast<glReleaseTexturesANGLEProc>(
get_proc_address("glReleaseTexturesANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glRenderbufferStorageMultisampleFn =
reinterpret_cast<glRenderbufferStorageMultisampleProc>(
get_proc_address("glRenderbufferStorageMultisample"));
} else if (ext.b_GL_ANGLE_framebuffer_multisample) {
fn.glRenderbufferStorageMultisampleFn =
reinterpret_cast<glRenderbufferStorageMultisampleProc>(
get_proc_address("glRenderbufferStorageMultisampleANGLE"));
} else if (ext.b_GL_EXT_framebuffer_multisample) {
fn.glRenderbufferStorageMultisampleFn =
reinterpret_cast<glRenderbufferStorageMultisampleProc>(
get_proc_address("glRenderbufferStorageMultisampleEXT"));
}
if (ext.b_GL_AMD_framebuffer_multisample_advanced) {
fn.glRenderbufferStorageMultisampleAdvancedAMDFn =
reinterpret_cast<glRenderbufferStorageMultisampleAdvancedAMDProc>(
get_proc_address("glRenderbufferStorageMultisampleAdvancedAMD"));
}
if (ext.b_GL_EXT_multisampled_render_to_texture) {
fn.glRenderbufferStorageMultisampleEXTFn =
reinterpret_cast<glRenderbufferStorageMultisampleEXTProc>(
get_proc_address("glRenderbufferStorageMultisampleEXT"));
} else if (ext.b_GL_IMG_multisampled_render_to_texture) {
fn.glRenderbufferStorageMultisampleEXTFn =
reinterpret_cast<glRenderbufferStorageMultisampleEXTProc>(
get_proc_address("glRenderbufferStorageMultisampleIMG"));
}
if (ext.b_GL_ANGLE_request_extension) {
fn.glRequestExtensionANGLEFn =
reinterpret_cast<glRequestExtensionANGLEProc>(
get_proc_address("glRequestExtensionANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glResumeTransformFeedbackFn =
reinterpret_cast<glResumeTransformFeedbackProc>(
get_proc_address("glResumeTransformFeedback"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glSamplerParameterfFn = reinterpret_cast<glSamplerParameterfProc>(
get_proc_address("glSamplerParameterf"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glSamplerParameterfvFn = reinterpret_cast<glSamplerParameterfvProc>(
get_proc_address("glSamplerParameterfv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glSamplerParameterfvRobustANGLEFn =
reinterpret_cast<glSamplerParameterfvRobustANGLEProc>(
get_proc_address("glSamplerParameterfvRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glSamplerParameteriFn = reinterpret_cast<glSamplerParameteriProc>(
get_proc_address("glSamplerParameteri"));
}
if (ver->IsAtLeastGLES(3u, 0u) || ext.b_GL_MESA_sampler_objects) {
fn.glSamplerParameterivFn = reinterpret_cast<glSamplerParameterivProc>(
get_proc_address("glSamplerParameteriv"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glSamplerParameterivRobustANGLEFn =
reinterpret_cast<glSamplerParameterivRobustANGLEProc>(
get_proc_address("glSamplerParameterivRobustANGLE"));
}
if (ext.b_GL_NV_fence) {
fn.glSetFenceNVFn =
reinterpret_cast<glSetFenceNVProc>(get_proc_address("glSetFenceNV"));
}
if (ext.b_GL_EXT_semaphore) {
fn.glSignalSemaphoreEXTFn = reinterpret_cast<glSignalSemaphoreEXTProc>(
get_proc_address("glSignalSemaphoreEXT"));
}
if (ext.b_GL_QCOM_tiled_rendering) {
fn.glStartTilingQCOMFn = reinterpret_cast<glStartTilingQCOMProc>(
get_proc_address("glStartTilingQCOM"));
}
if (ext.b_GL_NV_fence) {
fn.glTestFenceNVFn =
reinterpret_cast<glTestFenceNVProc>(get_proc_address("glTestFenceNV"));
}
if (ext.b_GL_OES_texture_buffer) {
fn.glTexBufferOESFn = reinterpret_cast<glTexBufferOESProc>(
get_proc_address("glTexBufferOES"));
} else if (ext.b_GL_EXT_texture_buffer) {
fn.glTexBufferOESFn = reinterpret_cast<glTexBufferOESProc>(
get_proc_address("glTexBufferEXT"));
}
if (ext.b_GL_OES_texture_buffer) {
fn.glTexBufferRangeOESFn = reinterpret_cast<glTexBufferRangeOESProc>(
get_proc_address("glTexBufferRangeOES"));
} else if (ext.b_GL_EXT_texture_buffer) {
fn.glTexBufferRangeOESFn = reinterpret_cast<glTexBufferRangeOESProc>(
get_proc_address("glTexBufferRangeEXT"));
}
if (ext.b_GL_ANGLE_texture_external_update) {
fn.glTexImage2DExternalANGLEFn =
reinterpret_cast<glTexImage2DExternalANGLEProc>(
get_proc_address("glTexImage2DExternalANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexImage2DRobustANGLEFn =
reinterpret_cast<glTexImage2DRobustANGLEProc>(
get_proc_address("glTexImage2DRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glTexImage3DFn =
reinterpret_cast<glTexImage3DProc>(get_proc_address("glTexImage3D"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexImage3DRobustANGLEFn =
reinterpret_cast<glTexImage3DRobustANGLEProc>(
get_proc_address("glTexImage3DRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexParameterfvRobustANGLEFn =
reinterpret_cast<glTexParameterfvRobustANGLEProc>(
get_proc_address("glTexParameterfvRobustANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexParameterivRobustANGLEFn =
reinterpret_cast<glTexParameterivRobustANGLEProc>(
get_proc_address("glTexParameterivRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
get_proc_address("glTexStorage2D"));
} else if (ext.b_GL_EXT_texture_storage) {
fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
get_proc_address("glTexStorage2DEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glTexStorage3DFn = reinterpret_cast<glTexStorage3DProc>(
get_proc_address("glTexStorage3D"));
}
if (ext.b_GL_EXT_memory_object) {
fn.glTexStorageMem2DEXTFn = reinterpret_cast<glTexStorageMem2DEXTProc>(
get_proc_address("glTexStorageMem2DEXT"));
}
if (ext.b_GL_ANGLE_memory_object_flags) {
fn.glTexStorageMemFlags2DANGLEFn =
reinterpret_cast<glTexStorageMemFlags2DANGLEProc>(
get_proc_address("glTexStorageMemFlags2DANGLE"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexSubImage2DRobustANGLEFn =
reinterpret_cast<glTexSubImage2DRobustANGLEProc>(
get_proc_address("glTexSubImage2DRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glTexSubImage3DFn = reinterpret_cast<glTexSubImage3DProc>(
get_proc_address("glTexSubImage3D"));
}
if (ext.b_GL_ANGLE_robust_client_memory) {
fn.glTexSubImage3DRobustANGLEFn =
reinterpret_cast<glTexSubImage3DRobustANGLEProc>(
get_proc_address("glTexSubImage3DRobustANGLE"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glTransformFeedbackVaryingsFn =
reinterpret_cast<glTransformFeedbackVaryingsProc>(
get_proc_address("glTransformFeedbackVaryings"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform1uiFn =
reinterpret_cast<glUniform1uiProc>(get_proc_address("glUniform1ui"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform1uivFn =
reinterpret_cast<glUniform1uivProc>(get_proc_address("glUniform1uiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform2uiFn =
reinterpret_cast<glUniform2uiProc>(get_proc_address("glUniform2ui"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform2uivFn =
reinterpret_cast<glUniform2uivProc>(get_proc_address("glUniform2uiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform3uiFn =
reinterpret_cast<glUniform3uiProc>(get_proc_address("glUniform3ui"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform3uivFn =
reinterpret_cast<glUniform3uivProc>(get_proc_address("glUniform3uiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform4uiFn =
reinterpret_cast<glUniform4uiProc>(get_proc_address("glUniform4ui"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniform4uivFn =
reinterpret_cast<glUniform4uivProc>(get_proc_address("glUniform4uiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformBlockBindingFn = reinterpret_cast<glUniformBlockBindingProc>(
get_proc_address("glUniformBlockBinding"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix2x3fvFn = reinterpret_cast<glUniformMatrix2x3fvProc>(
get_proc_address("glUniformMatrix2x3fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix2x4fvFn = reinterpret_cast<glUniformMatrix2x4fvProc>(
get_proc_address("glUniformMatrix2x4fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix3x2fvFn = reinterpret_cast<glUniformMatrix3x2fvProc>(
get_proc_address("glUniformMatrix3x2fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix3x4fvFn = reinterpret_cast<glUniformMatrix3x4fvProc>(
get_proc_address("glUniformMatrix3x4fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix4x2fvFn = reinterpret_cast<glUniformMatrix4x2fvProc>(
get_proc_address("glUniformMatrix4x2fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUniformMatrix4x3fvFn = reinterpret_cast<glUniformMatrix4x3fvProc>(
get_proc_address("glUniformMatrix4x3fv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glUnmapBufferFn =
reinterpret_cast<glUnmapBufferProc>(get_proc_address("glUnmapBuffer"));
} else if (ext.b_GL_OES_mapbuffer) {
fn.glUnmapBufferFn = reinterpret_cast<glUnmapBufferProc>(
get_proc_address("glUnmapBufferOES"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribDivisorANGLEFn =
reinterpret_cast<glVertexAttribDivisorANGLEProc>(
get_proc_address("glVertexAttribDivisor"));
} else if (ext.b_GL_ANGLE_instanced_arrays) {
fn.glVertexAttribDivisorANGLEFn =
reinterpret_cast<glVertexAttribDivisorANGLEProc>(
get_proc_address("glVertexAttribDivisorANGLE"));
} else if (ext.b_GL_EXT_instanced_arrays) {
fn.glVertexAttribDivisorANGLEFn =
reinterpret_cast<glVertexAttribDivisorANGLEProc>(
get_proc_address("glVertexAttribDivisorEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribI4iFn = reinterpret_cast<glVertexAttribI4iProc>(
get_proc_address("glVertexAttribI4i"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribI4ivFn = reinterpret_cast<glVertexAttribI4ivProc>(
get_proc_address("glVertexAttribI4iv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribI4uiFn = reinterpret_cast<glVertexAttribI4uiProc>(
get_proc_address("glVertexAttribI4ui"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribI4uivFn = reinterpret_cast<glVertexAttribI4uivProc>(
get_proc_address("glVertexAttribI4uiv"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glVertexAttribIPointerFn = reinterpret_cast<glVertexAttribIPointerProc>(
get_proc_address("glVertexAttribIPointer"));
}
if (ext.b_GL_EXT_semaphore) {
fn.glWaitSemaphoreEXTFn = reinterpret_cast<glWaitSemaphoreEXTProc>(
get_proc_address("glWaitSemaphoreEXT"));
}
if (ver->IsAtLeastGLES(3u, 0u)) {
fn.glWaitSyncFn =
reinterpret_cast<glWaitSyncProc>(get_proc_address("glWaitSync"));
}
if (ext.b_GL_EXT_window_rectangles) {
fn.glWindowRectanglesEXTFn = reinterpret_cast<glWindowRectanglesEXTProc>(
get_proc_address("glWindowRectanglesEXT"));
}
}
void DriverGL::ClearBindings() {
*this = {};
}
void GLApiBase::glAcquireTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
const GLenum* layouts) {
driver_->fn.glAcquireTexturesANGLEFn(numTextures, textures, layouts);
}
void GLApiBase::glActiveTextureFn(GLenum texture) {
driver_->fn.glActiveTextureFn(texture);
}
void GLApiBase::glAttachShaderFn(GLuint program, GLuint shader) {
driver_->fn.glAttachShaderFn(program, shader);
}
void GLApiBase::glBeginPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* loadops) {
driver_->fn.glBeginPixelLocalStorageANGLEFn(n, loadops);
}
void GLApiBase::glBeginQueryFn(GLenum target, GLuint id) {
driver_->fn.glBeginQueryFn(target, id);
}
void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode) {
driver_->fn.glBeginTransformFeedbackFn(primitiveMode);
}
void GLApiBase::glBindAttribLocationFn(GLuint program,
GLuint index,
const char* name) {
driver_->fn.glBindAttribLocationFn(program, index, name);
}
void GLApiBase::glBindBufferFn(GLenum target, GLuint buffer) {
driver_->fn.glBindBufferFn(target, buffer);
}
void GLApiBase::glBindBufferBaseFn(GLenum target, GLuint index, GLuint buffer) {
driver_->fn.glBindBufferBaseFn(target, index, buffer);
}
void GLApiBase::glBindBufferRangeFn(GLenum target,
GLuint index,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
driver_->fn.glBindBufferRangeFn(target, index, buffer, offset, size);
}
void GLApiBase::glBindFragDataLocationFn(GLuint program,
GLuint colorNumber,
const char* name) {
driver_->fn.glBindFragDataLocationFn(program, colorNumber, name);
}
void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program,
GLuint colorNumber,
GLuint index,
const char* name) {
driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index,
name);
}
void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
driver_->fn.glBindFramebufferEXTFn(target, framebuffer);
}
void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer);
}
void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) {
driver_->fn.glBindSamplerFn(unit, sampler);
}
void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) {
driver_->fn.glBindTextureFn(target, texture);
}
void GLApiBase::glBindTransformFeedbackFn(GLenum target, GLuint id) {
driver_->fn.glBindTransformFeedbackFn(target, id);
}
void GLApiBase::glBindUniformLocationCHROMIUMFn(GLuint program,
GLint location,
const char* name) {
driver_->fn.glBindUniformLocationCHROMIUMFn(program, location, name);
}
void GLApiBase::glBindVertexArrayOESFn(GLuint array) {
driver_->fn.glBindVertexArrayOESFn(array);
}
void GLApiBase::glBlendBarrierKHRFn(void) {
driver_->fn.glBlendBarrierKHRFn();
}
void GLApiBase::glBlendColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
driver_->fn.glBlendColorFn(red, green, blue, alpha);
}
void GLApiBase::glBlendEquationFn(GLenum mode) {
driver_->fn.glBlendEquationFn(mode);
}
void GLApiBase::glBlendEquationiOESFn(GLuint buf, GLenum mode) {
driver_->fn.glBlendEquationiOESFn(buf, mode);
}
void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
driver_->fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
}
void GLApiBase::glBlendEquationSeparateiOESFn(GLuint buf,
GLenum modeRGB,
GLenum modeAlpha) {
driver_->fn.glBlendEquationSeparateiOESFn(buf, modeRGB, modeAlpha);
}
void GLApiBase::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
driver_->fn.glBlendFuncFn(sfactor, dfactor);
}
void GLApiBase::glBlendFunciOESFn(GLuint buf, GLenum sfactor, GLenum dfactor) {
driver_->fn.glBlendFunciOESFn(buf, sfactor, dfactor);
}
void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
driver_->fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void GLApiBase::glBlendFuncSeparateiOESFn(GLuint buf,
GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
driver_->fn.glBlendFuncSeparateiOESFn(buf, srcRGB, dstRGB, srcAlpha,
dstAlpha);
}
void GLApiBase::glBlitFramebufferFn(GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter) {
driver_->fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
dstX1, dstY1, mask, filter);
}
void GLApiBase::glBlobCacheCallbacksANGLEFn(GLSETBLOBPROCANGLE set,
GLGETBLOBPROCANGLE get,
const void* userData) {
driver_->fn.glBlobCacheCallbacksANGLEFn(set, get, userData);
}
void GLApiBase::glBufferDataFn(GLenum target,
GLsizeiptr size,
const void* data,
GLenum usage) {
driver_->fn.glBufferDataFn(target, size, data, usage);
}
void GLApiBase::glBufferSubDataFn(GLenum target,
GLintptr offset,
GLsizeiptr size,
const void* data) {
driver_->fn.glBufferSubDataFn(target, offset, size, data);
}
GLenum GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target) {
return driver_->fn.glCheckFramebufferStatusEXTFn(target);
}
void GLApiBase::glClearFn(GLbitfield mask) {
driver_->fn.glClearFn(mask);
}
void GLApiBase::glClearBufferfiFn(GLenum buffer,
GLint drawbuffer,
const GLfloat depth,
GLint stencil) {
driver_->fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
}
void GLApiBase::glClearBufferfvFn(GLenum buffer,
GLint drawbuffer,
const GLfloat* value) {
driver_->fn.glClearBufferfvFn(buffer, drawbuffer, value);
}
void GLApiBase::glClearBufferivFn(GLenum buffer,
GLint drawbuffer,
const GLint* value) {
driver_->fn.glClearBufferivFn(buffer, drawbuffer, value);
}
void GLApiBase::glClearBufferuivFn(GLenum buffer,
GLint drawbuffer,
const GLuint* value) {
driver_->fn.glClearBufferuivFn(buffer, drawbuffer, value);
}
void GLApiBase::glClearColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
driver_->fn.glClearColorFn(red, green, blue, alpha);
}
void GLApiBase::glClearDepthFn(GLclampd depth) {
driver_->fn.glClearDepthFn(depth);
}
void GLApiBase::glClearDepthfFn(GLclampf depth) {
driver_->fn.glClearDepthfFn(depth);
}
void GLApiBase::glClearStencilFn(GLint s) {
driver_->fn.glClearStencilFn(s);
}
void GLApiBase::glClearTexImageFn(GLuint texture,
GLint level,
GLenum format,
GLenum type,
const GLvoid* data) {
driver_->fn.glClearTexImageFn(texture, level, format, type, data);
}
void GLApiBase::glClearTexSubImageFn(GLuint texture,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint width,
GLint height,
GLint depth,
GLenum format,
GLenum type,
const GLvoid* data) {
driver_->fn.glClearTexSubImageFn(texture, level, xoffset, yoffset, zoffset,
width, height, depth, format, type, data);
}
GLenum GLApiBase::glClientWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) {
return driver_->fn.glClientWaitSyncFn(sync, flags, timeout);
}
void GLApiBase::glClipControlEXTFn(GLenum origin, GLenum depth) {
driver_->fn.glClipControlEXTFn(origin, depth);
}
void GLApiBase::glColorMaskFn(GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
driver_->fn.glColorMaskFn(red, green, blue, alpha);
}
void GLApiBase::glColorMaskiOESFn(GLuint buf,
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
driver_->fn.glColorMaskiOESFn(buf, red, green, blue, alpha);
}
void GLApiBase::glCompileShaderFn(GLuint shader) {
driver_->fn.glCompileShaderFn(shader);
}
void GLApiBase::glCompressedTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLsizei imageSize,
const void* data) {
driver_->fn.glCompressedTexImage2DFn(target, level, internalformat, width,
height, border, imageSize, data);
}
void GLApiBase::glCompressedTexImage3DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLsizei imageSize,
const void* data) {
driver_->fn.glCompressedTexImage3DFn(target, level, internalformat, width,
height, depth, border, imageSize, data);
}
void GLApiBase::glCompressedTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLsizei imageSize,
const void* data) {
driver_->fn.glCompressedTexSubImage2DFn(
target, level, xoffset, yoffset, width, height, format, imageSize, data);
}
void GLApiBase::glCompressedTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLsizei imageSize,
const void* data) {
driver_->fn.glCompressedTexSubImage3DFn(target, level, xoffset, yoffset,
zoffset, width, height, depth, format,
imageSize, data);
}
void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget,
GLenum writeTarget,
GLintptr readOffset,
GLintptr writeOffset,
GLsizeiptr size) {
driver_->fn.glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
writeOffset, size);
}
void GLApiBase::glCopySubTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
driver_->fn.glCopySubTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, xoffset, yoffset, x,
y, width, height, unpackFlipY, unpackPremultiplyAlpha,
unpackUnmultiplyAlpha);
}
void GLApiBase::glCopyTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border) {
driver_->fn.glCopyTexImage2DFn(target, level, internalformat, x, y, width,
height, border);
}
void GLApiBase::glCopyTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
driver_->fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y,
width, height);
}
void GLApiBase::glCopyTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x,
y, width, height);
}
void GLApiBase::glCopyTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint internalFormat,
GLenum destType,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
driver_->fn.glCopyTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, internalFormat,
destType, unpackFlipY, unpackPremultiplyAlpha, unpackUnmultiplyAlpha);
}
void GLApiBase::glCreateMemoryObjectsEXTFn(GLsizei n, GLuint* memoryObjects) {
driver_->fn.glCreateMemoryObjectsEXTFn(n, memoryObjects);
}
GLuint GLApiBase::glCreateProgramFn(void) {
return driver_->fn.glCreateProgramFn();
}
GLuint GLApiBase::glCreateShaderFn(GLenum type) {
return driver_->fn.glCreateShaderFn(type);
}
void GLApiBase::glCullFaceFn(GLenum mode) {
driver_->fn.glCullFaceFn(mode);
}
void GLApiBase::glDebugMessageCallbackKHRFn(GLDEBUGPROC callback,
const void* userParam) {
driver_->fn.glDebugMessageCallbackKHRFn(callback, userParam);
}
void GLApiBase::glDebugMessageControlKHRFn(GLenum source,
GLenum type,
GLenum severity,
GLsizei count,
const GLuint* ids,
GLboolean enabled) {
driver_->fn.glDebugMessageControlKHRFn(source, type, severity, count, ids,
enabled);
}
void GLApiBase::glDebugMessageInsertKHRFn(GLenum source,
GLenum type,
GLuint id,
GLenum severity,
GLsizei length,
const char* buf) {
driver_->fn.glDebugMessageInsertKHRFn(source, type, id, severity, length,
buf);
}
void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
driver_->fn.glDeleteBuffersARBFn(n, buffers);
}
void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
driver_->fn.glDeleteFencesNVFn(n, fences);
}
void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n,
const GLuint* framebuffers) {
driver_->fn.glDeleteFramebuffersEXTFn(n, framebuffers);
}
void GLApiBase::glDeleteMemoryObjectsEXTFn(GLsizei n,
const GLuint* memoryObjects) {
driver_->fn.glDeleteMemoryObjectsEXTFn(n, memoryObjects);
}
void GLApiBase::glDeleteProgramFn(GLuint program) {
driver_->fn.glDeleteProgramFn(program);
}
void GLApiBase::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
driver_->fn.glDeleteQueriesFn(n, ids);
}
void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n,
const GLuint* renderbuffers) {
driver_->fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
}
void GLApiBase::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
driver_->fn.glDeleteSamplersFn(n, samplers);
}
void GLApiBase::glDeleteSemaphoresEXTFn(GLsizei n, const GLuint* semaphores) {
driver_->fn.glDeleteSemaphoresEXTFn(n, semaphores);
}
void GLApiBase::glDeleteShaderFn(GLuint shader) {
driver_->fn.glDeleteShaderFn(shader);
}
void GLApiBase::glDeleteSyncFn(GLsync sync) {
driver_->fn.glDeleteSyncFn(sync);
}
void GLApiBase::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
driver_->fn.glDeleteTexturesFn(n, textures);
}
void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
driver_->fn.glDeleteTransformFeedbacksFn(n, ids);
}
void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
driver_->fn.glDeleteVertexArraysOESFn(n, arrays);
}
void GLApiBase::glDepthFuncFn(GLenum func) {
driver_->fn.glDepthFuncFn(func);
}
void GLApiBase::glDepthMaskFn(GLboolean flag) {
driver_->fn.glDepthMaskFn(flag);
}
void GLApiBase::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
driver_->fn.glDepthRangeFn(zNear, zFar);
}
void GLApiBase::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
driver_->fn.glDepthRangefFn(zNear, zFar);
}
void GLApiBase::glDetachShaderFn(GLuint program, GLuint shader) {
driver_->fn.glDetachShaderFn(program, shader);
}
void GLApiBase::glDisableFn(GLenum cap) {
driver_->fn.glDisableFn(cap);
}
void GLApiBase::glDisableiOESFn(GLenum target, GLuint index) {
driver_->fn.glDisableiOESFn(target, index);
}
void GLApiBase::glDisableVertexAttribArrayFn(GLuint index) {
driver_->fn.glDisableVertexAttribArrayFn(index);
}
void GLApiBase::glDiscardFramebufferEXTFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
driver_->fn.glDiscardFramebufferEXTFn(target, numAttachments, attachments);
}
void GLApiBase::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
driver_->fn.glDrawArraysFn(mode, first, count);
}
void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount) {
driver_->fn.glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
}
void GLApiBase::glDrawArraysInstancedBaseInstanceANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount,
GLuint baseinstance) {
driver_->fn.glDrawArraysInstancedBaseInstanceANGLEFn(mode, first, count,
primcount, baseinstance);
}
void GLApiBase::glDrawBufferFn(GLenum mode) {
driver_->fn.glDrawBufferFn(mode);
}
void GLApiBase::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
driver_->fn.glDrawBuffersARBFn(n, bufs);
}
void GLApiBase::glDrawElementsFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices) {
driver_->fn.glDrawElementsFn(mode, count, type, indices);
}
void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount) {
driver_->fn.glDrawElementsInstancedANGLEFn(mode, count, type, indices,
primcount);
}
void GLApiBase::glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount,
GLint baseVertex,
GLuint baseInstance) {
driver_->fn.glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, count, type, indices, primcount, baseVertex, baseInstance);
}
void GLApiBase::glDrawRangeElementsFn(GLenum mode,
GLuint start,
GLuint end,
GLsizei count,
GLenum type,
const void* indices) {
driver_->fn.glDrawRangeElementsFn(mode, start, end, count, type, indices);
}
void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
GLeglImageOES image) {
driver_->fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
}
void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target,
GLeglImageOES image) {
driver_->fn.glEGLImageTargetTexture2DOESFn(target, image);
}
void GLApiBase::glEnableFn(GLenum cap) {
driver_->fn.glEnableFn(cap);
}
void GLApiBase::glEnableiOESFn(GLenum target, GLuint index) {
driver_->fn.glEnableiOESFn(target, index);
}
void GLApiBase::glEnableVertexAttribArrayFn(GLuint index) {
driver_->fn.glEnableVertexAttribArrayFn(index);
}
void GLApiBase::glEndPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* storeops) {
driver_->fn.glEndPixelLocalStorageANGLEFn(n, storeops);
}
void GLApiBase::glEndPixelLocalStorageImplicitANGLEFn() {
driver_->fn.glEndPixelLocalStorageImplicitANGLEFn();
}
void GLApiBase::glEndQueryFn(GLenum target) {
driver_->fn.glEndQueryFn(target);
}
void GLApiBase::glEndTilingQCOMFn(GLbitfield preserveMask) {
driver_->fn.glEndTilingQCOMFn(preserveMask);
}
void GLApiBase::glEndTransformFeedbackFn(void) {
driver_->fn.glEndTransformFeedbackFn();
}
GLsync GLApiBase::glFenceSyncFn(GLenum condition, GLbitfield flags) {
return driver_->fn.glFenceSyncFn(condition, flags);
}
void GLApiBase::glFinishFn(void) {
driver_->fn.glFinishFn();
}
void GLApiBase::glFinishFenceNVFn(GLuint fence) {
driver_->fn.glFinishFenceNVFn(fence);
}
void GLApiBase::glFlushFn(void) {
driver_->fn.glFlushFn();
}
void GLApiBase::glFlushMappedBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length) {
driver_->fn.glFlushMappedBufferRangeFn(target, offset, length);
}
void GLApiBase::glFramebufferMemorylessPixelLocalStorageANGLEFn(
GLint plane,
GLenum internalformat,
GLbitfield usage) {
driver_->fn.glFramebufferMemorylessPixelLocalStorageANGLEFn(
plane, internalformat, usage);
}
void GLApiBase::glFramebufferParameteriMESAFn(GLenum target,
GLenum pname,
GLint param) {
driver_->fn.glFramebufferParameteriMESAFn(target, pname, param);
}
void GLApiBase::glFramebufferPixelLocalClearValuefvANGLEFn(
GLint plane,
const GLfloat* value) {
driver_->fn.glFramebufferPixelLocalClearValuefvANGLEFn(plane, value);
}
void GLApiBase::glFramebufferPixelLocalClearValueivANGLEFn(GLint plane,
const GLint* value) {
driver_->fn.glFramebufferPixelLocalClearValueivANGLEFn(plane, value);
}
void GLApiBase::glFramebufferPixelLocalClearValueuivANGLEFn(
GLint plane,
const GLuint* value) {
driver_->fn.glFramebufferPixelLocalClearValueuivANGLEFn(plane, value);
}
void GLApiBase::glFramebufferPixelLocalStorageInterruptANGLEFn() {
driver_->fn.glFramebufferPixelLocalStorageInterruptANGLEFn();
}
void GLApiBase::glFramebufferPixelLocalStorageRestoreANGLEFn() {
driver_->fn.glFramebufferPixelLocalStorageRestoreANGLEFn();
}
void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer) {
driver_->fn.glFramebufferRenderbufferEXTFn(target, attachment,
renderbuffertarget, renderbuffer);
}
void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level) {
driver_->fn.glFramebufferTexture2DEXTFn(target, attachment, textarget,
texture, level);
}
void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level,
GLsizei samples) {
driver_->fn.glFramebufferTexture2DMultisampleEXTFn(
target, attachment, textarget, texture, level, samples);
}
void GLApiBase::glFramebufferTextureLayerFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint layer) {
driver_->fn.glFramebufferTextureLayerFn(target, attachment, texture, level,
layer);
}
void GLApiBase::glFramebufferTextureMultiviewOVRFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint baseViewIndex,
GLsizei numViews) {
driver_->fn.glFramebufferTextureMultiviewOVRFn(
target, attachment, texture, level, baseViewIndex, numViews);
}
void GLApiBase::glFramebufferTexturePixelLocalStorageANGLEFn(
GLint plane,
GLuint backingtexture,
GLint level,
GLint layer,
GLbitfield usage) {
driver_->fn.glFramebufferTexturePixelLocalStorageANGLEFn(
plane, backingtexture, level, layer, usage);
}
void GLApiBase::glFrontFaceFn(GLenum mode) {
driver_->fn.glFrontFaceFn(mode);
}
void GLApiBase::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
driver_->fn.glGenBuffersARBFn(n, buffers);
}
void GLApiBase::glGenerateMipmapEXTFn(GLenum target) {
driver_->fn.glGenerateMipmapEXTFn(target);
}
void GLApiBase::glGenFencesNVFn(GLsizei n, GLuint* fences) {
driver_->fn.glGenFencesNVFn(n, fences);
}
void GLApiBase::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
driver_->fn.glGenFramebuffersEXTFn(n, framebuffers);
}
void GLApiBase::glGenQueriesFn(GLsizei n, GLuint* ids) {
driver_->fn.glGenQueriesFn(n, ids);
}
void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
driver_->fn.glGenRenderbuffersEXTFn(n, renderbuffers);
}
void GLApiBase::glGenSamplersFn(GLsizei n, GLuint* samplers) {
driver_->fn.glGenSamplersFn(n, samplers);
}
void GLApiBase::glGenSemaphoresEXTFn(GLsizei n, GLuint* semaphores) {
driver_->fn.glGenSemaphoresEXTFn(n, semaphores);
}
void GLApiBase::glGenTexturesFn(GLsizei n, GLuint* textures) {
driver_->fn.glGenTexturesFn(n, textures);
}
void GLApiBase::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
driver_->fn.glGenTransformFeedbacksFn(n, ids);
}
void GLApiBase::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
driver_->fn.glGenVertexArraysOESFn(n, arrays);
}
void GLApiBase::glGetActiveAttribFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
driver_->fn.glGetActiveAttribFn(program, index, bufsize, length, size, type,
name);
}
void GLApiBase::glGetActiveUniformFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
driver_->fn.glGetActiveUniformFn(program, index, bufsize, length, size, type,
name);
}
void GLApiBase::glGetActiveUniformBlockivFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLint* params) {
driver_->fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
params);
}
void GLApiBase::glGetActiveUniformBlockivRobustANGLEFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetActiveUniformBlockivRobustANGLEFn(
program, uniformBlockIndex, pname, bufSize, length, params);
}
void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program,
GLuint uniformBlockIndex,
GLsizei bufSize,
GLsizei* length,
char* uniformBlockName) {
driver_->fn.glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
length, uniformBlockName);
}
void GLApiBase::glGetActiveUniformsivFn(GLuint program,
GLsizei uniformCount,
const GLuint* uniformIndices,
GLenum pname,
GLint* params) {
driver_->fn.glGetActiveUniformsivFn(program, uniformCount, uniformIndices,
pname, params);
}
void GLApiBase::glGetAttachedShadersFn(GLuint program,
GLsizei maxcount,
GLsizei* count,
GLuint* shaders) {
driver_->fn.glGetAttachedShadersFn(program, maxcount, count, shaders);
}
GLint GLApiBase::glGetAttribLocationFn(GLuint program, const char* name) {
return driver_->fn.glGetAttribLocationFn(program, name);
}
void GLApiBase::glGetBooleanvFn(GLenum pname, GLboolean* params) {
driver_->fn.glGetBooleanvFn(pname, params);
}
void GLApiBase::glGetBooleanvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLboolean* data) {
driver_->fn.glGetBooleanvRobustANGLEFn(pname, bufSize, length, data);
}
void GLApiBase::glGetBufferParameteri64vRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
driver_->fn.glGetBufferParameteri64vRobustANGLEFn(target, pname, bufSize,
length, params);
}
void GLApiBase::glGetBufferParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
driver_->fn.glGetBufferParameterivFn(target, pname, params);
}
void GLApiBase::glGetBufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetBufferParameterivRobustANGLEFn(target, pname, bufSize,
length, params);
}
void GLApiBase::glGetBufferPointervRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** params) {
driver_->fn.glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length,
params);
}
GLuint GLApiBase::glGetDebugMessageLogKHRFn(GLuint count,
GLsizei bufSize,
GLenum* sources,
GLenum* types,
GLuint* ids,
GLenum* severities,
GLsizei* lengths,
char* messageLog) {
return driver_->fn.glGetDebugMessageLogKHRFn(
count, bufSize, sources, types, ids, severities, lengths, messageLog);
}
GLenum GLApiBase::glGetErrorFn(void) {
return driver_->fn.glGetErrorFn();
}
void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
driver_->fn.glGetFenceivNVFn(fence, pname, params);
}
void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) {
driver_->fn.glGetFloatvFn(pname, params);
}
void GLApiBase::glGetFloatvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* data) {
driver_->fn.glGetFloatvRobustANGLEFn(pname, bufSize, length, data);
}
GLint GLApiBase::glGetFragDataIndexFn(GLuint program, const char* name) {
return driver_->fn.glGetFragDataIndexFn(program, name);
}
GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) {
return driver_->fn.glGetFragDataLocationFn(program, name);
}
void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
GLenum attachment,
GLenum pname,
GLint* params) {
driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment,
pname, params);
}
void GLApiBase::glGetFramebufferAttachmentParameterivRobustANGLEFn(
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetFramebufferAttachmentParameterivRobustANGLEFn(
target, attachment, pname, bufSize, length, params);
}
void GLApiBase::glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void GLApiBase::glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLint* params) {
driver_->fn.glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void GLApiBase::glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLuint* params) {
driver_->fn.glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
GLenum GLApiBase::glGetGraphicsResetStatusARBFn(void) {
return driver_->fn.glGetGraphicsResetStatusARBFn();
}
void GLApiBase::glGetInteger64i_vFn(GLenum target,
GLuint index,
GLint64* data) {
driver_->fn.glGetInteger64i_vFn(target, index, data);
}
void GLApiBase::glGetInteger64i_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
driver_->fn.glGetInteger64i_vRobustANGLEFn(target, index, bufSize, length,
data);
}
void GLApiBase::glGetInteger64vFn(GLenum pname, GLint64* params) {
driver_->fn.glGetInteger64vFn(pname, params);
}
void GLApiBase::glGetInteger64vRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
driver_->fn.glGetInteger64vRobustANGLEFn(pname, bufSize, length, data);
}
void GLApiBase::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
driver_->fn.glGetIntegeri_vFn(target, index, data);
}
void GLApiBase::glGetIntegeri_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
driver_->fn.glGetIntegeri_vRobustANGLEFn(target, index, bufSize, length,
data);
}
void GLApiBase::glGetIntegervFn(GLenum pname, GLint* params) {
driver_->fn.glGetIntegervFn(pname, params);
}
void GLApiBase::glGetIntegervRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
driver_->fn.glGetIntegervRobustANGLEFn(pname, bufSize, length, data);
}
void GLApiBase::glGetInternalformativFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLint* params) {
driver_->fn.glGetInternalformativFn(target, internalformat, pname, bufSize,
params);
}
void GLApiBase::glGetInternalformativRobustANGLEFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetInternalformativRobustANGLEFn(target, internalformat, pname,
bufSize, length, params);
}
void GLApiBase::glGetInternalformatSampleivNVFn(GLenum target,
GLenum internalformat,
GLsizei samples,
GLenum pname,
GLsizei bufSize,
GLint* params) {
driver_->fn.glGetInternalformatSampleivNVFn(target, internalformat, samples,
pname, bufSize, params);
}
void GLApiBase::glGetMultisamplefvRobustANGLEFn(GLenum pname,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLfloat* val) {
driver_->fn.glGetMultisamplefvRobustANGLEFn(pname, index, bufSize, length,
val);
}
void GLApiBase::glGetObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei bufSize,
GLsizei* length,
char* label) {
driver_->fn.glGetObjectLabelKHRFn(identifier, name, bufSize, length, label);
}
void GLApiBase::glGetObjectPtrLabelKHRFn(void* ptr,
GLsizei bufSize,
GLsizei* length,
char* label) {
driver_->fn.glGetObjectPtrLabelKHRFn(ptr, bufSize, length, label);
}
void GLApiBase::glGetPointervKHRFn(GLenum pname, void** params) {
driver_->fn.glGetPointervKHRFn(pname, params);
}
void GLApiBase::glGetProgramBinaryFn(GLuint program,
GLsizei bufSize,
GLsizei* length,
GLenum* binaryFormat,
GLvoid* binary) {
driver_->fn.glGetProgramBinaryFn(program, bufSize, length, binaryFormat,
binary);
}
void GLApiBase::glGetProgramInfoLogFn(GLuint program,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
}
void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
driver_->fn.glGetProgramivFn(program, pname, params);
}
void GLApiBase::glGetProgramivRobustANGLEFn(GLuint program,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetProgramivRobustANGLEFn(program, pname, bufSize, length,
params);
}
void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
driver_->fn.glGetQueryivFn(target, pname, params);
}
void GLApiBase::glGetQueryivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetQueryivRobustANGLEFn(target, pname, bufSize, length, params);
}
void GLApiBase::glGetQueryObjecti64vFn(GLuint id,
GLenum pname,
GLint64* params) {
driver_->fn.glGetQueryObjecti64vFn(id, pname, params);
}
void GLApiBase::glGetQueryObjecti64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
driver_->fn.glGetQueryObjecti64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void GLApiBase::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
driver_->fn.glGetQueryObjectivFn(id, pname, params);
}
void GLApiBase::glGetQueryObjectivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetQueryObjectivRobustANGLEFn(id, pname, bufSize, length,
params);
}
void GLApiBase::glGetQueryObjectui64vFn(GLuint id,
GLenum pname,
GLuint64* params) {
driver_->fn.glGetQueryObjectui64vFn(id, pname, params);
}
void GLApiBase::glGetQueryObjectui64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint64* params) {
driver_->fn.glGetQueryObjectui64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void GLApiBase::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) {
driver_->fn.glGetQueryObjectuivFn(id, pname, params);
}
void GLApiBase::glGetQueryObjectuivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
driver_->fn.glGetQueryObjectuivRobustANGLEFn(id, pname, bufSize, length,
params);
}
void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target,
GLenum pname,
GLint* params) {
driver_->fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
}
void GLApiBase::glGetRenderbufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetRenderbufferParameterivRobustANGLEFn(target, pname, bufSize,
length, params);
}
void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler,
GLenum pname,
GLfloat* params) {
driver_->fn.glGetSamplerParameterfvFn(sampler, pname, params);
}
void GLApiBase::glGetSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize,
length, params);
}
void GLApiBase::glGetSamplerParameterivFn(GLuint sampler,
GLenum pname,
GLint* params) {
driver_->fn.glGetSamplerParameterivFn(sampler, pname, params);
}
void GLApiBase::glGetSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetSamplerParameterivRobustANGLEFn(sampler, pname, bufSize,
length, params);
}
void GLApiBase::glGetShaderInfoLogFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
driver_->fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
}
void GLApiBase::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
driver_->fn.glGetShaderivFn(shader, pname, params);
}
void GLApiBase::glGetShaderivRobustANGLEFn(GLuint shader,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetShaderivRobustANGLEFn(shader, pname, bufSize, length,
params);
}
void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype,
GLenum precisiontype,
GLint* range,
GLint* precision) {
driver_->fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
precision);
}
void GLApiBase::glGetShaderSourceFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source);
}
const GLubyte* GLApiBase::glGetStringFn(GLenum name) {
return driver_->fn.glGetStringFn(name);
}
const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) {
return driver_->fn.glGetStringiFn(name, index);
}
void GLApiBase::glGetSyncivFn(GLsync sync,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* values) {
driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values);
}
void GLApiBase::glGetTexLevelParameterfvANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLfloat* params) {
driver_->fn.glGetTexLevelParameterfvANGLEFn(target, level, pname, params);
}
void GLApiBase::glGetTexLevelParameterfvRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetTexLevelParameterfvRobustANGLEFn(target, level, pname,
bufSize, length, params);
}
void GLApiBase::glGetTexLevelParameterivANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLint* params) {
driver_->fn.glGetTexLevelParameterivANGLEFn(target, level, pname, params);
}
void GLApiBase::glGetTexLevelParameterivRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetTexLevelParameterivRobustANGLEFn(target, level, pname,
bufSize, length, params);
}
void GLApiBase::glGetTexParameterfvFn(GLenum target,
GLenum pname,
GLfloat* params) {
driver_->fn.glGetTexParameterfvFn(target, pname, params);
}
void GLApiBase::glGetTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetTexParameterfvRobustANGLEFn(target, pname, bufSize, length,
params);
}
void GLApiBase::glGetTexParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
driver_->fn.glGetTexParameterivFn(target, pname, params);
}
void GLApiBase::glGetTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetTexParameterivRobustANGLEFn(target, pname, bufSize, length,
params);
}
void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLsizei* size,
GLenum* type,
char* name) {
driver_->fn.glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
size, type, name);
}
void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
driver_->fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length,
source);
}
GLuint GLApiBase::glGetUniformBlockIndexFn(GLuint program,
const char* uniformBlockName) {
return driver_->fn.glGetUniformBlockIndexFn(program, uniformBlockName);
}
void GLApiBase::glGetUniformfvFn(GLuint program,
GLint location,
GLfloat* params) {
driver_->fn.glGetUniformfvFn(program, location, params);
}
void GLApiBase::glGetUniformfvRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetUniformfvRobustANGLEFn(program, location, bufSize, length,
params);
}
void GLApiBase::glGetUniformIndicesFn(GLuint program,
GLsizei uniformCount,
const char* const* uniformNames,
GLuint* uniformIndices) {
driver_->fn.glGetUniformIndicesFn(program, uniformCount, uniformNames,
uniformIndices);
}
void GLApiBase::glGetUniformivFn(GLuint program,
GLint location,
GLint* params) {
driver_->fn.glGetUniformivFn(program, location, params);
}
void GLApiBase::glGetUniformivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetUniformivRobustANGLEFn(program, location, bufSize, length,
params);
}
GLint GLApiBase::glGetUniformLocationFn(GLuint program, const char* name) {
return driver_->fn.glGetUniformLocationFn(program, name);
}
void GLApiBase::glGetUniformuivFn(GLuint program,
GLint location,
GLuint* params) {
driver_->fn.glGetUniformuivFn(program, location, params);
}
void GLApiBase::glGetUniformuivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
driver_->fn.glGetUniformuivRobustANGLEFn(program, location, bufSize, length,
params);
}
void GLApiBase::glGetVertexAttribfvFn(GLuint index,
GLenum pname,
GLfloat* params) {
driver_->fn.glGetVertexAttribfvFn(index, pname, params);
}
void GLApiBase::glGetVertexAttribfvRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
driver_->fn.glGetVertexAttribfvRobustANGLEFn(index, pname, bufSize, length,
params);
}
void GLApiBase::glGetVertexAttribIivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetVertexAttribIivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void GLApiBase::glGetVertexAttribIuivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
driver_->fn.glGetVertexAttribIuivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void GLApiBase::glGetVertexAttribivFn(GLuint index,
GLenum pname,
GLint* params) {
driver_->fn.glGetVertexAttribivFn(index, pname, params);
}
void GLApiBase::glGetVertexAttribivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
driver_->fn.glGetVertexAttribivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void GLApiBase::glGetVertexAttribPointervFn(GLuint index,
GLenum pname,
void** pointer) {
driver_->fn.glGetVertexAttribPointervFn(index, pname, pointer);
}
void GLApiBase::glGetVertexAttribPointervRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** pointer) {
driver_->fn.glGetVertexAttribPointervRobustANGLEFn(index, pname, bufSize,
length, pointer);
}
void GLApiBase::glHintFn(GLenum target, GLenum mode) {
driver_->fn.glHintFn(target, mode);
}
void GLApiBase::glImportMemoryFdEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLint fd) {
driver_->fn.glImportMemoryFdEXTFn(memory, size, handleType, fd);
}
void GLApiBase::glImportMemoryWin32HandleEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
void* handle) {
driver_->fn.glImportMemoryWin32HandleEXTFn(memory, size, handleType, handle);
}
void GLApiBase::glImportMemoryZirconHandleANGLEFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLuint handle) {
driver_->fn.glImportMemoryZirconHandleANGLEFn(memory, size, handleType,
handle);
}
void GLApiBase::glImportSemaphoreFdEXTFn(GLuint semaphore,
GLenum handleType,
GLint fd) {
driver_->fn.glImportSemaphoreFdEXTFn(semaphore, handleType, fd);
}
void GLApiBase::glImportSemaphoreWin32HandleEXTFn(GLuint semaphore,
GLenum handleType,
void* handle) {
driver_->fn.glImportSemaphoreWin32HandleEXTFn(semaphore, handleType, handle);
}
void GLApiBase::glImportSemaphoreZirconHandleANGLEFn(GLuint semaphore,
GLenum handleType,
GLuint handle) {
driver_->fn.glImportSemaphoreZirconHandleANGLEFn(semaphore, handleType,
handle);
}
void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
driver_->fn.glInsertEventMarkerEXTFn(length, marker);
}
void GLApiBase::glInvalidateFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
driver_->fn.glInvalidateFramebufferFn(target, numAttachments, attachments);
}
void GLApiBase::glInvalidateSubFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments,
GLint x,
GLint y,
GLint width,
GLint height) {
driver_->fn.glInvalidateSubFramebufferFn(target, numAttachments, attachments,
x, y, width, height);
}
void GLApiBase::glInvalidateTextureANGLEFn(GLenum target) {
driver_->fn.glInvalidateTextureANGLEFn(target);
}
GLboolean GLApiBase::glIsBufferFn(GLuint buffer) {
return driver_->fn.glIsBufferFn(buffer);
}
GLboolean GLApiBase::glIsEnabledFn(GLenum cap) {
return driver_->fn.glIsEnabledFn(cap);
}
GLboolean GLApiBase::glIsEnablediOESFn(GLenum target, GLuint index) {
return driver_->fn.glIsEnablediOESFn(target, index);
}
GLboolean GLApiBase::glIsFenceNVFn(GLuint fence) {
return driver_->fn.glIsFenceNVFn(fence);
}
GLboolean GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer) {
return driver_->fn.glIsFramebufferEXTFn(framebuffer);
}
GLboolean GLApiBase::glIsProgramFn(GLuint program) {
return driver_->fn.glIsProgramFn(program);
}
GLboolean GLApiBase::glIsQueryFn(GLuint query) {
return driver_->fn.glIsQueryFn(query);
}
GLboolean GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer) {
return driver_->fn.glIsRenderbufferEXTFn(renderbuffer);
}
GLboolean GLApiBase::glIsSamplerFn(GLuint sampler) {
return driver_->fn.glIsSamplerFn(sampler);
}
GLboolean GLApiBase::glIsShaderFn(GLuint shader) {
return driver_->fn.glIsShaderFn(shader);
}
GLboolean GLApiBase::glIsSyncFn(GLsync sync) {
return driver_->fn.glIsSyncFn(sync);
}
GLboolean GLApiBase::glIsTextureFn(GLuint texture) {
return driver_->fn.glIsTextureFn(texture);
}
GLboolean GLApiBase::glIsTransformFeedbackFn(GLuint id) {
return driver_->fn.glIsTransformFeedbackFn(id);
}
GLboolean GLApiBase::glIsVertexArrayOESFn(GLuint array) {
return driver_->fn.glIsVertexArrayOESFn(array);
}
void GLApiBase::glLineWidthFn(GLfloat width) {
driver_->fn.glLineWidthFn(width);
}
void GLApiBase::glLinkProgramFn(GLuint program) {
driver_->fn.glLinkProgramFn(program);
}
void* GLApiBase::glMapBufferFn(GLenum target, GLenum access) {
return driver_->fn.glMapBufferFn(target, access);
}
void* GLApiBase::glMapBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length,
GLbitfield access) {
return driver_->fn.glMapBufferRangeFn(target, offset, length, access);
}
void GLApiBase::glMaxShaderCompilerThreadsKHRFn(GLuint count) {
driver_->fn.glMaxShaderCompilerThreadsKHRFn(count);
}
void GLApiBase::glMemoryObjectParameterivEXTFn(GLuint memoryObject,
GLenum pname,
const GLint* param) {
driver_->fn.glMemoryObjectParameterivEXTFn(memoryObject, pname, param);
}
void GLApiBase::glMultiDrawArraysANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
GLsizei drawcount) {
driver_->fn.glMultiDrawArraysANGLEFn(mode, firsts, counts, drawcount);
}
void GLApiBase::glMultiDrawArraysInstancedANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
GLsizei drawcount) {
driver_->fn.glMultiDrawArraysInstancedANGLEFn(mode, firsts, counts,
instanceCounts, drawcount);
}
void GLApiBase::glMultiDrawArraysInstancedBaseInstanceANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
const GLuint* baseInstances,
GLsizei drawcount) {
driver_->fn.glMultiDrawArraysInstancedBaseInstanceANGLEFn(
mode, firsts, counts, instanceCounts, baseInstances, drawcount);
}
void GLApiBase::glMultiDrawElementsANGLEFn(GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
GLsizei drawcount) {
driver_->fn.glMultiDrawElementsANGLEFn(mode, counts, type, indices,
drawcount);
}
void GLApiBase::glMultiDrawElementsInstancedANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
GLsizei drawcount) {
driver_->fn.glMultiDrawElementsInstancedANGLEFn(mode, counts, type, indices,
instanceCounts, drawcount);
}
void GLApiBase::glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
const GLint* baseVertices,
const GLuint* baseInstances,
GLsizei drawcount) {
driver_->fn.glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, counts, type, indices, instanceCounts, baseVertices, baseInstances,
drawcount);
}
void GLApiBase::glObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei length,
const char* label) {
driver_->fn.glObjectLabelKHRFn(identifier, name, length, label);
}
void GLApiBase::glObjectPtrLabelKHRFn(void* ptr,
GLsizei length,
const char* label) {
driver_->fn.glObjectPtrLabelKHRFn(ptr, length, label);
}
void GLApiBase::glPatchParameteriOESFn(GLenum pname, GLint value) {
driver_->fn.glPatchParameteriOESFn(pname, value);
}
void GLApiBase::glPauseTransformFeedbackFn(void) {
driver_->fn.glPauseTransformFeedbackFn();
}
void GLApiBase::glPixelLocalStorageBarrierANGLEFn() {
driver_->fn.glPixelLocalStorageBarrierANGLEFn();
}
void GLApiBase::glPixelStoreiFn(GLenum pname, GLint param) {
driver_->fn.glPixelStoreiFn(pname, param);
}
void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) {
driver_->fn.glPointParameteriFn(pname, param);
}
void GLApiBase::glPolygonModeFn(GLenum face, GLenum mode) {
driver_->fn.glPolygonModeFn(face, mode);
}
void GLApiBase::glPolygonModeANGLEFn(GLenum face, GLenum mode) {
driver_->fn.glPolygonModeANGLEFn(face, mode);
}
void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
driver_->fn.glPolygonOffsetFn(factor, units);
}
void GLApiBase::glPolygonOffsetClampEXTFn(GLfloat factor,
GLfloat units,
GLfloat clamp) {
driver_->fn.glPolygonOffsetClampEXTFn(factor, units, clamp);
}
void GLApiBase::glPopDebugGroupKHRFn() {
driver_->fn.glPopDebugGroupKHRFn();
}
void GLApiBase::glPopGroupMarkerEXTFn(void) {
driver_->fn.glPopGroupMarkerEXTFn();
}
void GLApiBase::glPrimitiveRestartIndexFn(GLuint index) {
driver_->fn.glPrimitiveRestartIndexFn(index);
}
void GLApiBase::glProgramBinaryFn(GLuint program,
GLenum binaryFormat,
const GLvoid* binary,
GLsizei length) {
driver_->fn.glProgramBinaryFn(program, binaryFormat, binary, length);
}
void GLApiBase::glProgramParameteriFn(GLuint program,
GLenum pname,
GLint value) {
driver_->fn.glProgramParameteriFn(program, pname, value);
}
void GLApiBase::glProvokingVertexANGLEFn(GLenum provokeMode) {
driver_->fn.glProvokingVertexANGLEFn(provokeMode);
}
void GLApiBase::glPushDebugGroupKHRFn(GLenum source,
GLuint id,
GLsizei length,
const char* message) {
driver_->fn.glPushDebugGroupKHRFn(source, id, length, message);
}
void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
driver_->fn.glPushGroupMarkerEXTFn(length, marker);
}
void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) {
driver_->fn.glQueryCounterFn(id, target);
}
void GLApiBase::glReadBufferFn(GLenum src) {
driver_->fn.glReadBufferFn(src);
}
void GLApiBase::glReadPixelsFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
void* pixels) {
driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels);
}
void GLApiBase::glReadPixelsRobustANGLEFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
GLsizei* length,
GLsizei* columns,
GLsizei* rows,
void* pixels) {
driver_->fn.glReadPixelsRobustANGLEFn(x, y, width, height, format, type,
bufSize, length, columns, rows, pixels);
}
void GLApiBase::glReleaseShaderCompilerFn(void) {
driver_->fn.glReleaseShaderCompilerFn();
}
void GLApiBase::glReleaseTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
GLenum* layouts) {
driver_->fn.glReleaseTexturesANGLEFn(numTextures, textures, layouts);
}
void GLApiBase::glRenderbufferStorageEXTFn(GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height) {
driver_->fn.glRenderbufferStorageEXTFn(target, internalformat, width, height);
}
void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
driver_->fn.glRenderbufferStorageMultisampleFn(target, samples,
internalformat, width, height);
}
void GLApiBase::glRenderbufferStorageMultisampleAdvancedAMDFn(
GLenum target,
GLsizei samples,
GLsizei storageSamples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
driver_->fn.glRenderbufferStorageMultisampleAdvancedAMDFn(
target, samples, storageSamples, internalformat, width, height);
}
void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
driver_->fn.glRenderbufferStorageMultisampleEXTFn(
target, samples, internalformat, width, height);
}
void GLApiBase::glRequestExtensionANGLEFn(const char* name) {
driver_->fn.glRequestExtensionANGLEFn(name);
}
void GLApiBase::glResumeTransformFeedbackFn(void) {
driver_->fn.glResumeTransformFeedbackFn();
}
void GLApiBase::glSampleCoverageFn(GLclampf value, GLboolean invert) {
driver_->fn.glSampleCoverageFn(value, invert);
}
void GLApiBase::glSamplerParameterfFn(GLuint sampler,
GLenum pname,
GLfloat param) {
driver_->fn.glSamplerParameterfFn(sampler, pname, param);
}
void GLApiBase::glSamplerParameterfvFn(GLuint sampler,
GLenum pname,
const GLfloat* params) {
driver_->fn.glSamplerParameterfvFn(sampler, pname, params);
}
void GLApiBase::glSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLfloat* param) {
driver_->fn.glSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize, param);
}
void GLApiBase::glSamplerParameteriFn(GLuint sampler,
GLenum pname,
GLint param) {
driver_->fn.glSamplerParameteriFn(sampler, pname, param);
}
void GLApiBase::glSamplerParameterivFn(GLuint sampler,
GLenum pname,
const GLint* params) {
driver_->fn.glSamplerParameterivFn(sampler, pname, params);
}
void GLApiBase::glSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLint* param) {
driver_->fn.glSamplerParameterivRobustANGLEFn(sampler, pname, bufSize, param);
}
void GLApiBase::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
driver_->fn.glScissorFn(x, y, width, height);
}
void GLApiBase::glSetFenceNVFn(GLuint fence, GLenum condition) {
driver_->fn.glSetFenceNVFn(fence, condition);
}
void GLApiBase::glShaderBinaryFn(GLsizei n,
const GLuint* shaders,
GLenum binaryformat,
const void* binary,
GLsizei length) {
driver_->fn.glShaderBinaryFn(n, shaders, binaryformat, binary, length);
}
void GLApiBase::glShaderSourceFn(GLuint shader,
GLsizei count,
const char* const* str,
const GLint* length) {
driver_->fn.glShaderSourceFn(shader, count, str, length);
}
void GLApiBase::glSignalSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* dstLayouts) {
driver_->fn.glSignalSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, dstLayouts);
}
void GLApiBase::glStartTilingQCOMFn(GLuint x,
GLuint y,
GLuint width,
GLuint height,
GLbitfield preserveMask) {
driver_->fn.glStartTilingQCOMFn(x, y, width, height, preserveMask);
}
void GLApiBase::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
driver_->fn.glStencilFuncFn(func, ref, mask);
}
void GLApiBase::glStencilFuncSeparateFn(GLenum face,
GLenum func,
GLint ref,
GLuint mask) {
driver_->fn.glStencilFuncSeparateFn(face, func, ref, mask);
}
void GLApiBase::glStencilMaskFn(GLuint mask) {
driver_->fn.glStencilMaskFn(mask);
}
void GLApiBase::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
driver_->fn.glStencilMaskSeparateFn(face, mask);
}
void GLApiBase::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
driver_->fn.glStencilOpFn(fail, zfail, zpass);
}
void GLApiBase::glStencilOpSeparateFn(GLenum face,
GLenum fail,
GLenum zfail,
GLenum zpass) {
driver_->fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
}
GLboolean GLApiBase::glTestFenceNVFn(GLuint fence) {
return driver_->fn.glTestFenceNVFn(fence);
}
void GLApiBase::glTexBufferOESFn(GLenum target,
GLenum internalformat,
GLuint buffer) {
driver_->fn.glTexBufferOESFn(target, internalformat, buffer);
}
void GLApiBase::glTexBufferRangeOESFn(GLenum target,
GLenum internalformat,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
driver_->fn.glTexBufferRangeOESFn(target, internalformat, buffer, offset,
size);
}
void GLApiBase::glTexImage2DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
driver_->fn.glTexImage2DFn(target, level, internalformat, width, height,
border, format, type, pixels);
}
void GLApiBase::glTexImage2DExternalANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type) {
driver_->fn.glTexImage2DExternalANGLEFn(target, level, internalformat, width,
height, border, format, type);
}
void GLApiBase::glTexImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
driver_->fn.glTexImage2DRobustANGLEFn(target, level, internalformat, width,
height, border, format, type, bufSize,
pixels);
}
void GLApiBase::glTexImage3DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
driver_->fn.glTexImage3DFn(target, level, internalformat, width, height,
depth, border, format, type, pixels);
}
void GLApiBase::glTexImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
driver_->fn.glTexImage3DRobustANGLEFn(target, level, internalformat, width,
height, depth, border, format, type,
bufSize, pixels);
}
void GLApiBase::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
driver_->fn.glTexParameterfFn(target, pname, param);
}
void GLApiBase::glTexParameterfvFn(GLenum target,
GLenum pname,
const GLfloat* params) {
driver_->fn.glTexParameterfvFn(target, pname, params);
}
void GLApiBase::glTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLfloat* params) {
driver_->fn.glTexParameterfvRobustANGLEFn(target, pname, bufSize, params);
}
void GLApiBase::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
driver_->fn.glTexParameteriFn(target, pname, param);
}
void GLApiBase::glTexParameterivFn(GLenum target,
GLenum pname,
const GLint* params) {
driver_->fn.glTexParameterivFn(target, pname, params);
}
void GLApiBase::glTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLint* params) {
driver_->fn.glTexParameterivRobustANGLEFn(target, pname, bufSize, params);
}
void GLApiBase::glTexStorage2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height) {
driver_->fn.glTexStorage2DEXTFn(target, levels, internalformat, width,
height);
}
void GLApiBase::glTexStorage3DFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth) {
driver_->fn.glTexStorage3DFn(target, levels, internalformat, width, height,
depth);
}
void GLApiBase::glTexStorageMem2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset) {
driver_->fn.glTexStorageMem2DEXTFn(target, levels, internalFormat, width,
height, memory, offset);
}
void GLApiBase::glTexStorageMemFlags2DANGLEFn(
GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset,
GLbitfield createFlags,
GLbitfield usageFlags,
const void* imageCreateInfoPNext) {
driver_->fn.glTexStorageMemFlags2DANGLEFn(
target, levels, internalFormat, width, height, memory, offset,
createFlags, usageFlags, imageCreateInfoPNext);
}
void GLApiBase::glTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void* pixels) {
driver_->fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
format, type, pixels);
}
void GLApiBase::glTexSubImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
driver_->fn.glTexSubImage2DRobustANGLEFn(target, level, xoffset, yoffset,
width, height, format, type, bufSize,
pixels);
}
void GLApiBase::glTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
const void* pixels) {
driver_->fn.glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
height, depth, format, type, pixels);
}
void GLApiBase::glTexSubImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
driver_->fn.glTexSubImage3DRobustANGLEFn(target, level, xoffset, yoffset,
zoffset, width, height, depth,
format, type, bufSize, pixels);
}
void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program,
GLsizei count,
const char* const* varyings,
GLenum bufferMode) {
driver_->fn.glTransformFeedbackVaryingsFn(program, count, varyings,
bufferMode);
}
void GLApiBase::glUniform1fFn(GLint location, GLfloat x) {
driver_->fn.glUniform1fFn(location, x);
}
void GLApiBase::glUniform1fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
driver_->fn.glUniform1fvFn(location, count, v);
}
void GLApiBase::glUniform1iFn(GLint location, GLint x) {
driver_->fn.glUniform1iFn(location, x);
}
void GLApiBase::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
driver_->fn.glUniform1ivFn(location, count, v);
}
void GLApiBase::glUniform1uiFn(GLint location, GLuint v0) {
driver_->fn.glUniform1uiFn(location, v0);
}
void GLApiBase::glUniform1uivFn(GLint location,
GLsizei count,
const GLuint* v) {
driver_->fn.glUniform1uivFn(location, count, v);
}
void GLApiBase::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
driver_->fn.glUniform2fFn(location, x, y);
}
void GLApiBase::glUniform2fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
driver_->fn.glUniform2fvFn(location, count, v);
}
void GLApiBase::glUniform2iFn(GLint location, GLint x, GLint y) {
driver_->fn.glUniform2iFn(location, x, y);
}
void GLApiBase::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
driver_->fn.glUniform2ivFn(location, count, v);
}
void GLApiBase::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
driver_->fn.glUniform2uiFn(location, v0, v1);
}
void GLApiBase::glUniform2uivFn(GLint location,
GLsizei count,
const GLuint* v) {
driver_->fn.glUniform2uivFn(location, count, v);
}
void GLApiBase::glUniform3fFn(GLint location, GLfloat x, GLfloat y, GLfloat z) {
driver_->fn.glUniform3fFn(location, x, y, z);
}
void GLApiBase::glUniform3fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
driver_->fn.glUniform3fvFn(location, count, v);
}
void GLApiBase::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
driver_->fn.glUniform3iFn(location, x, y, z);
}
void GLApiBase::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
driver_->fn.glUniform3ivFn(location, count, v);
}
void GLApiBase::glUniform3uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2) {
driver_->fn.glUniform3uiFn(location, v0, v1, v2);
}
void GLApiBase::glUniform3uivFn(GLint location,
GLsizei count,
const GLuint* v) {
driver_->fn.glUniform3uivFn(location, count, v);
}
void GLApiBase::glUniform4fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
driver_->fn.glUniform4fFn(location, x, y, z, w);
}
void GLApiBase::glUniform4fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
driver_->fn.glUniform4fvFn(location, count, v);
}
void GLApiBase::glUniform4iFn(GLint location,
GLint x,
GLint y,
GLint z,
GLint w) {
driver_->fn.glUniform4iFn(location, x, y, z, w);
}
void GLApiBase::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
driver_->fn.glUniform4ivFn(location, count, v);
}
void GLApiBase::glUniform4uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2,
GLuint v3) {
driver_->fn.glUniform4uiFn(location, v0, v1, v2, v3);
}
void GLApiBase::glUniform4uivFn(GLint location,
GLsizei count,
const GLuint* v) {
driver_->fn.glUniform4uivFn(location, count, v);
}
void GLApiBase::glUniformBlockBindingFn(GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding) {
driver_->fn.glUniformBlockBindingFn(program, uniformBlockIndex,
uniformBlockBinding);
}
void GLApiBase::glUniformMatrix2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix2fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix2x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix2x3fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix2x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix2x4fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix3fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix3x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix3x2fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix3x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix3x4fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix4fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix4x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix4x2fvFn(location, count, transpose, value);
}
void GLApiBase::glUniformMatrix4x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
driver_->fn.glUniformMatrix4x3fvFn(location, count, transpose, value);
}
GLboolean GLApiBase::glUnmapBufferFn(GLenum target) {
return driver_->fn.glUnmapBufferFn(target);
}
void GLApiBase::glUseProgramFn(GLuint program) {
driver_->fn.glUseProgramFn(program);
}
void GLApiBase::glValidateProgramFn(GLuint program) {
driver_->fn.glValidateProgramFn(program);
}
void GLApiBase::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
driver_->fn.glVertexAttrib1fFn(indx, x);
}
void GLApiBase::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
driver_->fn.glVertexAttrib1fvFn(indx, values);
}
void GLApiBase::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
driver_->fn.glVertexAttrib2fFn(indx, x, y);
}
void GLApiBase::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
driver_->fn.glVertexAttrib2fvFn(indx, values);
}
void GLApiBase::glVertexAttrib3fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z) {
driver_->fn.glVertexAttrib3fFn(indx, x, y, z);
}
void GLApiBase::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
driver_->fn.glVertexAttrib3fvFn(indx, values);
}
void GLApiBase::glVertexAttrib4fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
driver_->fn.glVertexAttrib4fFn(indx, x, y, z, w);
}
void GLApiBase::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
driver_->fn.glVertexAttrib4fvFn(indx, values);
}
void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
driver_->fn.glVertexAttribDivisorANGLEFn(index, divisor);
}
void GLApiBase::glVertexAttribI4iFn(GLuint indx,
GLint x,
GLint y,
GLint z,
GLint w) {
driver_->fn.glVertexAttribI4iFn(indx, x, y, z, w);
}
void GLApiBase::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
driver_->fn.glVertexAttribI4ivFn(indx, values);
}
void GLApiBase::glVertexAttribI4uiFn(GLuint indx,
GLuint x,
GLuint y,
GLuint z,
GLuint w) {
driver_->fn.glVertexAttribI4uiFn(indx, x, y, z, w);
}
void GLApiBase::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
driver_->fn.glVertexAttribI4uivFn(indx, values);
}
void GLApiBase::glVertexAttribIPointerFn(GLuint indx,
GLint size,
GLenum type,
GLsizei stride,
const void* ptr) {
driver_->fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
}
void GLApiBase::glVertexAttribPointerFn(GLuint indx,
GLint size,
GLenum type,
GLboolean normalized,
GLsizei stride,
const void* ptr) {
driver_->fn.glVertexAttribPointerFn(indx, size, type, normalized, stride,
ptr);
}
void GLApiBase::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
driver_->fn.glViewportFn(x, y, width, height);
}
void GLApiBase::glWaitSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* srcLayouts) {
driver_->fn.glWaitSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, srcLayouts);
}
void GLApiBase::glWaitSyncFn(GLsync sync, GLbitfield flags, GLuint64 timeout) {
driver_->fn.glWaitSyncFn(sync, flags, timeout);
}
void GLApiBase::glWindowRectanglesEXTFn(GLenum mode,
GLsizei n,
const GLint* box) {
driver_->fn.glWindowRectanglesEXTFn(mode, n, box);
}
void TraceGLApi::glAcquireTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
const GLenum* layouts) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAcquireTexturesANGLE");
gl_api_->glAcquireTexturesANGLEFn(numTextures, textures, layouts);
}
void TraceGLApi::glActiveTextureFn(GLenum texture) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture");
gl_api_->glActiveTextureFn(texture);
}
void TraceGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader");
gl_api_->glAttachShaderFn(program, shader);
}
void TraceGLApi::glBeginPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* loadops) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glBeginPixelLocalStorageANGLE");
gl_api_->glBeginPixelLocalStorageANGLEFn(n, loadops);
}
void TraceGLApi::glBeginQueryFn(GLenum target, GLuint id) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery");
gl_api_->glBeginQueryFn(target, id);
}
void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback");
gl_api_->glBeginTransformFeedbackFn(primitiveMode);
}
void TraceGLApi::glBindAttribLocationFn(GLuint program,
GLuint index,
const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation");
gl_api_->glBindAttribLocationFn(program, index, name);
}
void TraceGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer");
gl_api_->glBindBufferFn(target, buffer);
}
void TraceGLApi::glBindBufferBaseFn(GLenum target,
GLuint index,
GLuint buffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase");
gl_api_->glBindBufferBaseFn(target, index, buffer);
}
void TraceGLApi::glBindBufferRangeFn(GLenum target,
GLuint index,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange");
gl_api_->glBindBufferRangeFn(target, index, buffer, offset, size);
}
void TraceGLApi::glBindFragDataLocationFn(GLuint program,
GLuint colorNumber,
const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation");
gl_api_->glBindFragDataLocationFn(program, colorNumber, name);
}
void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program,
GLuint colorNumber,
GLuint index,
const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glBindFragDataLocationIndexed");
gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name);
}
void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT");
gl_api_->glBindFramebufferEXTFn(target, framebuffer);
}
void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT");
gl_api_->glBindRenderbufferEXTFn(target, renderbuffer);
}
void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler");
gl_api_->glBindSamplerFn(unit, sampler);
}
void TraceGLApi::glBindTextureFn(GLenum target, GLuint texture) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture");
gl_api_->glBindTextureFn(target, texture);
}
void TraceGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback");
gl_api_->glBindTransformFeedbackFn(target, id);
}
void TraceGLApi::glBindUniformLocationCHROMIUMFn(GLuint program,
GLint location,
const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glBindUniformLocationCHROMIUM");
gl_api_->glBindUniformLocationCHROMIUMFn(program, location, name);
}
void TraceGLApi::glBindVertexArrayOESFn(GLuint array) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES");
gl_api_->glBindVertexArrayOESFn(array);
}
void TraceGLApi::glBlendBarrierKHRFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR");
gl_api_->glBlendBarrierKHRFn();
}
void TraceGLApi::glBlendColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor");
gl_api_->glBlendColorFn(red, green, blue, alpha);
}
void TraceGLApi::glBlendEquationFn(GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation");
gl_api_->glBlendEquationFn(mode);
}
void TraceGLApi::glBlendEquationiOESFn(GLuint buf, GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationiOES");
gl_api_->glBlendEquationiOESFn(buf, mode);
}
void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate");
gl_api_->glBlendEquationSeparateFn(modeRGB, modeAlpha);
}
void TraceGLApi::glBlendEquationSeparateiOESFn(GLuint buf,
GLenum modeRGB,
GLenum modeAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glBlendEquationSeparateiOES");
gl_api_->glBlendEquationSeparateiOESFn(buf, modeRGB, modeAlpha);
}
void TraceGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc");
gl_api_->glBlendFuncFn(sfactor, dfactor);
}
void TraceGLApi::glBlendFunciOESFn(GLuint buf, GLenum sfactor, GLenum dfactor) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunciOES");
gl_api_->glBlendFunciOESFn(buf, sfactor, dfactor);
}
void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate");
gl_api_->glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void TraceGLApi::glBlendFuncSeparateiOESFn(GLuint buf,
GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparateiOES");
gl_api_->glBlendFuncSeparateiOESFn(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void TraceGLApi::glBlitFramebufferFn(GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer");
gl_api_->glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
dstY1, mask, filter);
}
void TraceGLApi::glBlobCacheCallbacksANGLEFn(GLSETBLOBPROCANGLE set,
GLGETBLOBPROCANGLE get,
const void* userData) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlobCacheCallbacksANGLE");
gl_api_->glBlobCacheCallbacksANGLEFn(set, get, userData);
}
void TraceGLApi::glBufferDataFn(GLenum target,
GLsizeiptr size,
const void* data,
GLenum usage) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData");
gl_api_->glBufferDataFn(target, size, data, usage);
}
void TraceGLApi::glBufferSubDataFn(GLenum target,
GLintptr offset,
GLsizeiptr size,
const void* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData");
gl_api_->glBufferSubDataFn(target, offset, size, data);
}
GLenum TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glCheckFramebufferStatusEXT");
return gl_api_->glCheckFramebufferStatusEXTFn(target);
}
void TraceGLApi::glClearFn(GLbitfield mask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear");
gl_api_->glClearFn(mask);
}
void TraceGLApi::glClearBufferfiFn(GLenum buffer,
GLint drawbuffer,
const GLfloat depth,
GLint stencil) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi");
gl_api_->glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
}
void TraceGLApi::glClearBufferfvFn(GLenum buffer,
GLint drawbuffer,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv");
gl_api_->glClearBufferfvFn(buffer, drawbuffer, value);
}
void TraceGLApi::glClearBufferivFn(GLenum buffer,
GLint drawbuffer,
const GLint* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv");
gl_api_->glClearBufferivFn(buffer, drawbuffer, value);
}
void TraceGLApi::glClearBufferuivFn(GLenum buffer,
GLint drawbuffer,
const GLuint* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv");
gl_api_->glClearBufferuivFn(buffer, drawbuffer, value);
}
void TraceGLApi::glClearColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor");
gl_api_->glClearColorFn(red, green, blue, alpha);
}
void TraceGLApi::glClearDepthFn(GLclampd depth) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth");
gl_api_->glClearDepthFn(depth);
}
void TraceGLApi::glClearDepthfFn(GLclampf depth) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf");
gl_api_->glClearDepthfFn(depth);
}
void TraceGLApi::glClearStencilFn(GLint s) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil");
gl_api_->glClearStencilFn(s);
}
void TraceGLApi::glClearTexImageFn(GLuint texture,
GLint level,
GLenum format,
GLenum type,
const GLvoid* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearTexImage");
gl_api_->glClearTexImageFn(texture, level, format, type, data);
}
void TraceGLApi::glClearTexSubImageFn(GLuint texture,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint width,
GLint height,
GLint depth,
GLenum format,
GLenum type,
const GLvoid* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearTexSubImage");
gl_api_->glClearTexSubImageFn(texture, level, xoffset, yoffset, zoffset,
width, height, depth, format, type, data);
}
GLenum TraceGLApi::glClientWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync");
return gl_api_->glClientWaitSyncFn(sync, flags, timeout);
}
void TraceGLApi::glClipControlEXTFn(GLenum origin, GLenum depth) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClipControlEXT");
gl_api_->glClipControlEXTFn(origin, depth);
}
void TraceGLApi::glColorMaskFn(GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask");
gl_api_->glColorMaskFn(red, green, blue, alpha);
}
void TraceGLApi::glColorMaskiOESFn(GLuint buf,
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMaskiOES");
gl_api_->glColorMaskiOESFn(buf, red, green, blue, alpha);
}
void TraceGLApi::glCompileShaderFn(GLuint shader) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader");
gl_api_->glCompileShaderFn(shader);
}
void TraceGLApi::glCompressedTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLsizei imageSize,
const void* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D");
gl_api_->glCompressedTexImage2DFn(target, level, internalformat, width,
height, border, imageSize, data);
}
void TraceGLApi::glCompressedTexImage3DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLsizei imageSize,
const void* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D");
gl_api_->glCompressedTexImage3DFn(target, level, internalformat, width,
height, depth, border, imageSize, data);
}
void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLsizei imageSize,
const void* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D");
gl_api_->glCompressedTexSubImage2DFn(target, level, xoffset, yoffset, width,
height, format, imageSize, data);
}
void TraceGLApi::glCompressedTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLsizei imageSize,
const void* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage3D");
gl_api_->glCompressedTexSubImage3DFn(target, level, xoffset, yoffset, zoffset,
width, height, depth, format, imageSize,
data);
}
void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget,
GLenum writeTarget,
GLintptr readOffset,
GLintptr writeOffset,
GLsizeiptr size) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData");
gl_api_->glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
writeOffset, size);
}
void TraceGLApi::glCopySubTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopySubTextureCHROMIUM");
gl_api_->glCopySubTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, xoffset, yoffset, x,
y, width, height, unpackFlipY, unpackPremultiplyAlpha,
unpackUnmultiplyAlpha);
}
void TraceGLApi::glCopyTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D");
gl_api_->glCopyTexImage2DFn(target, level, internalformat, x, y, width,
height, border);
}
void TraceGLApi::glCopyTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D");
gl_api_->glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y, width,
height);
}
void TraceGLApi::glCopyTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D");
gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
width, height);
}
void TraceGLApi::glCopyTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint internalFormat,
GLenum destType,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTextureCHROMIUM");
gl_api_->glCopyTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, internalFormat,
destType, unpackFlipY, unpackPremultiplyAlpha, unpackUnmultiplyAlpha);
}
void TraceGLApi::glCreateMemoryObjectsEXTFn(GLsizei n, GLuint* memoryObjects) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateMemoryObjectsEXT");
gl_api_->glCreateMemoryObjectsEXTFn(n, memoryObjects);
}
GLuint TraceGLApi::glCreateProgramFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram");
return gl_api_->glCreateProgramFn();
}
GLuint TraceGLApi::glCreateShaderFn(GLenum type) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader");
return gl_api_->glCreateShaderFn(type);
}
void TraceGLApi::glCullFaceFn(GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace");
gl_api_->glCullFaceFn(mode);
}
void TraceGLApi::glDebugMessageCallbackKHRFn(GLDEBUGPROC callback,
const void* userParam) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageCallbackKHR");
gl_api_->glDebugMessageCallbackKHRFn(callback, userParam);
}
void TraceGLApi::glDebugMessageControlKHRFn(GLenum source,
GLenum type,
GLenum severity,
GLsizei count,
const GLuint* ids,
GLboolean enabled) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageControlKHR");
gl_api_->glDebugMessageControlKHRFn(source, type, severity, count, ids,
enabled);
}
void TraceGLApi::glDebugMessageInsertKHRFn(GLenum source,
GLenum type,
GLuint id,
GLenum severity,
GLsizei length,
const char* buf) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDebugMessageInsertKHR");
gl_api_->glDebugMessageInsertKHRFn(source, type, id, severity, length, buf);
}
void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB");
gl_api_->glDeleteBuffersARBFn(n, buffers);
}
void TraceGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV");
gl_api_->glDeleteFencesNVFn(n, fences);
}
void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
const GLuint* framebuffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT");
gl_api_->glDeleteFramebuffersEXTFn(n, framebuffers);
}
void TraceGLApi::glDeleteMemoryObjectsEXTFn(GLsizei n,
const GLuint* memoryObjects) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteMemoryObjectsEXT");
gl_api_->glDeleteMemoryObjectsEXTFn(n, memoryObjects);
}
void TraceGLApi::glDeleteProgramFn(GLuint program) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram");
gl_api_->glDeleteProgramFn(program);
}
void TraceGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries");
gl_api_->glDeleteQueriesFn(n, ids);
}
void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
const GLuint* renderbuffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT");
gl_api_->glDeleteRenderbuffersEXTFn(n, renderbuffers);
}
void TraceGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers");
gl_api_->glDeleteSamplersFn(n, samplers);
}
void TraceGLApi::glDeleteSemaphoresEXTFn(GLsizei n, const GLuint* semaphores) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSemaphoresEXT");
gl_api_->glDeleteSemaphoresEXTFn(n, semaphores);
}
void TraceGLApi::glDeleteShaderFn(GLuint shader) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader");
gl_api_->glDeleteShaderFn(shader);
}
void TraceGLApi::glDeleteSyncFn(GLsync sync) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync");
gl_api_->glDeleteSyncFn(sync);
}
void TraceGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures");
gl_api_->glDeleteTexturesFn(n, textures);
}
void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glDeleteTransformFeedbacks");
gl_api_->glDeleteTransformFeedbacksFn(n, ids);
}
void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES");
gl_api_->glDeleteVertexArraysOESFn(n, arrays);
}
void TraceGLApi::glDepthFuncFn(GLenum func) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc");
gl_api_->glDepthFuncFn(func);
}
void TraceGLApi::glDepthMaskFn(GLboolean flag) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask");
gl_api_->glDepthMaskFn(flag);
}
void TraceGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange");
gl_api_->glDepthRangeFn(zNear, zFar);
}
void TraceGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef");
gl_api_->glDepthRangefFn(zNear, zFar);
}
void TraceGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader");
gl_api_->glDetachShaderFn(program, shader);
}
void TraceGLApi::glDisableFn(GLenum cap) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable");
gl_api_->glDisableFn(cap);
}
void TraceGLApi::glDisableiOESFn(GLenum target, GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableiOES");
gl_api_->glDisableiOESFn(target, index);
}
void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glDisableVertexAttribArray");
gl_api_->glDisableVertexAttribArrayFn(index);
}
void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT");
gl_api_->glDiscardFramebufferEXTFn(target, numAttachments, attachments);
}
void TraceGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays");
gl_api_->glDrawArraysFn(mode, first, count);
}
void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glDrawArraysInstancedANGLE");
gl_api_->glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
}
void TraceGLApi::glDrawArraysInstancedBaseInstanceANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount,
GLuint baseinstance) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glDrawArraysInstancedBaseInstanceANGLE");
gl_api_->glDrawArraysInstancedBaseInstanceANGLEFn(mode, first, count,
primcount, baseinstance);
}
void TraceGLApi::glDrawBufferFn(GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer");
gl_api_->glDrawBufferFn(mode);
}
void TraceGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB");
gl_api_->glDrawBuffersARBFn(n, bufs);
}
void TraceGLApi::glDrawElementsFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements");
gl_api_->glDrawElementsFn(mode, count, type, indices);
}
void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glDrawElementsInstancedANGLE");
gl_api_->glDrawElementsInstancedANGLEFn(mode, count, type, indices,
primcount);
}
void TraceGLApi::glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount,
GLint baseVertex,
GLuint baseInstance) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glDrawElementsInstancedBaseVertexBaseInstanceANGLE");
gl_api_->glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, count, type, indices, primcount, baseVertex, baseInstance);
}
void TraceGLApi::glDrawRangeElementsFn(GLenum mode,
GLuint start,
GLuint end,
GLsizei count,
GLenum type,
const void* indices) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements");
gl_api_->glDrawRangeElementsFn(mode, start, end, count, type, indices);
}
void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
GLeglImageOES image) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES");
gl_api_->glEGLImageTargetRenderbufferStorageOESFn(target, image);
}
void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
GLeglImageOES image) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glEGLImageTargetTexture2DOES");
gl_api_->glEGLImageTargetTexture2DOESFn(target, image);
}
void TraceGLApi::glEnableFn(GLenum cap) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable");
gl_api_->glEnableFn(cap);
}
void TraceGLApi::glEnableiOESFn(GLenum target, GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableiOES");
gl_api_->glEnableiOESFn(target, index);
}
void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray");
gl_api_->glEnableVertexAttribArrayFn(index);
}
void TraceGLApi::glEndPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* storeops) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glEndPixelLocalStorageANGLE");
gl_api_->glEndPixelLocalStorageANGLEFn(n, storeops);
}
void TraceGLApi::glEndPixelLocalStorageImplicitANGLEFn() {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glEndPixelLocalStorageImplicitANGLE");
gl_api_->glEndPixelLocalStorageImplicitANGLEFn();
}
void TraceGLApi::glEndQueryFn(GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery");
gl_api_->glEndQueryFn(target);
}
void TraceGLApi::glEndTilingQCOMFn(GLbitfield preserveMask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTilingQCOM");
gl_api_->glEndTilingQCOMFn(preserveMask);
}
void TraceGLApi::glEndTransformFeedbackFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback");
gl_api_->glEndTransformFeedbackFn();
}
GLsync TraceGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync");
return gl_api_->glFenceSyncFn(condition, flags);
}
void TraceGLApi::glFinishFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish");
gl_api_->glFinishFn();
}
void TraceGLApi::glFinishFenceNVFn(GLuint fence) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV");
gl_api_->glFinishFenceNVFn(fence);
}
void TraceGLApi::glFlushFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush");
gl_api_->glFlushFn();
}
void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange");
gl_api_->glFlushMappedBufferRangeFn(target, offset, length);
}
void TraceGLApi::glFramebufferMemorylessPixelLocalStorageANGLEFn(
GLint plane,
GLenum internalformat,
GLbitfield usage) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferMemorylessPixelLocalStorageANGLE");
gl_api_->glFramebufferMemorylessPixelLocalStorageANGLEFn(
plane, internalformat, usage);
}
void TraceGLApi::glFramebufferParameteriMESAFn(GLenum target,
GLenum pname,
GLint param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glFramebufferParameteriMESA");
gl_api_->glFramebufferParameteriMESAFn(target, pname, param);
}
void TraceGLApi::glFramebufferPixelLocalClearValuefvANGLEFn(
GLint plane,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferPixelLocalClearValuefvANGLE");
gl_api_->glFramebufferPixelLocalClearValuefvANGLEFn(plane, value);
}
void TraceGLApi::glFramebufferPixelLocalClearValueivANGLEFn(
GLint plane,
const GLint* value) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferPixelLocalClearValueivANGLE");
gl_api_->glFramebufferPixelLocalClearValueivANGLEFn(plane, value);
}
void TraceGLApi::glFramebufferPixelLocalClearValueuivANGLEFn(
GLint plane,
const GLuint* value) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferPixelLocalClearValueuivANGLE");
gl_api_->glFramebufferPixelLocalClearValueuivANGLEFn(plane, value);
}
void TraceGLApi::glFramebufferPixelLocalStorageInterruptANGLEFn() {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferPixelLocalStorageInterruptANGLE");
gl_api_->glFramebufferPixelLocalStorageInterruptANGLEFn();
}
void TraceGLApi::glFramebufferPixelLocalStorageRestoreANGLEFn() {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferPixelLocalStorageRestoreANGLE");
gl_api_->glFramebufferPixelLocalStorageRestoreANGLEFn();
}
void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glFramebufferRenderbufferEXT");
gl_api_->glFramebufferRenderbufferEXTFn(target, attachment,
renderbuffertarget, renderbuffer);
}
void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT");
gl_api_->glFramebufferTexture2DEXTFn(target, attachment, textarget, texture,
level);
}
void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level,
GLsizei samples) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT");
gl_api_->glFramebufferTexture2DMultisampleEXTFn(target, attachment, textarget,
texture, level, samples);
}
void TraceGLApi::glFramebufferTextureLayerFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint layer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer");
gl_api_->glFramebufferTextureLayerFn(target, attachment, texture, level,
layer);
}
void TraceGLApi::glFramebufferTextureMultiviewOVRFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint baseViewIndex,
GLsizei numViews) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glFramebufferTextureMultiviewOVR");
gl_api_->glFramebufferTextureMultiviewOVRFn(target, attachment, texture,
level, baseViewIndex, numViews);
}
void TraceGLApi::glFramebufferTexturePixelLocalStorageANGLEFn(
GLint plane,
GLuint backingtexture,
GLint level,
GLint layer,
GLbitfield usage) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glFramebufferTexturePixelLocalStorageANGLE");
gl_api_->glFramebufferTexturePixelLocalStorageANGLEFn(plane, backingtexture,
level, layer, usage);
}
void TraceGLApi::glFrontFaceFn(GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace");
gl_api_->glFrontFaceFn(mode);
}
void TraceGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB");
gl_api_->glGenBuffersARBFn(n, buffers);
}
void TraceGLApi::glGenerateMipmapEXTFn(GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT");
gl_api_->glGenerateMipmapEXTFn(target);
}
void TraceGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV");
gl_api_->glGenFencesNVFn(n, fences);
}
void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT");
gl_api_->glGenFramebuffersEXTFn(n, framebuffers);
}
void TraceGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries");
gl_api_->glGenQueriesFn(n, ids);
}
void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT");
gl_api_->glGenRenderbuffersEXTFn(n, renderbuffers);
}
void TraceGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers");
gl_api_->glGenSamplersFn(n, samplers);
}
void TraceGLApi::glGenSemaphoresEXTFn(GLsizei n, GLuint* semaphores) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSemaphoresEXT");
gl_api_->glGenSemaphoresEXTFn(n, semaphores);
}
void TraceGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures");
gl_api_->glGenTexturesFn(n, textures);
}
void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks");
gl_api_->glGenTransformFeedbacksFn(n, ids);
}
void TraceGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES");
gl_api_->glGenVertexArraysOESFn(n, arrays);
}
void TraceGLApi::glGetActiveAttribFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib");
gl_api_->glGetActiveAttribFn(program, index, bufsize, length, size, type,
name);
}
void TraceGLApi::glGetActiveUniformFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform");
gl_api_->glGetActiveUniformFn(program, index, bufsize, length, size, type,
name);
}
void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv");
gl_api_->glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
params);
}
void TraceGLApi::glGetActiveUniformBlockivRobustANGLEFn(
GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetActiveUniformBlockivRobustANGLE");
gl_api_->glGetActiveUniformBlockivRobustANGLEFn(
program, uniformBlockIndex, pname, bufSize, length, params);
}
void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program,
GLuint uniformBlockIndex,
GLsizei bufSize,
GLsizei* length,
char* uniformBlockName) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetActiveUniformBlockName");
gl_api_->glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
length, uniformBlockName);
}
void TraceGLApi::glGetActiveUniformsivFn(GLuint program,
GLsizei uniformCount,
const GLuint* uniformIndices,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv");
gl_api_->glGetActiveUniformsivFn(program, uniformCount, uniformIndices, pname,
params);
}
void TraceGLApi::glGetAttachedShadersFn(GLuint program,
GLsizei maxcount,
GLsizei* count,
GLuint* shaders) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders");
gl_api_->glGetAttachedShadersFn(program, maxcount, count, shaders);
}
GLint TraceGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation");
return gl_api_->glGetAttribLocationFn(program, name);
}
void TraceGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv");
gl_api_->glGetBooleanvFn(pname, params);
}
void TraceGLApi::glGetBooleanvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLboolean* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanvRobustANGLE");
gl_api_->glGetBooleanvRobustANGLEFn(pname, bufSize, length, data);
}
void TraceGLApi::glGetBufferParameteri64vRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetBufferParameteri64vRobustANGLE");
gl_api_->glGetBufferParameteri64vRobustANGLEFn(target, pname, bufSize, length,
params);
}
void TraceGLApi::glGetBufferParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv");
gl_api_->glGetBufferParameterivFn(target, pname, params);
}
void TraceGLApi::glGetBufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetBufferParameterivRobustANGLE");
gl_api_->glGetBufferParameterivRobustANGLEFn(target, pname, bufSize, length,
params);
}
void TraceGLApi::glGetBufferPointervRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetBufferPointervRobustANGLE");
gl_api_->glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length,
params);
}
GLuint TraceGLApi::glGetDebugMessageLogKHRFn(GLuint count,
GLsizei bufSize,
GLenum* sources,
GLenum* types,
GLuint* ids,
GLenum* severities,
GLsizei* lengths,
char* messageLog) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetDebugMessageLogKHR");
return gl_api_->glGetDebugMessageLogKHRFn(count, bufSize, sources, types, ids,
severities, lengths, messageLog);
}
GLenum TraceGLApi::glGetErrorFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError");
return gl_api_->glGetErrorFn();
}
void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV");
gl_api_->glGetFenceivNVFn(fence, pname, params);
}
void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv");
gl_api_->glGetFloatvFn(pname, params);
}
void TraceGLApi::glGetFloatvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatvRobustANGLE");
gl_api_->glGetFloatvRobustANGLEFn(pname, bufSize, length, data);
}
GLint TraceGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataIndex");
return gl_api_->glGetFragDataIndexFn(program, name);
}
GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation");
return gl_api_->glGetFragDataLocationFn(program, name);
}
void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
GLenum attachment,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT");
gl_api_->glGetFramebufferAttachmentParameterivEXTFn(target, attachment, pname,
params);
}
void TraceGLApi::glGetFramebufferAttachmentParameterivRobustANGLEFn(
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivRobustANGLE");
gl_api_->glGetFramebufferAttachmentParameterivRobustANGLEFn(
target, attachment, pname, bufSize, length, params);
}
void TraceGLApi::glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu",
"TraceGLAPI::glGetFramebufferPixelLocalStorageParameterfvRobustANGLE");
gl_api_->glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void TraceGLApi::glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu",
"TraceGLAPI::glGetFramebufferPixelLocalStorageParameterivRobustANGLE");
gl_api_->glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void TraceGLApi::glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu",
"TraceGLAPI::glGetFramebufferPixelLocalStorageParameteruivRobustANGLE");
gl_api_->glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
GLenum TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetGraphicsResetStatusARB");
return gl_api_->glGetGraphicsResetStatusARBFn();
}
void TraceGLApi::glGetInteger64i_vFn(GLenum target,
GLuint index,
GLint64* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v");
gl_api_->glGetInteger64i_vFn(target, index, data);
}
void TraceGLApi::glGetInteger64i_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetInteger64i_vRobustANGLE");
gl_api_->glGetInteger64i_vRobustANGLEFn(target, index, bufSize, length, data);
}
void TraceGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v");
gl_api_->glGetInteger64vFn(pname, params);
}
void TraceGLApi::glGetInteger64vRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetInteger64vRobustANGLE");
gl_api_->glGetInteger64vRobustANGLEFn(pname, bufSize, length, data);
}
void TraceGLApi::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v");
gl_api_->glGetIntegeri_vFn(target, index, data);
}
void TraceGLApi::glGetIntegeri_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetIntegeri_vRobustANGLE");
gl_api_->glGetIntegeri_vRobustANGLEFn(target, index, bufSize, length, data);
}
void TraceGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv");
gl_api_->glGetIntegervFn(pname, params);
}
void TraceGLApi::glGetIntegervRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegervRobustANGLE");
gl_api_->glGetIntegervRobustANGLEFn(pname, bufSize, length, data);
}
void TraceGLApi::glGetInternalformativFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ");
gl_api_->glGetInternalformativFn(target, internalformat, pname, bufSize,
params);
}
void TraceGLApi::glGetInternalformativRobustANGLEFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetInternalformativRobustANGLE");
gl_api_->glGetInternalformativRobustANGLEFn(target, internalformat, pname,
bufSize, length, params);
}
void TraceGLApi::glGetInternalformatSampleivNVFn(GLenum target,
GLenum internalformat,
GLsizei samples,
GLenum pname,
GLsizei bufSize,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetInternalformatSampleivNV");
gl_api_->glGetInternalformatSampleivNVFn(target, internalformat, samples,
pname, bufSize, params);
}
void TraceGLApi::glGetMultisamplefvRobustANGLEFn(GLenum pname,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLfloat* val) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetMultisamplefvRobustANGLE");
gl_api_->glGetMultisamplefvRobustANGLEFn(pname, index, bufSize, length, val);
}
void TraceGLApi::glGetObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei bufSize,
GLsizei* length,
char* label) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetObjectLabelKHR");
gl_api_->glGetObjectLabelKHRFn(identifier, name, bufSize, length, label);
}
void TraceGLApi::glGetObjectPtrLabelKHRFn(void* ptr,
GLsizei bufSize,
GLsizei* length,
char* label) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetObjectPtrLabelKHR");
gl_api_->glGetObjectPtrLabelKHRFn(ptr, bufSize, length, label);
}
void TraceGLApi::glGetPointervKHRFn(GLenum pname, void** params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetPointervKHR");
gl_api_->glGetPointervKHRFn(pname, params);
}
void TraceGLApi::glGetProgramBinaryFn(GLuint program,
GLsizei bufSize,
GLsizei* length,
GLenum* binaryFormat,
GLvoid* binary) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary");
gl_api_->glGetProgramBinaryFn(program, bufSize, length, binaryFormat, binary);
}
void TraceGLApi::glGetProgramInfoLogFn(GLuint program,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog");
gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog);
}
void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv");
gl_api_->glGetProgramivFn(program, pname, params);
}
void TraceGLApi::glGetProgramivRobustANGLEFn(GLuint program,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramivRobustANGLE");
gl_api_->glGetProgramivRobustANGLEFn(program, pname, bufSize, length, params);
}
void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv");
gl_api_->glGetQueryivFn(target, pname, params);
}
void TraceGLApi::glGetQueryivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryivRobustANGLE");
gl_api_->glGetQueryivRobustANGLEFn(target, pname, bufSize, length, params);
}
void TraceGLApi::glGetQueryObjecti64vFn(GLuint id,
GLenum pname,
GLint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v");
gl_api_->glGetQueryObjecti64vFn(id, pname, params);
}
void TraceGLApi::glGetQueryObjecti64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetQueryObjecti64vRobustANGLE");
gl_api_->glGetQueryObjecti64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void TraceGLApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv");
gl_api_->glGetQueryObjectivFn(id, pname, params);
}
void TraceGLApi::glGetQueryObjectivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetQueryObjectivRobustANGLE");
gl_api_->glGetQueryObjectivRobustANGLEFn(id, pname, bufSize, length, params);
}
void TraceGLApi::glGetQueryObjectui64vFn(GLuint id,
GLenum pname,
GLuint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v");
gl_api_->glGetQueryObjectui64vFn(id, pname, params);
}
void TraceGLApi::glGetQueryObjectui64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint64* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetQueryObjectui64vRobustANGLE");
gl_api_->glGetQueryObjectui64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void TraceGLApi::glGetQueryObjectuivFn(GLuint id,
GLenum pname,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv");
gl_api_->glGetQueryObjectuivFn(id, pname, params);
}
void TraceGLApi::glGetQueryObjectuivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetQueryObjectuivRobustANGLE");
gl_api_->glGetQueryObjectuivRobustANGLEFn(id, pname, bufSize, length, params);
}
void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetRenderbufferParameterivEXT");
gl_api_->glGetRenderbufferParameterivEXTFn(target, pname, params);
}
void TraceGLApi::glGetRenderbufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetRenderbufferParameterivRobustANGLE");
gl_api_->glGetRenderbufferParameterivRobustANGLEFn(target, pname, bufSize,
length, params);
}
void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler,
GLenum pname,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv");
gl_api_->glGetSamplerParameterfvFn(sampler, pname, params);
}
void TraceGLApi::glGetSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetSamplerParameterfvRobustANGLE");
gl_api_->glGetSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize, length,
params);
}
void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv");
gl_api_->glGetSamplerParameterivFn(sampler, pname, params);
}
void TraceGLApi::glGetSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetSamplerParameterivRobustANGLE");
gl_api_->glGetSamplerParameterivRobustANGLEFn(sampler, pname, bufSize, length,
params);
}
void TraceGLApi::glGetShaderInfoLogFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog");
gl_api_->glGetShaderInfoLogFn(shader, bufsize, length, infolog);
}
void TraceGLApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv");
gl_api_->glGetShaderivFn(shader, pname, params);
}
void TraceGLApi::glGetShaderivRobustANGLEFn(GLuint shader,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderivRobustANGLE");
gl_api_->glGetShaderivRobustANGLEFn(shader, pname, bufSize, length, params);
}
void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
GLenum precisiontype,
GLint* range,
GLint* precision) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetShaderPrecisionFormat");
gl_api_->glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
precision);
}
void TraceGLApi::glGetShaderSourceFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource");
gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
}
const GLubyte* TraceGLApi::glGetStringFn(GLenum name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString");
return gl_api_->glGetStringFn(name);
}
const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi");
return gl_api_->glGetStringiFn(name, index);
}
void TraceGLApi::glGetSyncivFn(GLsync sync,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv");
gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
}
void TraceGLApi::glGetTexLevelParameterfvANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTexLevelParameterfvANGLE");
gl_api_->glGetTexLevelParameterfvANGLEFn(target, level, pname, params);
}
void TraceGLApi::glGetTexLevelParameterfvRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetTexLevelParameterfvRobustANGLE");
gl_api_->glGetTexLevelParameterfvRobustANGLEFn(target, level, pname, bufSize,
length, params);
}
void TraceGLApi::glGetTexLevelParameterivANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTexLevelParameterivANGLE");
gl_api_->glGetTexLevelParameterivANGLEFn(target, level, pname, params);
}
void TraceGLApi::glGetTexLevelParameterivRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetTexLevelParameterivRobustANGLE");
gl_api_->glGetTexLevelParameterivRobustANGLEFn(target, level, pname, bufSize,
length, params);
}
void TraceGLApi::glGetTexParameterfvFn(GLenum target,
GLenum pname,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv");
gl_api_->glGetTexParameterfvFn(target, pname, params);
}
void TraceGLApi::glGetTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTexParameterfvRobustANGLE");
gl_api_->glGetTexParameterfvRobustANGLEFn(target, pname, bufSize, length,
params);
}
void TraceGLApi::glGetTexParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv");
gl_api_->glGetTexParameterivFn(target, pname, params);
}
void TraceGLApi::glGetTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTexParameterivRobustANGLE");
gl_api_->glGetTexParameterivRobustANGLEFn(target, pname, bufSize, length,
params);
}
void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLsizei* size,
GLenum* type,
char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTransformFeedbackVarying");
gl_api_->glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
size, type, name);
}
void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetTranslatedShaderSourceANGLE");
gl_api_->glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length, source);
}
GLuint TraceGLApi::glGetUniformBlockIndexFn(GLuint program,
const char* uniformBlockName) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex");
return gl_api_->glGetUniformBlockIndexFn(program, uniformBlockName);
}
void TraceGLApi::glGetUniformfvFn(GLuint program,
GLint location,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv");
gl_api_->glGetUniformfvFn(program, location, params);
}
void TraceGLApi::glGetUniformfvRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfvRobustANGLE");
gl_api_->glGetUniformfvRobustANGLEFn(program, location, bufSize, length,
params);
}
void TraceGLApi::glGetUniformIndicesFn(GLuint program,
GLsizei uniformCount,
const char* const* uniformNames,
GLuint* uniformIndices) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices");
gl_api_->glGetUniformIndicesFn(program, uniformCount, uniformNames,
uniformIndices);
}
void TraceGLApi::glGetUniformivFn(GLuint program,
GLint location,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv");
gl_api_->glGetUniformivFn(program, location, params);
}
void TraceGLApi::glGetUniformivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformivRobustANGLE");
gl_api_->glGetUniformivRobustANGLEFn(program, location, bufSize, length,
params);
}
GLint TraceGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation");
return gl_api_->glGetUniformLocationFn(program, name);
}
void TraceGLApi::glGetUniformuivFn(GLuint program,
GLint location,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformuiv");
gl_api_->glGetUniformuivFn(program, location, params);
}
void TraceGLApi::glGetUniformuivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetUniformuivRobustANGLE");
gl_api_->glGetUniformuivRobustANGLEFn(program, location, bufSize, length,
params);
}
void TraceGLApi::glGetVertexAttribfvFn(GLuint index,
GLenum pname,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv");
gl_api_->glGetVertexAttribfvFn(index, pname, params);
}
void TraceGLApi::glGetVertexAttribfvRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetVertexAttribfvRobustANGLE");
gl_api_->glGetVertexAttribfvRobustANGLEFn(index, pname, bufSize, length,
params);
}
void TraceGLApi::glGetVertexAttribIivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetVertexAttribIivRobustANGLE");
gl_api_->glGetVertexAttribIivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void TraceGLApi::glGetVertexAttribIuivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetVertexAttribIuivRobustANGLE");
gl_api_->glGetVertexAttribIuivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void TraceGLApi::glGetVertexAttribivFn(GLuint index,
GLenum pname,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv");
gl_api_->glGetVertexAttribivFn(index, pname, params);
}
void TraceGLApi::glGetVertexAttribivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glGetVertexAttribivRobustANGLE");
gl_api_->glGetVertexAttribivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void TraceGLApi::glGetVertexAttribPointervFn(GLuint index,
GLenum pname,
void** pointer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv");
gl_api_->glGetVertexAttribPointervFn(index, pname, pointer);
}
void TraceGLApi::glGetVertexAttribPointervRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** pointer) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glGetVertexAttribPointervRobustANGLE");
gl_api_->glGetVertexAttribPointervRobustANGLEFn(index, pname, bufSize, length,
pointer);
}
void TraceGLApi::glHintFn(GLenum target, GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint");
gl_api_->glHintFn(target, mode);
}
void TraceGLApi::glImportMemoryFdEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLint fd) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glImportMemoryFdEXT");
gl_api_->glImportMemoryFdEXTFn(memory, size, handleType, fd);
}
void TraceGLApi::glImportMemoryWin32HandleEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
void* handle) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glImportMemoryWin32HandleEXT");
gl_api_->glImportMemoryWin32HandleEXTFn(memory, size, handleType, handle);
}
void TraceGLApi::glImportMemoryZirconHandleANGLEFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLuint handle) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glImportMemoryZirconHandleANGLE");
gl_api_->glImportMemoryZirconHandleANGLEFn(memory, size, handleType, handle);
}
void TraceGLApi::glImportSemaphoreFdEXTFn(GLuint semaphore,
GLenum handleType,
GLint fd) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glImportSemaphoreFdEXT");
gl_api_->glImportSemaphoreFdEXTFn(semaphore, handleType, fd);
}
void TraceGLApi::glImportSemaphoreWin32HandleEXTFn(GLuint semaphore,
GLenum handleType,
void* handle) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glImportSemaphoreWin32HandleEXT");
gl_api_->glImportSemaphoreWin32HandleEXTFn(semaphore, handleType, handle);
}
void TraceGLApi::glImportSemaphoreZirconHandleANGLEFn(GLuint semaphore,
GLenum handleType,
GLuint handle) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glImportSemaphoreZirconHandleANGLE");
gl_api_->glImportSemaphoreZirconHandleANGLEFn(semaphore, handleType, handle);
}
void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT");
gl_api_->glInsertEventMarkerEXTFn(length, marker);
}
void TraceGLApi::glInvalidateFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer");
gl_api_->glInvalidateFramebufferFn(target, numAttachments, attachments);
}
void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments,
GLint x,
GLint y,
GLint width,
GLint height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glInvalidateSubFramebuffer");
gl_api_->glInvalidateSubFramebufferFn(target, numAttachments, attachments, x,
y, width, height);
}
void TraceGLApi::glInvalidateTextureANGLEFn(GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateTextureANGLE");
gl_api_->glInvalidateTextureANGLEFn(target);
}
GLboolean TraceGLApi::glIsBufferFn(GLuint buffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer");
return gl_api_->glIsBufferFn(buffer);
}
GLboolean TraceGLApi::glIsEnabledFn(GLenum cap) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled");
return gl_api_->glIsEnabledFn(cap);
}
GLboolean TraceGLApi::glIsEnablediOESFn(GLenum target, GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnablediOES");
return gl_api_->glIsEnablediOESFn(target, index);
}
GLboolean TraceGLApi::glIsFenceNVFn(GLuint fence) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV");
return gl_api_->glIsFenceNVFn(fence);
}
GLboolean TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT");
return gl_api_->glIsFramebufferEXTFn(framebuffer);
}
GLboolean TraceGLApi::glIsProgramFn(GLuint program) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram");
return gl_api_->glIsProgramFn(program);
}
GLboolean TraceGLApi::glIsQueryFn(GLuint query) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery");
return gl_api_->glIsQueryFn(query);
}
GLboolean TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT");
return gl_api_->glIsRenderbufferEXTFn(renderbuffer);
}
GLboolean TraceGLApi::glIsSamplerFn(GLuint sampler) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler");
return gl_api_->glIsSamplerFn(sampler);
}
GLboolean TraceGLApi::glIsShaderFn(GLuint shader) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader");
return gl_api_->glIsShaderFn(shader);
}
GLboolean TraceGLApi::glIsSyncFn(GLsync sync) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync");
return gl_api_->glIsSyncFn(sync);
}
GLboolean TraceGLApi::glIsTextureFn(GLuint texture) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture");
return gl_api_->glIsTextureFn(texture);
}
GLboolean TraceGLApi::glIsTransformFeedbackFn(GLuint id) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback");
return gl_api_->glIsTransformFeedbackFn(id);
}
GLboolean TraceGLApi::glIsVertexArrayOESFn(GLuint array) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES");
return gl_api_->glIsVertexArrayOESFn(array);
}
void TraceGLApi::glLineWidthFn(GLfloat width) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth");
gl_api_->glLineWidthFn(width);
}
void TraceGLApi::glLinkProgramFn(GLuint program) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram");
gl_api_->glLinkProgramFn(program);
}
void* TraceGLApi::glMapBufferFn(GLenum target, GLenum access) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer");
return gl_api_->glMapBufferFn(target, access);
}
void* TraceGLApi::glMapBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length,
GLbitfield access) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange");
return gl_api_->glMapBufferRangeFn(target, offset, length, access);
}
void TraceGLApi::glMaxShaderCompilerThreadsKHRFn(GLuint count) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glMaxShaderCompilerThreadsKHR");
gl_api_->glMaxShaderCompilerThreadsKHRFn(count);
}
void TraceGLApi::glMemoryObjectParameterivEXTFn(GLuint memoryObject,
GLenum pname,
const GLint* param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glMemoryObjectParameterivEXT");
gl_api_->glMemoryObjectParameterivEXTFn(memoryObject, pname, param);
}
void TraceGLApi::glMultiDrawArraysANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMultiDrawArraysANGLE");
gl_api_->glMultiDrawArraysANGLEFn(mode, firsts, counts, drawcount);
}
void TraceGLApi::glMultiDrawArraysInstancedANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glMultiDrawArraysInstancedANGLE");
gl_api_->glMultiDrawArraysInstancedANGLEFn(mode, firsts, counts,
instanceCounts, drawcount);
}
void TraceGLApi::glMultiDrawArraysInstancedBaseInstanceANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
const GLuint* baseInstances,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glMultiDrawArraysInstancedBaseInstanceANGLE");
gl_api_->glMultiDrawArraysInstancedBaseInstanceANGLEFn(
mode, firsts, counts, instanceCounts, baseInstances, drawcount);
}
void TraceGLApi::glMultiDrawElementsANGLEFn(GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMultiDrawElementsANGLE");
gl_api_->glMultiDrawElementsANGLEFn(mode, counts, type, indices, drawcount);
}
void TraceGLApi::glMultiDrawElementsInstancedANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glMultiDrawElementsInstancedANGLE");
gl_api_->glMultiDrawElementsInstancedANGLEFn(mode, counts, type, indices,
instanceCounts, drawcount);
}
void TraceGLApi::glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
const GLint* baseVertices,
const GLuint* baseInstances,
GLsizei drawcount) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu",
"TraceGLAPI::glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE");
gl_api_->glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, counts, type, indices, instanceCounts, baseVertices, baseInstances,
drawcount);
}
void TraceGLApi::glObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei length,
const char* label) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glObjectLabelKHR");
gl_api_->glObjectLabelKHRFn(identifier, name, length, label);
}
void TraceGLApi::glObjectPtrLabelKHRFn(void* ptr,
GLsizei length,
const char* label) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glObjectPtrLabelKHR");
gl_api_->glObjectPtrLabelKHRFn(ptr, length, label);
}
void TraceGLApi::glPatchParameteriOESFn(GLenum pname, GLint value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPatchParameteriOES");
gl_api_->glPatchParameteriOESFn(pname, value);
}
void TraceGLApi::glPauseTransformFeedbackFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback");
gl_api_->glPauseTransformFeedbackFn();
}
void TraceGLApi::glPixelLocalStorageBarrierANGLEFn() {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glPixelLocalStorageBarrierANGLE");
gl_api_->glPixelLocalStorageBarrierANGLEFn();
}
void TraceGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei");
gl_api_->glPixelStoreiFn(pname, param);
}
void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri");
gl_api_->glPointParameteriFn(pname, param);
}
void TraceGLApi::glPolygonModeFn(GLenum face, GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonMode");
gl_api_->glPolygonModeFn(face, mode);
}
void TraceGLApi::glPolygonModeANGLEFn(GLenum face, GLenum mode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonModeANGLE");
gl_api_->glPolygonModeANGLEFn(face, mode);
}
void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset");
gl_api_->glPolygonOffsetFn(factor, units);
}
void TraceGLApi::glPolygonOffsetClampEXTFn(GLfloat factor,
GLfloat units,
GLfloat clamp) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffsetClampEXT");
gl_api_->glPolygonOffsetClampEXTFn(factor, units, clamp);
}
void TraceGLApi::glPopDebugGroupKHRFn() {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopDebugGroupKHR");
gl_api_->glPopDebugGroupKHRFn();
}
void TraceGLApi::glPopGroupMarkerEXTFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT");
gl_api_->glPopGroupMarkerEXTFn();
}
void TraceGLApi::glPrimitiveRestartIndexFn(GLuint index) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPrimitiveRestartIndex");
gl_api_->glPrimitiveRestartIndexFn(index);
}
void TraceGLApi::glProgramBinaryFn(GLuint program,
GLenum binaryFormat,
const GLvoid* binary,
GLsizei length) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary");
gl_api_->glProgramBinaryFn(program, binaryFormat, binary, length);
}
void TraceGLApi::glProgramParameteriFn(GLuint program,
GLenum pname,
GLint value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri");
gl_api_->glProgramParameteriFn(program, pname, value);
}
void TraceGLApi::glProvokingVertexANGLEFn(GLenum provokeMode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProvokingVertexANGLE");
gl_api_->glProvokingVertexANGLEFn(provokeMode);
}
void TraceGLApi::glPushDebugGroupKHRFn(GLenum source,
GLuint id,
GLsizei length,
const char* message) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushDebugGroupKHR");
gl_api_->glPushDebugGroupKHRFn(source, id, length, message);
}
void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT");
gl_api_->glPushGroupMarkerEXTFn(length, marker);
}
void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter");
gl_api_->glQueryCounterFn(id, target);
}
void TraceGLApi::glReadBufferFn(GLenum src) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer");
gl_api_->glReadBufferFn(src);
}
void TraceGLApi::glReadPixelsFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels");
gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels);
}
void TraceGLApi::glReadPixelsRobustANGLEFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
GLsizei* length,
GLsizei* columns,
GLsizei* rows,
void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixelsRobustANGLE");
gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize,
length, columns, rows, pixels);
}
void TraceGLApi::glReleaseShaderCompilerFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler");
gl_api_->glReleaseShaderCompilerFn();
}
void TraceGLApi::glReleaseTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
GLenum* layouts) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseTexturesANGLE");
gl_api_->glReleaseTexturesANGLEFn(numTextures, textures, layouts);
}
void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT");
gl_api_->glRenderbufferStorageEXTFn(target, internalformat, width, height);
}
void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glRenderbufferStorageMultisample");
gl_api_->glRenderbufferStorageMultisampleFn(target, samples, internalformat,
width, height);
}
void TraceGLApi::glRenderbufferStorageMultisampleAdvancedAMDFn(
GLenum target,
GLsizei samples,
GLsizei storageSamples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glRenderbufferStorageMultisampleAdvancedAMD");
gl_api_->glRenderbufferStorageMultisampleAdvancedAMDFn(
target, samples, storageSamples, internalformat, width, height);
}
void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0(
"gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT");
gl_api_->glRenderbufferStorageMultisampleEXTFn(target, samples,
internalformat, width, height);
}
void TraceGLApi::glRequestExtensionANGLEFn(const char* name) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRequestExtensionANGLE");
gl_api_->glRequestExtensionANGLEFn(name);
}
void TraceGLApi::glResumeTransformFeedbackFn(void) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback");
gl_api_->glResumeTransformFeedbackFn();
}
void TraceGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage");
gl_api_->glSampleCoverageFn(value, invert);
}
void TraceGLApi::glSamplerParameterfFn(GLuint sampler,
GLenum pname,
GLfloat param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf");
gl_api_->glSamplerParameterfFn(sampler, pname, param);
}
void TraceGLApi::glSamplerParameterfvFn(GLuint sampler,
GLenum pname,
const GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv");
gl_api_->glSamplerParameterfvFn(sampler, pname, params);
}
void TraceGLApi::glSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLfloat* param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glSamplerParameterfvRobustANGLE");
gl_api_->glSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize, param);
}
void TraceGLApi::glSamplerParameteriFn(GLuint sampler,
GLenum pname,
GLint param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri");
gl_api_->glSamplerParameteriFn(sampler, pname, param);
}
void TraceGLApi::glSamplerParameterivFn(GLuint sampler,
GLenum pname,
const GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv");
gl_api_->glSamplerParameterivFn(sampler, pname, params);
}
void TraceGLApi::glSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLint* param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glSamplerParameterivRobustANGLE");
gl_api_->glSamplerParameterivRobustANGLEFn(sampler, pname, bufSize, param);
}
void TraceGLApi::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor");
gl_api_->glScissorFn(x, y, width, height);
}
void TraceGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV");
gl_api_->glSetFenceNVFn(fence, condition);
}
void TraceGLApi::glShaderBinaryFn(GLsizei n,
const GLuint* shaders,
GLenum binaryformat,
const void* binary,
GLsizei length) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary");
gl_api_->glShaderBinaryFn(n, shaders, binaryformat, binary, length);
}
void TraceGLApi::glShaderSourceFn(GLuint shader,
GLsizei count,
const char* const* str,
const GLint* length) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource");
gl_api_->glShaderSourceFn(shader, count, str, length);
}
void TraceGLApi::glSignalSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* dstLayouts) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSignalSemaphoreEXT");
gl_api_->glSignalSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, dstLayouts);
}
void TraceGLApi::glStartTilingQCOMFn(GLuint x,
GLuint y,
GLuint width,
GLuint height,
GLbitfield preserveMask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStartTilingQCOM");
gl_api_->glStartTilingQCOMFn(x, y, width, height, preserveMask);
}
void TraceGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc");
gl_api_->glStencilFuncFn(func, ref, mask);
}
void TraceGLApi::glStencilFuncSeparateFn(GLenum face,
GLenum func,
GLint ref,
GLuint mask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate");
gl_api_->glStencilFuncSeparateFn(face, func, ref, mask);
}
void TraceGLApi::glStencilMaskFn(GLuint mask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask");
gl_api_->glStencilMaskFn(mask);
}
void TraceGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate");
gl_api_->glStencilMaskSeparateFn(face, mask);
}
void TraceGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp");
gl_api_->glStencilOpFn(fail, zfail, zpass);
}
void TraceGLApi::glStencilOpSeparateFn(GLenum face,
GLenum fail,
GLenum zfail,
GLenum zpass) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate");
gl_api_->glStencilOpSeparateFn(face, fail, zfail, zpass);
}
GLboolean TraceGLApi::glTestFenceNVFn(GLuint fence) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV");
return gl_api_->glTestFenceNVFn(fence);
}
void TraceGLApi::glTexBufferOESFn(GLenum target,
GLenum internalformat,
GLuint buffer) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexBufferOES");
gl_api_->glTexBufferOESFn(target, internalformat, buffer);
}
void TraceGLApi::glTexBufferRangeOESFn(GLenum target,
GLenum internalformat,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexBufferRangeOES");
gl_api_->glTexBufferRangeOESFn(target, internalformat, buffer, offset, size);
}
void TraceGLApi::glTexImage2DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D");
gl_api_->glTexImage2DFn(target, level, internalformat, width, height, border,
format, type, pixels);
}
void TraceGLApi::glTexImage2DExternalANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2DExternalANGLE");
gl_api_->glTexImage2DExternalANGLEFn(target, level, internalformat, width,
height, border, format, type);
}
void TraceGLApi::glTexImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2DRobustANGLE");
gl_api_->glTexImage2DRobustANGLEFn(target, level, internalformat, width,
height, border, format, type, bufSize,
pixels);
}
void TraceGLApi::glTexImage3DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D");
gl_api_->glTexImage3DFn(target, level, internalformat, width, height, depth,
border, format, type, pixels);
}
void TraceGLApi::glTexImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3DRobustANGLE");
gl_api_->glTexImage3DRobustANGLEFn(target, level, internalformat, width,
height, depth, border, format, type,
bufSize, pixels);
}
void TraceGLApi::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf");
gl_api_->glTexParameterfFn(target, pname, param);
}
void TraceGLApi::glTexParameterfvFn(GLenum target,
GLenum pname,
const GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv");
gl_api_->glTexParameterfvFn(target, pname, params);
}
void TraceGLApi::glTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLfloat* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTexParameterfvRobustANGLE");
gl_api_->glTexParameterfvRobustANGLEFn(target, pname, bufSize, params);
}
void TraceGLApi::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri");
gl_api_->glTexParameteriFn(target, pname, param);
}
void TraceGLApi::glTexParameterivFn(GLenum target,
GLenum pname,
const GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv");
gl_api_->glTexParameterivFn(target, pname, params);
}
void TraceGLApi::glTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLint* params) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTexParameterivRobustANGLE");
gl_api_->glTexParameterivRobustANGLEFn(target, pname, bufSize, params);
}
void TraceGLApi::glTexStorage2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT");
gl_api_->glTexStorage2DEXTFn(target, levels, internalformat, width, height);
}
void TraceGLApi::glTexStorage3DFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D");
gl_api_->glTexStorage3DFn(target, levels, internalformat, width, height,
depth);
}
void TraceGLApi::glTexStorageMem2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorageMem2DEXT");
gl_api_->glTexStorageMem2DEXTFn(target, levels, internalFormat, width, height,
memory, offset);
}
void TraceGLApi::glTexStorageMemFlags2DANGLEFn(
GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset,
GLbitfield createFlags,
GLbitfield usageFlags,
const void* imageCreateInfoPNext) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTexStorageMemFlags2DANGLE");
gl_api_->glTexStorageMemFlags2DANGLEFn(target, levels, internalFormat, width,
height, memory, offset, createFlags,
usageFlags, imageCreateInfoPNext);
}
void TraceGLApi::glTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D");
gl_api_->glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
format, type, pixels);
}
void TraceGLApi::glTexSubImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTexSubImage2DRobustANGLE");
gl_api_->glTexSubImage2DRobustANGLEFn(target, level, xoffset, yoffset, width,
height, format, type, bufSize, pixels);
}
void TraceGLApi::glTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage3D");
gl_api_->glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
height, depth, format, type, pixels);
}
void TraceGLApi::glTexSubImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTexSubImage3DRobustANGLE");
gl_api_->glTexSubImage3DRobustANGLEFn(target, level, xoffset, yoffset,
zoffset, width, height, depth, format,
type, bufSize, pixels);
}
void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program,
GLsizei count,
const char* const* varyings,
GLenum bufferMode) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glTransformFeedbackVaryings");
gl_api_->glTransformFeedbackVaryingsFn(program, count, varyings, bufferMode);
}
void TraceGLApi::glUniform1fFn(GLint location, GLfloat x) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f");
gl_api_->glUniform1fFn(location, x);
}
void TraceGLApi::glUniform1fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv");
gl_api_->glUniform1fvFn(location, count, v);
}
void TraceGLApi::glUniform1iFn(GLint location, GLint x) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i");
gl_api_->glUniform1iFn(location, x);
}
void TraceGLApi::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv");
gl_api_->glUniform1ivFn(location, count, v);
}
void TraceGLApi::glUniform1uiFn(GLint location, GLuint v0) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui");
gl_api_->glUniform1uiFn(location, v0);
}
void TraceGLApi::glUniform1uivFn(GLint location,
GLsizei count,
const GLuint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv");
gl_api_->glUniform1uivFn(location, count, v);
}
void TraceGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f");
gl_api_->glUniform2fFn(location, x, y);
}
void TraceGLApi::glUniform2fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv");
gl_api_->glUniform2fvFn(location, count, v);
}
void TraceGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i");
gl_api_->glUniform2iFn(location, x, y);
}
void TraceGLApi::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv");
gl_api_->glUniform2ivFn(location, count, v);
}
void TraceGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui");
gl_api_->glUniform2uiFn(location, v0, v1);
}
void TraceGLApi::glUniform2uivFn(GLint location,
GLsizei count,
const GLuint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv");
gl_api_->glUniform2uivFn(location, count, v);
}
void TraceGLApi::glUniform3fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f");
gl_api_->glUniform3fFn(location, x, y, z);
}
void TraceGLApi::glUniform3fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv");
gl_api_->glUniform3fvFn(location, count, v);
}
void TraceGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i");
gl_api_->glUniform3iFn(location, x, y, z);
}
void TraceGLApi::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv");
gl_api_->glUniform3ivFn(location, count, v);
}
void TraceGLApi::glUniform3uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui");
gl_api_->glUniform3uiFn(location, v0, v1, v2);
}
void TraceGLApi::glUniform3uivFn(GLint location,
GLsizei count,
const GLuint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv");
gl_api_->glUniform3uivFn(location, count, v);
}
void TraceGLApi::glUniform4fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f");
gl_api_->glUniform4fFn(location, x, y, z, w);
}
void TraceGLApi::glUniform4fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv");
gl_api_->glUniform4fvFn(location, count, v);
}
void TraceGLApi::glUniform4iFn(GLint location,
GLint x,
GLint y,
GLint z,
GLint w) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i");
gl_api_->glUniform4iFn(location, x, y, z, w);
}
void TraceGLApi::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv");
gl_api_->glUniform4ivFn(location, count, v);
}
void TraceGLApi::glUniform4uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2,
GLuint v3) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui");
gl_api_->glUniform4uiFn(location, v0, v1, v2, v3);
}
void TraceGLApi::glUniform4uivFn(GLint location,
GLsizei count,
const GLuint* v) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv");
gl_api_->glUniform4uivFn(location, count, v);
}
void TraceGLApi::glUniformBlockBindingFn(GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding");
gl_api_->glUniformBlockBindingFn(program, uniformBlockIndex,
uniformBlockBinding);
}
void TraceGLApi::glUniformMatrix2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv");
gl_api_->glUniformMatrix2fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix2x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv");
gl_api_->glUniformMatrix2x3fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix2x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv");
gl_api_->glUniformMatrix2x4fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv");
gl_api_->glUniformMatrix3fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix3x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv");
gl_api_->glUniformMatrix3x2fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix3x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv");
gl_api_->glUniformMatrix3x4fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv");
gl_api_->glUniformMatrix4fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix4x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv");
gl_api_->glUniformMatrix4x2fvFn(location, count, transpose, value);
}
void TraceGLApi::glUniformMatrix4x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv");
gl_api_->glUniformMatrix4x3fvFn(location, count, transpose, value);
}
GLboolean TraceGLApi::glUnmapBufferFn(GLenum target) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer");
return gl_api_->glUnmapBufferFn(target);
}
void TraceGLApi::glUseProgramFn(GLuint program) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram");
gl_api_->glUseProgramFn(program);
}
void TraceGLApi::glValidateProgramFn(GLuint program) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram");
gl_api_->glValidateProgramFn(program);
}
void TraceGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f");
gl_api_->glVertexAttrib1fFn(indx, x);
}
void TraceGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv");
gl_api_->glVertexAttrib1fvFn(indx, values);
}
void TraceGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f");
gl_api_->glVertexAttrib2fFn(indx, x, y);
}
void TraceGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv");
gl_api_->glVertexAttrib2fvFn(indx, values);
}
void TraceGLApi::glVertexAttrib3fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f");
gl_api_->glVertexAttrib3fFn(indx, x, y, z);
}
void TraceGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv");
gl_api_->glVertexAttrib3fvFn(indx, values);
}
void TraceGLApi::glVertexAttrib4fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f");
gl_api_->glVertexAttrib4fFn(indx, x, y, z, w);
}
void TraceGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv");
gl_api_->glVertexAttrib4fvFn(indx, values);
}
void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu",
"TraceGLAPI::glVertexAttribDivisorANGLE");
gl_api_->glVertexAttribDivisorANGLEFn(index, divisor);
}
void TraceGLApi::glVertexAttribI4iFn(GLuint indx,
GLint x,
GLint y,
GLint z,
GLint w) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i");
gl_api_->glVertexAttribI4iFn(indx, x, y, z, w);
}
void TraceGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv");
gl_api_->glVertexAttribI4ivFn(indx, values);
}
void TraceGLApi::glVertexAttribI4uiFn(GLuint indx,
GLuint x,
GLuint y,
GLuint z,
GLuint w) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui");
gl_api_->glVertexAttribI4uiFn(indx, x, y, z, w);
}
void TraceGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv");
gl_api_->glVertexAttribI4uivFn(indx, values);
}
void TraceGLApi::glVertexAttribIPointerFn(GLuint indx,
GLint size,
GLenum type,
GLsizei stride,
const void* ptr) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer");
gl_api_->glVertexAttribIPointerFn(indx, size, type, stride, ptr);
}
void TraceGLApi::glVertexAttribPointerFn(GLuint indx,
GLint size,
GLenum type,
GLboolean normalized,
GLsizei stride,
const void* ptr) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer");
gl_api_->glVertexAttribPointerFn(indx, size, type, normalized, stride, ptr);
}
void TraceGLApi::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport");
gl_api_->glViewportFn(x, y, width, height);
}
void TraceGLApi::glWaitSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* srcLayouts) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSemaphoreEXT");
gl_api_->glWaitSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, srcLayouts);
}
void TraceGLApi::glWaitSyncFn(GLsync sync, GLbitfield flags, GLuint64 timeout) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync");
gl_api_->glWaitSyncFn(sync, flags, timeout);
}
void TraceGLApi::glWindowRectanglesEXTFn(GLenum mode,
GLsizei n,
const GLint* box) {
TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWindowRectanglesEXT");
gl_api_->glWindowRectanglesEXTFn(mode, n, box);
}
void LogGLApi::glAcquireTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
const GLenum* layouts) {
GL_SERVICE_LOG("glAcquireTexturesANGLE"
<< "(" << numTextures << ", "
<< static_cast<const void*>(textures) << ", "
<< static_cast<const void*>(layouts) << ")");
gl_api_->glAcquireTexturesANGLEFn(numTextures, textures, layouts);
}
void LogGLApi::glActiveTextureFn(GLenum texture) {
GL_SERVICE_LOG("glActiveTexture" << "(" << GLEnums::GetStringEnum(texture)
<< ")");
gl_api_->glActiveTextureFn(texture);
}
void LogGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
GL_SERVICE_LOG("glAttachShader" << "(" << program << ", " << shader << ")");
gl_api_->glAttachShaderFn(program, shader);
}
void LogGLApi::glBeginPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* loadops) {
GL_SERVICE_LOG("glBeginPixelLocalStorageANGLE"
<< "(" << n << ", " << static_cast<const void*>(loadops)
<< ")");
gl_api_->glBeginPixelLocalStorageANGLEFn(n, loadops);
}
void LogGLApi::glBeginQueryFn(GLenum target, GLuint id) {
GL_SERVICE_LOG("glBeginQuery" << "(" << GLEnums::GetStringEnum(target) << ", "
<< id << ")");
gl_api_->glBeginQueryFn(target, id);
}
void LogGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
GL_SERVICE_LOG("glBeginTransformFeedback"
<< "(" << GLEnums::GetStringEnum(primitiveMode) << ")");
gl_api_->glBeginTransformFeedbackFn(primitiveMode);
}
void LogGLApi::glBindAttribLocationFn(GLuint program,
GLuint index,
const char* name) {
GL_SERVICE_LOG("glBindAttribLocation" << "(" << program << ", " << index
<< ", " << name << ")");
gl_api_->glBindAttribLocationFn(program, index, name);
}
void LogGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
GL_SERVICE_LOG("glBindBuffer" << "(" << GLEnums::GetStringEnum(target) << ", "
<< buffer << ")");
gl_api_->glBindBufferFn(target, buffer);
}
void LogGLApi::glBindBufferBaseFn(GLenum target, GLuint index, GLuint buffer) {
GL_SERVICE_LOG("glBindBufferBase" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ", " << buffer << ")");
gl_api_->glBindBufferBaseFn(target, index, buffer);
}
void LogGLApi::glBindBufferRangeFn(GLenum target,
GLuint index,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
GL_SERVICE_LOG("glBindBufferRange" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ", " << buffer << ", "
<< offset << ", " << size << ")");
gl_api_->glBindBufferRangeFn(target, index, buffer, offset, size);
}
void LogGLApi::glBindFragDataLocationFn(GLuint program,
GLuint colorNumber,
const char* name) {
GL_SERVICE_LOG("glBindFragDataLocation" << "(" << program << ", "
<< colorNumber << ", " << name
<< ")");
gl_api_->glBindFragDataLocationFn(program, colorNumber, name);
}
void LogGLApi::glBindFragDataLocationIndexedFn(GLuint program,
GLuint colorNumber,
GLuint index,
const char* name) {
GL_SERVICE_LOG("glBindFragDataLocationIndexed" << "(" << program << ", "
<< colorNumber << ", " << index
<< ", " << name << ")");
gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name);
}
void LogGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
GL_SERVICE_LOG("glBindFramebufferEXT" << "(" << GLEnums::GetStringEnum(target)
<< ", " << framebuffer << ")");
gl_api_->glBindFramebufferEXTFn(target, framebuffer);
}
void LogGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
GL_SERVICE_LOG("glBindRenderbufferEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< renderbuffer << ")");
gl_api_->glBindRenderbufferEXTFn(target, renderbuffer);
}
void LogGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
GL_SERVICE_LOG("glBindSampler" << "(" << unit << ", " << sampler << ")");
gl_api_->glBindSamplerFn(unit, sampler);
}
void LogGLApi::glBindTextureFn(GLenum target, GLuint texture) {
GL_SERVICE_LOG("glBindTexture" << "(" << GLEnums::GetStringEnum(target)
<< ", " << texture << ")");
gl_api_->glBindTextureFn(target, texture);
}
void LogGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
GL_SERVICE_LOG("glBindTransformFeedback"
<< "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
gl_api_->glBindTransformFeedbackFn(target, id);
}
void LogGLApi::glBindUniformLocationCHROMIUMFn(GLuint program,
GLint location,
const char* name) {
GL_SERVICE_LOG("glBindUniformLocationCHROMIUM"
<< "(" << program << ", " << location << ", " << name << ")");
gl_api_->glBindUniformLocationCHROMIUMFn(program, location, name);
}
void LogGLApi::glBindVertexArrayOESFn(GLuint array) {
GL_SERVICE_LOG("glBindVertexArrayOES" << "(" << array << ")");
gl_api_->glBindVertexArrayOESFn(array);
}
void LogGLApi::glBlendBarrierKHRFn(void) {
GL_SERVICE_LOG("glBlendBarrierKHR" << "(" << ")");
gl_api_->glBlendBarrierKHRFn();
}
void LogGLApi::glBlendColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
GL_SERVICE_LOG("glBlendColor" << "(" << red << ", " << green << ", " << blue
<< ", " << alpha << ")");
gl_api_->glBlendColorFn(red, green, blue, alpha);
}
void LogGLApi::glBlendEquationFn(GLenum mode) {
GL_SERVICE_LOG("glBlendEquation" << "(" << GLEnums::GetStringEnum(mode)
<< ")");
gl_api_->glBlendEquationFn(mode);
}
void LogGLApi::glBlendEquationiOESFn(GLuint buf, GLenum mode) {
GL_SERVICE_LOG("glBlendEquationiOES" << "(" << buf << ", "
<< GLEnums::GetStringEnum(mode) << ")");
gl_api_->glBlendEquationiOESFn(buf, mode);
}
void LogGLApi::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
GL_SERVICE_LOG("glBlendEquationSeparate"
<< "(" << GLEnums::GetStringEnum(modeRGB) << ", "
<< GLEnums::GetStringEnum(modeAlpha) << ")");
gl_api_->glBlendEquationSeparateFn(modeRGB, modeAlpha);
}
void LogGLApi::glBlendEquationSeparateiOESFn(GLuint buf,
GLenum modeRGB,
GLenum modeAlpha) {
GL_SERVICE_LOG("glBlendEquationSeparateiOES"
<< "(" << buf << ", " << GLEnums::GetStringEnum(modeRGB)
<< ", " << GLEnums::GetStringEnum(modeAlpha) << ")");
gl_api_->glBlendEquationSeparateiOESFn(buf, modeRGB, modeAlpha);
}
void LogGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
GL_SERVICE_LOG("glBlendFunc" << "(" << GLEnums::GetStringEnum(sfactor) << ", "
<< GLEnums::GetStringEnum(dfactor) << ")");
gl_api_->glBlendFuncFn(sfactor, dfactor);
}
void LogGLApi::glBlendFunciOESFn(GLuint buf, GLenum sfactor, GLenum dfactor) {
GL_SERVICE_LOG("glBlendFunciOES" << "(" << buf << ", "
<< GLEnums::GetStringEnum(sfactor) << ", "
<< GLEnums::GetStringEnum(dfactor) << ")");
gl_api_->glBlendFunciOESFn(buf, sfactor, dfactor);
}
void LogGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
GL_SERVICE_LOG("glBlendFuncSeparate"
<< "(" << GLEnums::GetStringEnum(srcRGB) << ", "
<< GLEnums::GetStringEnum(dstRGB) << ", "
<< GLEnums::GetStringEnum(srcAlpha) << ", "
<< GLEnums::GetStringEnum(dstAlpha) << ")");
gl_api_->glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void LogGLApi::glBlendFuncSeparateiOESFn(GLuint buf,
GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
GL_SERVICE_LOG("glBlendFuncSeparateiOES"
<< "(" << buf << ", " << GLEnums::GetStringEnum(srcRGB) << ", "
<< GLEnums::GetStringEnum(dstRGB) << ", "
<< GLEnums::GetStringEnum(srcAlpha) << ", "
<< GLEnums::GetStringEnum(dstAlpha) << ")");
gl_api_->glBlendFuncSeparateiOESFn(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void LogGLApi::glBlitFramebufferFn(GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter) {
GL_SERVICE_LOG("glBlitFramebuffer" << "(" << srcX0 << ", " << srcY0 << ", "
<< srcX1 << ", " << srcY1 << ", " << dstX0
<< ", " << dstY0 << ", " << dstX1 << ", "
<< dstY1 << ", " << mask << ", "
<< GLEnums::GetStringEnum(filter) << ")");
gl_api_->glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
dstY1, mask, filter);
}
void LogGLApi::glBlobCacheCallbacksANGLEFn(GLSETBLOBPROCANGLE set,
GLGETBLOBPROCANGLE get,
const void* userData) {
GL_SERVICE_LOG("glBlobCacheCallbacksANGLE"
<< "(" << reinterpret_cast<void*>(set) << ", "
<< reinterpret_cast<void*>(get) << ", "
<< static_cast<const void*>(userData) << ")");
gl_api_->glBlobCacheCallbacksANGLEFn(set, get, userData);
}
void LogGLApi::glBufferDataFn(GLenum target,
GLsizeiptr size,
const void* data,
GLenum usage) {
GL_SERVICE_LOG("glBufferData" << "(" << GLEnums::GetStringEnum(target) << ", "
<< size << ", "
<< static_cast<const void*>(data) << ", "
<< GLEnums::GetStringEnum(usage) << ")");
gl_api_->glBufferDataFn(target, size, data, usage);
}
void LogGLApi::glBufferSubDataFn(GLenum target,
GLintptr offset,
GLsizeiptr size,
const void* data) {
GL_SERVICE_LOG("glBufferSubData" << "(" << GLEnums::GetStringEnum(target)
<< ", " << offset << ", " << size << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glBufferSubDataFn(target, offset, size, data);
}
GLenum LogGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
<< "(" << GLEnums::GetStringEnum(target) << ")");
GLenum result = gl_api_->glCheckFramebufferStatusEXTFn(target);
GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result));
return result;
}
void LogGLApi::glClearFn(GLbitfield mask) {
GL_SERVICE_LOG("glClear" << "(" << mask << ")");
gl_api_->glClearFn(mask);
}
void LogGLApi::glClearBufferfiFn(GLenum buffer,
GLint drawbuffer,
const GLfloat depth,
GLint stencil) {
GL_SERVICE_LOG("glClearBufferfi" << "(" << GLEnums::GetStringEnum(buffer)
<< ", " << drawbuffer << ", " << depth
<< ", " << stencil << ")");
gl_api_->glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
}
void LogGLApi::glClearBufferfvFn(GLenum buffer,
GLint drawbuffer,
const GLfloat* value) {
GL_SERVICE_LOG("glClearBufferfv" << "(" << GLEnums::GetStringEnum(buffer)
<< ", " << drawbuffer << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glClearBufferfvFn(buffer, drawbuffer, value);
}
void LogGLApi::glClearBufferivFn(GLenum buffer,
GLint drawbuffer,
const GLint* value) {
GL_SERVICE_LOG("glClearBufferiv" << "(" << GLEnums::GetStringEnum(buffer)
<< ", " << drawbuffer << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glClearBufferivFn(buffer, drawbuffer, value);
}
void LogGLApi::glClearBufferuivFn(GLenum buffer,
GLint drawbuffer,
const GLuint* value) {
GL_SERVICE_LOG("glClearBufferuiv" << "(" << GLEnums::GetStringEnum(buffer)
<< ", " << drawbuffer << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glClearBufferuivFn(buffer, drawbuffer, value);
}
void LogGLApi::glClearColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
GL_SERVICE_LOG("glClearColor" << "(" << red << ", " << green << ", " << blue
<< ", " << alpha << ")");
gl_api_->glClearColorFn(red, green, blue, alpha);
}
void LogGLApi::glClearDepthFn(GLclampd depth) {
GL_SERVICE_LOG("glClearDepth" << "(" << depth << ")");
gl_api_->glClearDepthFn(depth);
}
void LogGLApi::glClearDepthfFn(GLclampf depth) {
GL_SERVICE_LOG("glClearDepthf" << "(" << depth << ")");
gl_api_->glClearDepthfFn(depth);
}
void LogGLApi::glClearStencilFn(GLint s) {
GL_SERVICE_LOG("glClearStencil" << "(" << s << ")");
gl_api_->glClearStencilFn(s);
}
void LogGLApi::glClearTexImageFn(GLuint texture,
GLint level,
GLenum format,
GLenum type,
const GLvoid* data) {
GL_SERVICE_LOG("glClearTexImage" << "(" << texture << ", " << level << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glClearTexImageFn(texture, level, format, type, data);
}
void LogGLApi::glClearTexSubImageFn(GLuint texture,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint width,
GLint height,
GLint depth,
GLenum format,
GLenum type,
const GLvoid* data) {
GL_SERVICE_LOG("glClearTexSubImage" << "(" << texture << ", " << level << ", "
<< xoffset << ", " << yoffset << ", "
<< zoffset << ", " << width << ", "
<< height << ", " << depth << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glClearTexSubImageFn(texture, level, xoffset, yoffset, zoffset,
width, height, depth, format, type, data);
}
GLenum LogGLApi::glClientWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) {
GL_SERVICE_LOG("glClientWaitSync" << "(" << sync << ", " << flags << ", "
<< timeout << ")");
GLenum result = gl_api_->glClientWaitSyncFn(sync, flags, timeout);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glClipControlEXTFn(GLenum origin, GLenum depth) {
GL_SERVICE_LOG("glClipControlEXT" << "(" << GLEnums::GetStringEnum(origin)
<< ", " << GLEnums::GetStringEnum(depth)
<< ")");
gl_api_->glClipControlEXTFn(origin, depth);
}
void LogGLApi::glColorMaskFn(GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
GL_SERVICE_LOG("glColorMask" << "(" << GLEnums::GetStringBool(red) << ", "
<< GLEnums::GetStringBool(green) << ", "
<< GLEnums::GetStringBool(blue) << ", "
<< GLEnums::GetStringBool(alpha) << ")");
gl_api_->glColorMaskFn(red, green, blue, alpha);
}
void LogGLApi::glColorMaskiOESFn(GLuint buf,
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
GL_SERVICE_LOG("glColorMaskiOES" << "(" << buf << ", "
<< GLEnums::GetStringBool(red) << ", "
<< GLEnums::GetStringBool(green) << ", "
<< GLEnums::GetStringBool(blue) << ", "
<< GLEnums::GetStringBool(alpha) << ")");
gl_api_->glColorMaskiOESFn(buf, red, green, blue, alpha);
}
void LogGLApi::glCompileShaderFn(GLuint shader) {
GL_SERVICE_LOG("glCompileShader" << "(" << shader << ")");
gl_api_->glCompileShaderFn(shader);
}
void LogGLApi::glCompressedTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLsizei imageSize,
const void* data) {
GL_SERVICE_LOG("glCompressedTexImage2D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ", " << border << ", "
<< imageSize << ", " << static_cast<const void*>(data) << ")");
gl_api_->glCompressedTexImage2DFn(target, level, internalformat, width,
height, border, imageSize, data);
}
void LogGLApi::glCompressedTexImage3DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLsizei imageSize,
const void* data) {
GL_SERVICE_LOG("glCompressedTexImage3D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ", " << depth << ", " << border
<< ", " << imageSize << ", " << static_cast<const void*>(data)
<< ")");
gl_api_->glCompressedTexImage3DFn(target, level, internalformat, width,
height, depth, border, imageSize, data);
}
void LogGLApi::glCompressedTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLsizei imageSize,
const void* data) {
GL_SERVICE_LOG("glCompressedTexSubImage2D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << width << ", "
<< height << ", " << GLEnums::GetStringEnum(format) << ", "
<< imageSize << ", " << static_cast<const void*>(data) << ")");
gl_api_->glCompressedTexSubImage2DFn(target, level, xoffset, yoffset, width,
height, format, imageSize, data);
}
void LogGLApi::glCompressedTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLsizei imageSize,
const void* data) {
GL_SERVICE_LOG("glCompressedTexSubImage3D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << zoffset
<< ", " << width << ", " << height << ", " << depth << ", "
<< GLEnums::GetStringEnum(format) << ", " << imageSize << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glCompressedTexSubImage3DFn(target, level, xoffset, yoffset, zoffset,
width, height, depth, format, imageSize,
data);
}
void LogGLApi::glCopyBufferSubDataFn(GLenum readTarget,
GLenum writeTarget,
GLintptr readOffset,
GLintptr writeOffset,
GLsizeiptr size) {
GL_SERVICE_LOG("glCopyBufferSubData"
<< "(" << GLEnums::GetStringEnum(readTarget) << ", "
<< GLEnums::GetStringEnum(writeTarget) << ", " << readOffset
<< ", " << writeOffset << ", " << size << ")");
gl_api_->glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
writeOffset, size);
}
void LogGLApi::glCopySubTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
GL_SERVICE_LOG("glCopySubTextureCHROMIUM"
<< "(" << sourceId << ", " << sourceLevel << ", "
<< GLEnums::GetStringEnum(destTarget) << ", " << destId << ", "
<< destLevel << ", " << xoffset << ", " << yoffset << ", " << x
<< ", " << y << ", " << width << ", " << height << ", "
<< GLEnums::GetStringBool(unpackFlipY) << ", "
<< GLEnums::GetStringBool(unpackPremultiplyAlpha) << ", "
<< GLEnums::GetStringBool(unpackUnmultiplyAlpha) << ")");
gl_api_->glCopySubTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, xoffset, yoffset, x,
y, width, height, unpackFlipY, unpackPremultiplyAlpha,
unpackUnmultiplyAlpha);
}
void LogGLApi::glCopyTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border) {
GL_SERVICE_LOG("glCopyTexImage2D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(internalformat) << ", " << x
<< ", " << y << ", " << width << ", " << height << ", "
<< border << ")");
gl_api_->glCopyTexImage2DFn(target, level, internalformat, x, y, width,
height, border);
}
void LogGLApi::glCopyTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glCopyTexSubImage2D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << x << ", " << y
<< ", " << width << ", " << height << ")");
gl_api_->glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y, width,
height);
}
void LogGLApi::glCopyTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glCopyTexSubImage3D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << zoffset
<< ", " << x << ", " << y << ", " << width << ", " << height
<< ")");
gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
width, height);
}
void LogGLApi::glCopyTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint internalFormat,
GLenum destType,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
GL_SERVICE_LOG("glCopyTextureCHROMIUM"
<< "(" << sourceId << ", " << sourceLevel << ", "
<< GLEnums::GetStringEnum(destTarget) << ", " << destId << ", "
<< destLevel << ", " << internalFormat << ", "
<< GLEnums::GetStringEnum(destType) << ", "
<< GLEnums::GetStringBool(unpackFlipY) << ", "
<< GLEnums::GetStringBool(unpackPremultiplyAlpha) << ", "
<< GLEnums::GetStringBool(unpackUnmultiplyAlpha) << ")");
gl_api_->glCopyTextureCHROMIUMFn(
sourceId, sourceLevel, destTarget, destId, destLevel, internalFormat,
destType, unpackFlipY, unpackPremultiplyAlpha, unpackUnmultiplyAlpha);
}
void LogGLApi::glCreateMemoryObjectsEXTFn(GLsizei n, GLuint* memoryObjects) {
GL_SERVICE_LOG("glCreateMemoryObjectsEXT"
<< "(" << n << ", " << static_cast<const void*>(memoryObjects)
<< ")");
gl_api_->glCreateMemoryObjectsEXTFn(n, memoryObjects);
}
GLuint LogGLApi::glCreateProgramFn(void) {
GL_SERVICE_LOG("glCreateProgram" << "(" << ")");
GLuint result = gl_api_->glCreateProgramFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLuint LogGLApi::glCreateShaderFn(GLenum type) {
GL_SERVICE_LOG("glCreateShader" << "(" << GLEnums::GetStringEnum(type)
<< ")");
GLuint result = gl_api_->glCreateShaderFn(type);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glCullFaceFn(GLenum mode) {
GL_SERVICE_LOG("glCullFace" << "(" << GLEnums::GetStringEnum(mode) << ")");
gl_api_->glCullFaceFn(mode);
}
void LogGLApi::glDebugMessageCallbackKHRFn(GLDEBUGPROC callback,
const void* userParam) {
GL_SERVICE_LOG("glDebugMessageCallbackKHR"
<< "(" << reinterpret_cast<void*>(callback) << ", "
<< static_cast<const void*>(userParam) << ")");
gl_api_->glDebugMessageCallbackKHRFn(callback, userParam);
}
void LogGLApi::glDebugMessageControlKHRFn(GLenum source,
GLenum type,
GLenum severity,
GLsizei count,
const GLuint* ids,
GLboolean enabled) {
GL_SERVICE_LOG("glDebugMessageControlKHR"
<< "(" << GLEnums::GetStringEnum(source) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< GLEnums::GetStringEnum(severity) << ", " << count << ", "
<< static_cast<const void*>(ids) << ", "
<< GLEnums::GetStringBool(enabled) << ")");
gl_api_->glDebugMessageControlKHRFn(source, type, severity, count, ids,
enabled);
}
void LogGLApi::glDebugMessageInsertKHRFn(GLenum source,
GLenum type,
GLuint id,
GLenum severity,
GLsizei length,
const char* buf) {
GL_SERVICE_LOG("glDebugMessageInsertKHR"
<< "(" << GLEnums::GetStringEnum(source) << ", "
<< GLEnums::GetStringEnum(type) << ", " << id << ", "
<< GLEnums::GetStringEnum(severity) << ", " << length << ", "
<< buf << ")");
gl_api_->glDebugMessageInsertKHRFn(source, type, id, severity, length, buf);
}
void LogGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
GL_SERVICE_LOG("glDeleteBuffersARB" << "(" << n << ", "
<< static_cast<const void*>(buffers)
<< ")");
gl_api_->glDeleteBuffersARBFn(n, buffers);
}
void LogGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
GL_SERVICE_LOG("glDeleteFencesNV" << "(" << n << ", "
<< static_cast<const void*>(fences) << ")");
gl_api_->glDeleteFencesNVFn(n, fences);
}
void LogGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
const GLuint* framebuffers) {
GL_SERVICE_LOG("glDeleteFramebuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(framebuffers)
<< ")");
gl_api_->glDeleteFramebuffersEXTFn(n, framebuffers);
}
void LogGLApi::glDeleteMemoryObjectsEXTFn(GLsizei n,
const GLuint* memoryObjects) {
GL_SERVICE_LOG("glDeleteMemoryObjectsEXT"
<< "(" << n << ", " << static_cast<const void*>(memoryObjects)
<< ")");
gl_api_->glDeleteMemoryObjectsEXTFn(n, memoryObjects);
}
void LogGLApi::glDeleteProgramFn(GLuint program) {
GL_SERVICE_LOG("glDeleteProgram" << "(" << program << ")");
gl_api_->glDeleteProgramFn(program);
}
void LogGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
GL_SERVICE_LOG("glDeleteQueries" << "(" << n << ", "
<< static_cast<const void*>(ids) << ")");
gl_api_->glDeleteQueriesFn(n, ids);
}
void LogGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
const GLuint* renderbuffers) {
GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(renderbuffers)
<< ")");
gl_api_->glDeleteRenderbuffersEXTFn(n, renderbuffers);
}
void LogGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
GL_SERVICE_LOG("glDeleteSamplers" << "(" << n << ", "
<< static_cast<const void*>(samplers)
<< ")");
gl_api_->glDeleteSamplersFn(n, samplers);
}
void LogGLApi::glDeleteSemaphoresEXTFn(GLsizei n, const GLuint* semaphores) {
GL_SERVICE_LOG("glDeleteSemaphoresEXT" << "(" << n << ", "
<< static_cast<const void*>(semaphores)
<< ")");
gl_api_->glDeleteSemaphoresEXTFn(n, semaphores);
}
void LogGLApi::glDeleteShaderFn(GLuint shader) {
GL_SERVICE_LOG("glDeleteShader" << "(" << shader << ")");
gl_api_->glDeleteShaderFn(shader);
}
void LogGLApi::glDeleteSyncFn(GLsync sync) {
GL_SERVICE_LOG("glDeleteSync" << "(" << sync << ")");
gl_api_->glDeleteSyncFn(sync);
}
void LogGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
GL_SERVICE_LOG("glDeleteTextures" << "(" << n << ", "
<< static_cast<const void*>(textures)
<< ")");
gl_api_->glDeleteTexturesFn(n, textures);
}
void LogGLApi::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
GL_SERVICE_LOG("glDeleteTransformFeedbacks"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
gl_api_->glDeleteTransformFeedbacksFn(n, ids);
}
void LogGLApi::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
GL_SERVICE_LOG("glDeleteVertexArraysOES" << "(" << n << ", "
<< static_cast<const void*>(arrays)
<< ")");
gl_api_->glDeleteVertexArraysOESFn(n, arrays);
}
void LogGLApi::glDepthFuncFn(GLenum func) {
GL_SERVICE_LOG("glDepthFunc" << "(" << GLEnums::GetStringEnum(func) << ")");
gl_api_->glDepthFuncFn(func);
}
void LogGLApi::glDepthMaskFn(GLboolean flag) {
GL_SERVICE_LOG("glDepthMask" << "(" << GLEnums::GetStringBool(flag) << ")");
gl_api_->glDepthMaskFn(flag);
}
void LogGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
GL_SERVICE_LOG("glDepthRange" << "(" << zNear << ", " << zFar << ")");
gl_api_->glDepthRangeFn(zNear, zFar);
}
void LogGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
GL_SERVICE_LOG("glDepthRangef" << "(" << zNear << ", " << zFar << ")");
gl_api_->glDepthRangefFn(zNear, zFar);
}
void LogGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
GL_SERVICE_LOG("glDetachShader" << "(" << program << ", " << shader << ")");
gl_api_->glDetachShaderFn(program, shader);
}
void LogGLApi::glDisableFn(GLenum cap) {
GL_SERVICE_LOG("glDisable" << "(" << GLEnums::GetStringEnum(cap) << ")");
gl_api_->glDisableFn(cap);
}
void LogGLApi::glDisableiOESFn(GLenum target, GLuint index) {
GL_SERVICE_LOG("glDisableiOES" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ")");
gl_api_->glDisableiOESFn(target, index);
}
void LogGLApi::glDisableVertexAttribArrayFn(GLuint index) {
GL_SERVICE_LOG("glDisableVertexAttribArray" << "(" << index << ")");
gl_api_->glDisableVertexAttribArrayFn(index);
}
void LogGLApi::glDiscardFramebufferEXTFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
GL_SERVICE_LOG("glDiscardFramebufferEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ")");
gl_api_->glDiscardFramebufferEXTFn(target, numAttachments, attachments);
}
void LogGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
GL_SERVICE_LOG("glDrawArrays" << "(" << GLEnums::GetStringEnum(mode) << ", "
<< first << ", " << count << ")");
gl_api_->glDrawArraysFn(mode, first, count);
}
void LogGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount) {
GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
<< count << ", " << primcount << ")");
gl_api_->glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
}
void LogGLApi::glDrawArraysInstancedBaseInstanceANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount,
GLuint baseinstance) {
GL_SERVICE_LOG("glDrawArraysInstancedBaseInstanceANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
<< count << ", " << primcount << ", " << baseinstance << ")");
gl_api_->glDrawArraysInstancedBaseInstanceANGLEFn(mode, first, count,
primcount, baseinstance);
}
void LogGLApi::glDrawBufferFn(GLenum mode) {
GL_SERVICE_LOG("glDrawBuffer" << "(" << GLEnums::GetStringEnum(mode) << ")");
gl_api_->glDrawBufferFn(mode);
}
void LogGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
GL_SERVICE_LOG("glDrawBuffersARB" << "(" << n << ", "
<< static_cast<const void*>(bufs) << ")");
gl_api_->glDrawBuffersARBFn(n, bufs);
}
void LogGLApi::glDrawElementsFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices) {
GL_SERVICE_LOG("glDrawElements" << "(" << GLEnums::GetStringEnum(mode) << ", "
<< count << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(indices) << ")");
gl_api_->glDrawElementsFn(mode, count, type, indices);
}
void LogGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount) {
GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(indices) << ", " << primcount
<< ")");
gl_api_->glDrawElementsInstancedANGLEFn(mode, count, type, indices,
primcount);
}
void LogGLApi::glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount,
GLint baseVertex,
GLuint baseInstance) {
GL_SERVICE_LOG("glDrawElementsInstancedBaseVertexBaseInstanceANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(indices) << ", " << primcount
<< ", " << baseVertex << ", " << baseInstance << ")");
gl_api_->glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, count, type, indices, primcount, baseVertex, baseInstance);
}
void LogGLApi::glDrawRangeElementsFn(GLenum mode,
GLuint start,
GLuint end,
GLsizei count,
GLenum type,
const void* indices) {
GL_SERVICE_LOG("glDrawRangeElements"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << start << ", "
<< end << ", " << count << ", " << GLEnums::GetStringEnum(type)
<< ", " << static_cast<const void*>(indices) << ")");
gl_api_->glDrawRangeElementsFn(mode, start, end, count, type, indices);
}
void LogGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
GLeglImageOES image) {
GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
<< "(" << GLEnums::GetStringEnum(target) << ", " << image
<< ")");
gl_api_->glEGLImageTargetRenderbufferStorageOESFn(target, image);
}
void LogGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
GLeglImageOES image) {
GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
<< "(" << GLEnums::GetStringEnum(target) << ", " << image
<< ")");
gl_api_->glEGLImageTargetTexture2DOESFn(target, image);
}
void LogGLApi::glEnableFn(GLenum cap) {
GL_SERVICE_LOG("glEnable" << "(" << GLEnums::GetStringEnum(cap) << ")");
gl_api_->glEnableFn(cap);
}
void LogGLApi::glEnableiOESFn(GLenum target, GLuint index) {
GL_SERVICE_LOG("glEnableiOES" << "(" << GLEnums::GetStringEnum(target) << ", "
<< index << ")");
gl_api_->glEnableiOESFn(target, index);
}
void LogGLApi::glEnableVertexAttribArrayFn(GLuint index) {
GL_SERVICE_LOG("glEnableVertexAttribArray" << "(" << index << ")");
gl_api_->glEnableVertexAttribArrayFn(index);
}
void LogGLApi::glEndPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* storeops) {
GL_SERVICE_LOG("glEndPixelLocalStorageANGLE"
<< "(" << n << ", " << static_cast<const void*>(storeops)
<< ")");
gl_api_->glEndPixelLocalStorageANGLEFn(n, storeops);
}
void LogGLApi::glEndPixelLocalStorageImplicitANGLEFn() {
GL_SERVICE_LOG("glEndPixelLocalStorageImplicitANGLE" << "(" << ")");
gl_api_->glEndPixelLocalStorageImplicitANGLEFn();
}
void LogGLApi::glEndQueryFn(GLenum target) {
GL_SERVICE_LOG("glEndQuery" << "(" << GLEnums::GetStringEnum(target) << ")");
gl_api_->glEndQueryFn(target);
}
void LogGLApi::glEndTilingQCOMFn(GLbitfield preserveMask) {
GL_SERVICE_LOG("glEndTilingQCOM" << "(" << preserveMask << ")");
gl_api_->glEndTilingQCOMFn(preserveMask);
}
void LogGLApi::glEndTransformFeedbackFn(void) {
GL_SERVICE_LOG("glEndTransformFeedback" << "(" << ")");
gl_api_->glEndTransformFeedbackFn();
}
GLsync LogGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
GL_SERVICE_LOG("glFenceSync" << "(" << GLEnums::GetStringEnum(condition)
<< ", " << flags << ")");
GLsync result = gl_api_->glFenceSyncFn(condition, flags);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glFinishFn(void) {
GL_SERVICE_LOG("glFinish" << "(" << ")");
gl_api_->glFinishFn();
}
void LogGLApi::glFinishFenceNVFn(GLuint fence) {
GL_SERVICE_LOG("glFinishFenceNV" << "(" << fence << ")");
gl_api_->glFinishFenceNVFn(fence);
}
void LogGLApi::glFlushFn(void) {
GL_SERVICE_LOG("glFlush" << "(" << ")");
gl_api_->glFlushFn();
}
void LogGLApi::glFlushMappedBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length) {
GL_SERVICE_LOG("glFlushMappedBufferRange"
<< "(" << GLEnums::GetStringEnum(target) << ", " << offset
<< ", " << length << ")");
gl_api_->glFlushMappedBufferRangeFn(target, offset, length);
}
void LogGLApi::glFramebufferMemorylessPixelLocalStorageANGLEFn(
GLint plane,
GLenum internalformat,
GLbitfield usage) {
GL_SERVICE_LOG("glFramebufferMemorylessPixelLocalStorageANGLE"
<< "(" << plane << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << usage
<< ")");
gl_api_->glFramebufferMemorylessPixelLocalStorageANGLEFn(
plane, internalformat, usage);
}
void LogGLApi::glFramebufferParameteriMESAFn(GLenum target,
GLenum pname,
GLint param) {
GL_SERVICE_LOG("glFramebufferParameteriMESA"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << param << ")");
gl_api_->glFramebufferParameteriMESAFn(target, pname, param);
}
void LogGLApi::glFramebufferPixelLocalClearValuefvANGLEFn(
GLint plane,
const GLfloat* value) {
GL_SERVICE_LOG("glFramebufferPixelLocalClearValuefvANGLE"
<< "(" << plane << ", " << static_cast<const void*>(value)
<< ")");
gl_api_->glFramebufferPixelLocalClearValuefvANGLEFn(plane, value);
}
void LogGLApi::glFramebufferPixelLocalClearValueivANGLEFn(GLint plane,
const GLint* value) {
GL_SERVICE_LOG("glFramebufferPixelLocalClearValueivANGLE"
<< "(" << plane << ", " << static_cast<const void*>(value)
<< ")");
gl_api_->glFramebufferPixelLocalClearValueivANGLEFn(plane, value);
}
void LogGLApi::glFramebufferPixelLocalClearValueuivANGLEFn(
GLint plane,
const GLuint* value) {
GL_SERVICE_LOG("glFramebufferPixelLocalClearValueuivANGLE"
<< "(" << plane << ", " << static_cast<const void*>(value)
<< ")");
gl_api_->glFramebufferPixelLocalClearValueuivANGLEFn(plane, value);
}
void LogGLApi::glFramebufferPixelLocalStorageInterruptANGLEFn() {
GL_SERVICE_LOG("glFramebufferPixelLocalStorageInterruptANGLE" << "(" << ")");
gl_api_->glFramebufferPixelLocalStorageInterruptANGLEFn();
}
void LogGLApi::glFramebufferPixelLocalStorageRestoreANGLEFn() {
GL_SERVICE_LOG("glFramebufferPixelLocalStorageRestoreANGLE" << "(" << ")");
gl_api_->glFramebufferPixelLocalStorageRestoreANGLEFn();
}
void LogGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer) {
GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(renderbuffertarget) << ", "
<< renderbuffer << ")");
gl_api_->glFramebufferRenderbufferEXTFn(target, attachment,
renderbuffertarget, renderbuffer);
}
void LogGLApi::glFramebufferTexture2DEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level) {
GL_SERVICE_LOG("glFramebufferTexture2DEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
<< level << ")");
gl_api_->glFramebufferTexture2DEXTFn(target, attachment, textarget, texture,
level);
}
void LogGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level,
GLsizei samples) {
GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
<< level << ", " << samples << ")");
gl_api_->glFramebufferTexture2DMultisampleEXTFn(target, attachment, textarget,
texture, level, samples);
}
void LogGLApi::glFramebufferTextureLayerFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint layer) {
GL_SERVICE_LOG("glFramebufferTextureLayer"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", " << texture
<< ", " << level << ", " << layer << ")");
gl_api_->glFramebufferTextureLayerFn(target, attachment, texture, level,
layer);
}
void LogGLApi::glFramebufferTextureMultiviewOVRFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint baseViewIndex,
GLsizei numViews) {
GL_SERVICE_LOG("glFramebufferTextureMultiviewOVR"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", " << texture
<< ", " << level << ", " << baseViewIndex << ", " << numViews
<< ")");
gl_api_->glFramebufferTextureMultiviewOVRFn(target, attachment, texture,
level, baseViewIndex, numViews);
}
void LogGLApi::glFramebufferTexturePixelLocalStorageANGLEFn(
GLint plane,
GLuint backingtexture,
GLint level,
GLint layer,
GLbitfield usage) {
GL_SERVICE_LOG("glFramebufferTexturePixelLocalStorageANGLE"
<< "(" << plane << ", " << backingtexture << ", " << level
<< ", " << layer << ", " << usage << ")");
gl_api_->glFramebufferTexturePixelLocalStorageANGLEFn(plane, backingtexture,
level, layer, usage);
}
void LogGLApi::glFrontFaceFn(GLenum mode) {
GL_SERVICE_LOG("glFrontFace" << "(" << GLEnums::GetStringEnum(mode) << ")");
gl_api_->glFrontFaceFn(mode);
}
void LogGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
GL_SERVICE_LOG("glGenBuffersARB" << "(" << n << ", "
<< static_cast<const void*>(buffers) << ")");
gl_api_->glGenBuffersARBFn(n, buffers);
}
void LogGLApi::glGenerateMipmapEXTFn(GLenum target) {
GL_SERVICE_LOG("glGenerateMipmapEXT" << "(" << GLEnums::GetStringEnum(target)
<< ")");
gl_api_->glGenerateMipmapEXTFn(target);
}
void LogGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
GL_SERVICE_LOG("glGenFencesNV" << "(" << n << ", "
<< static_cast<const void*>(fences) << ")");
gl_api_->glGenFencesNVFn(n, fences);
}
void LogGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
GL_SERVICE_LOG("glGenFramebuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(framebuffers)
<< ")");
gl_api_->glGenFramebuffersEXTFn(n, framebuffers);
}
void LogGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
GL_SERVICE_LOG("glGenQueries" << "(" << n << ", "
<< static_cast<const void*>(ids) << ")");
gl_api_->glGenQueriesFn(n, ids);
}
void LogGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
GL_SERVICE_LOG("glGenRenderbuffersEXT"
<< "(" << n << ", " << static_cast<const void*>(renderbuffers)
<< ")");
gl_api_->glGenRenderbuffersEXTFn(n, renderbuffers);
}
void LogGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
GL_SERVICE_LOG("glGenSamplers" << "(" << n << ", "
<< static_cast<const void*>(samplers) << ")");
gl_api_->glGenSamplersFn(n, samplers);
}
void LogGLApi::glGenSemaphoresEXTFn(GLsizei n, GLuint* semaphores) {
GL_SERVICE_LOG("glGenSemaphoresEXT" << "(" << n << ", "
<< static_cast<const void*>(semaphores)
<< ")");
gl_api_->glGenSemaphoresEXTFn(n, semaphores);
}
void LogGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
GL_SERVICE_LOG("glGenTextures" << "(" << n << ", "
<< static_cast<const void*>(textures) << ")");
gl_api_->glGenTexturesFn(n, textures);
}
void LogGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
GL_SERVICE_LOG("glGenTransformFeedbacks"
<< "(" << n << ", " << static_cast<const void*>(ids) << ")");
gl_api_->glGenTransformFeedbacksFn(n, ids);
}
void LogGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
GL_SERVICE_LOG("glGenVertexArraysOES" << "(" << n << ", "
<< static_cast<const void*>(arrays)
<< ")");
gl_api_->glGenVertexArraysOESFn(n, arrays);
}
void LogGLApi::glGetActiveAttribFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
GL_SERVICE_LOG("glGetActiveAttrib" << "(" << program << ", " << index << ", "
<< bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
gl_api_->glGetActiveAttribFn(program, index, bufsize, length, size, type,
name);
}
void LogGLApi::glGetActiveUniformFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
GL_SERVICE_LOG("glGetActiveUniform"
<< "(" << program << ", " << index << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
gl_api_->glGetActiveUniformFn(program, index, bufsize, length, size, type,
name);
}
void LogGLApi::glGetActiveUniformBlockivFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetActiveUniformBlockiv"
<< "(" << program << ", " << uniformBlockIndex << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
params);
}
void LogGLApi::glGetActiveUniformBlockivRobustANGLEFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetActiveUniformBlockivRobustANGLE"
<< "(" << program << ", " << uniformBlockIndex << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetActiveUniformBlockivRobustANGLEFn(
program, uniformBlockIndex, pname, bufSize, length, params);
}
void LogGLApi::glGetActiveUniformBlockNameFn(GLuint program,
GLuint uniformBlockIndex,
GLsizei bufSize,
GLsizei* length,
char* uniformBlockName) {
GL_SERVICE_LOG("glGetActiveUniformBlockName"
<< "(" << program << ", " << uniformBlockIndex << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(uniformBlockName) << ")");
gl_api_->glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
length, uniformBlockName);
}
void LogGLApi::glGetActiveUniformsivFn(GLuint program,
GLsizei uniformCount,
const GLuint* uniformIndices,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetActiveUniformsiv"
<< "(" << program << ", " << uniformCount << ", "
<< static_cast<const void*>(uniformIndices) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetActiveUniformsivFn(program, uniformCount, uniformIndices, pname,
params);
}
void LogGLApi::glGetAttachedShadersFn(GLuint program,
GLsizei maxcount,
GLsizei* count,
GLuint* shaders) {
GL_SERVICE_LOG("glGetAttachedShaders"
<< "(" << program << ", " << maxcount << ", "
<< static_cast<const void*>(count) << ", "
<< static_cast<const void*>(shaders) << ")");
gl_api_->glGetAttachedShadersFn(program, maxcount, count, shaders);
}
GLint LogGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
GL_SERVICE_LOG("glGetAttribLocation" << "(" << program << ", " << name
<< ")");
GLint result = gl_api_->glGetAttribLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
GL_SERVICE_LOG("glGetBooleanv" << "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetBooleanvFn(pname, params);
}
void LogGLApi::glGetBooleanvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLboolean* data) {
GL_SERVICE_LOG("glGetBooleanvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetBooleanvRobustANGLEFn(pname, bufSize, length, data);
}
void LogGLApi::glGetBufferParameteri64vRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
GL_SERVICE_LOG("glGetBufferParameteri64vRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetBufferParameteri64vRobustANGLEFn(target, pname, bufSize, length,
params);
}
void LogGLApi::glGetBufferParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetBufferParameteriv"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetBufferParameterivFn(target, pname, params);
}
void LogGLApi::glGetBufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetBufferParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetBufferParameterivRobustANGLEFn(target, pname, bufSize, length,
params);
}
void LogGLApi::glGetBufferPointervRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** params) {
GL_SERVICE_LOG("glGetBufferPointervRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", " << params << ")");
gl_api_->glGetBufferPointervRobustANGLEFn(target, pname, bufSize, length,
params);
}
GLuint LogGLApi::glGetDebugMessageLogKHRFn(GLuint count,
GLsizei bufSize,
GLenum* sources,
GLenum* types,
GLuint* ids,
GLenum* severities,
GLsizei* lengths,
char* messageLog) {
GL_SERVICE_LOG("glGetDebugMessageLogKHR"
<< "(" << count << ", " << bufSize << ", "
<< static_cast<const void*>(sources) << ", "
<< static_cast<const void*>(types) << ", "
<< static_cast<const void*>(ids) << ", "
<< static_cast<const void*>(severities) << ", "
<< static_cast<const void*>(lengths) << ", "
<< static_cast<const void*>(messageLog) << ")");
GLuint result = gl_api_->glGetDebugMessageLogKHRFn(
count, bufSize, sources, types, ids, severities, lengths, messageLog);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLenum LogGLApi::glGetErrorFn(void) {
GL_SERVICE_LOG("glGetError" << "(" << ")");
GLenum result = gl_api_->glGetErrorFn();
GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
return result;
}
void LogGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetFenceivNV" << "(" << fence << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFenceivNVFn(fence, pname, params);
}
void LogGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
GL_SERVICE_LOG("glGetFloatv" << "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFloatvFn(pname, params);
}
void LogGLApi::glGetFloatvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* data) {
GL_SERVICE_LOG("glGetFloatvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetFloatvRobustANGLEFn(pname, bufSize, length, data);
}
GLint LogGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
GL_SERVICE_LOG("glGetFragDataIndex" << "(" << program << ", " << name << ")");
GLint result = gl_api_->glGetFragDataIndexFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLint LogGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
GL_SERVICE_LOG("glGetFragDataLocation" << "(" << program << ", " << name
<< ")");
GLint result = gl_api_->glGetFragDataLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
GLenum attachment,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFramebufferAttachmentParameterivEXTFn(target, attachment, pname,
params);
}
void LogGLApi::glGetFramebufferAttachmentParameterivRobustANGLEFn(
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(attachment) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFramebufferAttachmentParameterivRobustANGLEFn(
target, attachment, pname, bufSize, length, params);
}
void LogGLApi::glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetFramebufferPixelLocalStorageParameterfvRobustANGLE"
<< "(" << plane << ", " << GLEnums::GetStringEnum(pname)
<< ", " << paramCount << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void LogGLApi::glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetFramebufferPixelLocalStorageParameterivRobustANGLE"
<< "(" << plane << ", " << GLEnums::GetStringEnum(pname)
<< ", " << paramCount << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
void LogGLApi::glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLuint* params) {
GL_SERVICE_LOG("glGetFramebufferPixelLocalStorageParameteruivRobustANGLE"
<< "(" << plane << ", " << GLEnums::GetStringEnum(pname)
<< ", " << paramCount << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
plane, pname, paramCount, length, params);
}
GLenum LogGLApi::glGetGraphicsResetStatusARBFn(void) {
GL_SERVICE_LOG("glGetGraphicsResetStatusARB" << "(" << ")");
GLenum result = gl_api_->glGetGraphicsResetStatusARBFn();
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetInteger64i_vFn(GLenum target, GLuint index, GLint64* data) {
GL_SERVICE_LOG("glGetInteger64i_v" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetInteger64i_vFn(target, index, data);
}
void LogGLApi::glGetInteger64i_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
GL_SERVICE_LOG("glGetInteger64i_vRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(data) << ")");
gl_api_->glGetInteger64i_vRobustANGLEFn(target, index, bufSize, length, data);
}
void LogGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
GL_SERVICE_LOG("glGetInteger64v" << "(" << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params)
<< ")");
gl_api_->glGetInteger64vFn(pname, params);
}
void LogGLApi::glGetInteger64vRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
GL_SERVICE_LOG("glGetInteger64vRobustANGLE"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetInteger64vRobustANGLEFn(pname, bufSize, length, data);
}
void LogGLApi::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
GL_SERVICE_LOG("glGetIntegeri_v" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetIntegeri_vFn(target, index, data);
}
void LogGLApi::glGetIntegeri_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
GL_SERVICE_LOG("glGetIntegeri_vRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << index
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(data) << ")");
gl_api_->glGetIntegeri_vRobustANGLEFn(target, index, bufSize, length, data);
}
void LogGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetIntegerv" << "(" << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetIntegervFn(pname, params);
}
void LogGLApi::glGetIntegervRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
GL_SERVICE_LOG("glGetIntegervRobustANGLE"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(data) << ")");
gl_api_->glGetIntegervRobustANGLEFn(pname, bufSize, length, data);
}
void LogGLApi::glGetInternalformativFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLint* params) {
GL_SERVICE_LOG("glGetInternalformativ"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetInternalformativFn(target, internalformat, pname, bufSize,
params);
}
void LogGLApi::glGetInternalformativRobustANGLEFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetInternalformativRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetInternalformativRobustANGLEFn(target, internalformat, pname,
bufSize, length, params);
}
void LogGLApi::glGetInternalformatSampleivNVFn(GLenum target,
GLenum internalformat,
GLsizei samples,
GLenum pname,
GLsizei bufSize,
GLint* params) {
GL_SERVICE_LOG("glGetInternalformatSampleivNV"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << samples
<< ", " << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetInternalformatSampleivNVFn(target, internalformat, samples,
pname, bufSize, params);
}
void LogGLApi::glGetMultisamplefvRobustANGLEFn(GLenum pname,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLfloat* val) {
GL_SERVICE_LOG("glGetMultisamplefvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(pname) << ", " << index
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(val) << ")");
gl_api_->glGetMultisamplefvRobustANGLEFn(pname, index, bufSize, length, val);
}
void LogGLApi::glGetObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei bufSize,
GLsizei* length,
char* label) {
GL_SERVICE_LOG("glGetObjectLabelKHR"
<< "(" << GLEnums::GetStringEnum(identifier) << ", " << name
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(label) << ")");
gl_api_->glGetObjectLabelKHRFn(identifier, name, bufSize, length, label);
}
void LogGLApi::glGetObjectPtrLabelKHRFn(void* ptr,
GLsizei bufSize,
GLsizei* length,
char* label) {
GL_SERVICE_LOG("glGetObjectPtrLabelKHR"
<< "(" << static_cast<const void*>(ptr) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(label) << ")");
gl_api_->glGetObjectPtrLabelKHRFn(ptr, bufSize, length, label);
}
void LogGLApi::glGetPointervKHRFn(GLenum pname, void** params) {
GL_SERVICE_LOG("glGetPointervKHR" << "(" << GLEnums::GetStringEnum(pname)
<< ", " << params << ")");
gl_api_->glGetPointervKHRFn(pname, params);
}
void LogGLApi::glGetProgramBinaryFn(GLuint program,
GLsizei bufSize,
GLsizei* length,
GLenum* binaryFormat,
GLvoid* binary) {
GL_SERVICE_LOG("glGetProgramBinary"
<< "(" << program << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(binaryFormat) << ", "
<< static_cast<const void*>(binary) << ")");
gl_api_->glGetProgramBinaryFn(program, bufSize, length, binaryFormat, binary);
}
void LogGLApi::glGetProgramInfoLogFn(GLuint program,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
GL_SERVICE_LOG("glGetProgramInfoLog"
<< "(" << program << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(infolog) << ")");
gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog);
}
void LogGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetProgramiv" << "(" << program << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetProgramivFn(program, pname, params);
}
void LogGLApi::glGetProgramivRobustANGLEFn(GLuint program,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetProgramivRobustANGLE"
<< "(" << program << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetProgramivRobustANGLEFn(program, pname, bufSize, length, params);
}
void LogGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetQueryiv" << "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryivFn(target, pname, params);
}
void LogGLApi::glGetQueryivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetQueryivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryivRobustANGLEFn(target, pname, bufSize, length, params);
}
void LogGLApi::glGetQueryObjecti64vFn(GLuint id,
GLenum pname,
GLint64* params) {
GL_SERVICE_LOG("glGetQueryObjecti64v"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjecti64vFn(id, pname, params);
}
void LogGLApi::glGetQueryObjecti64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
GL_SERVICE_LOG("glGetQueryObjecti64vRobustANGLE"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjecti64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void LogGLApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetQueryObjectiv"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectivFn(id, pname, params);
}
void LogGLApi::glGetQueryObjectivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetQueryObjectivRobustANGLE"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectivRobustANGLEFn(id, pname, bufSize, length, params);
}
void LogGLApi::glGetQueryObjectui64vFn(GLuint id,
GLenum pname,
GLuint64* params) {
GL_SERVICE_LOG("glGetQueryObjectui64v"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectui64vFn(id, pname, params);
}
void LogGLApi::glGetQueryObjectui64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint64* params) {
GL_SERVICE_LOG("glGetQueryObjectui64vRobustANGLE"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectui64vRobustANGLEFn(id, pname, bufSize, length,
params);
}
void LogGLApi::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) {
GL_SERVICE_LOG("glGetQueryObjectuiv"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectuivFn(id, pname, params);
}
void LogGLApi::glGetQueryObjectuivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
GL_SERVICE_LOG("glGetQueryObjectuivRobustANGLE"
<< "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetQueryObjectuivRobustANGLEFn(id, pname, bufSize, length, params);
}
void LogGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetRenderbufferParameterivEXTFn(target, pname, params);
}
void LogGLApi::glGetRenderbufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetRenderbufferParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetRenderbufferParameterivRobustANGLEFn(target, pname, bufSize,
length, params);
}
void LogGLApi::glGetSamplerParameterfvFn(GLuint sampler,
GLenum pname,
GLfloat* params) {
GL_SERVICE_LOG("glGetSamplerParameterfv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetSamplerParameterfvFn(sampler, pname, params);
}
void LogGLApi::glGetSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetSamplerParameterfvRobustANGLE"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize, length,
params);
}
void LogGLApi::glGetSamplerParameterivFn(GLuint sampler,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetSamplerParameteriv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetSamplerParameterivFn(sampler, pname, params);
}
void LogGLApi::glGetSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetSamplerParameterivRobustANGLE"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetSamplerParameterivRobustANGLEFn(sampler, pname, bufSize, length,
params);
}
void LogGLApi::glGetShaderInfoLogFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
GL_SERVICE_LOG("glGetShaderInfoLog"
<< "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(infolog) << ")");
gl_api_->glGetShaderInfoLogFn(shader, bufsize, length, infolog);
}
void LogGLApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
GL_SERVICE_LOG("glGetShaderiv" << "(" << shader << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetShaderivFn(shader, pname, params);
}
void LogGLApi::glGetShaderivRobustANGLEFn(GLuint shader,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetShaderivRobustANGLE"
<< "(" << shader << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetShaderivRobustANGLEFn(shader, pname, bufSize, length, params);
}
void LogGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
GLenum precisiontype,
GLint* range,
GLint* precision) {
GL_SERVICE_LOG("glGetShaderPrecisionFormat"
<< "(" << GLEnums::GetStringEnum(shadertype) << ", "
<< GLEnums::GetStringEnum(precisiontype) << ", "
<< static_cast<const void*>(range) << ", "
<< static_cast<const void*>(precision) << ")");
gl_api_->glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
precision);
}
void LogGLApi::glGetShaderSourceFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
GL_SERVICE_LOG("glGetShaderSource" << "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(source)
<< ")");
gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
}
const GLubyte* LogGLApi::glGetStringFn(GLenum name) {
GL_SERVICE_LOG("glGetString" << "(" << GLEnums::GetStringEnum(name) << ")");
const GLubyte* result = gl_api_->glGetStringFn(name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
const GLubyte* LogGLApi::glGetStringiFn(GLenum name, GLuint index) {
GL_SERVICE_LOG("glGetStringi" << "(" << GLEnums::GetStringEnum(name) << ", "
<< index << ")");
const GLubyte* result = gl_api_->glGetStringiFn(name, index);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetSyncivFn(GLsync sync,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* values) {
GL_SERVICE_LOG("glGetSynciv"
<< "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
<< bufSize << ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(values) << ")");
gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
}
void LogGLApi::glGetTexLevelParameterfvANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLfloat* params) {
GL_SERVICE_LOG("glGetTexLevelParameterfvANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexLevelParameterfvANGLEFn(target, level, pname, params);
}
void LogGLApi::glGetTexLevelParameterfvRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetTexLevelParameterfvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexLevelParameterfvRobustANGLEFn(target, level, pname, bufSize,
length, params);
}
void LogGLApi::glGetTexLevelParameterivANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetTexLevelParameterivANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexLevelParameterivANGLEFn(target, level, pname, params);
}
void LogGLApi::glGetTexLevelParameterivRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetTexLevelParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << GLEnums::GetStringEnum(pname) << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexLevelParameterivRobustANGLEFn(target, level, pname, bufSize,
length, params);
}
void LogGLApi::glGetTexParameterfvFn(GLenum target,
GLenum pname,
GLfloat* params) {
GL_SERVICE_LOG("glGetTexParameterfv"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexParameterfvFn(target, pname, params);
}
void LogGLApi::glGetTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetTexParameterfvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexParameterfvRobustANGLEFn(target, pname, bufSize, length,
params);
}
void LogGLApi::glGetTexParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetTexParameteriv"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexParameterivFn(target, pname, params);
}
void LogGLApi::glGetTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetTexParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetTexParameterivRobustANGLEFn(target, pname, bufSize, length,
params);
}
void LogGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLsizei* size,
GLenum* type,
char* name) {
GL_SERVICE_LOG("glGetTransformFeedbackVarying"
<< "(" << program << ", " << index << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(size) << ", "
<< static_cast<const void*>(type) << ", "
<< static_cast<const void*>(name) << ")");
gl_api_->glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
size, type, name);
}
void LogGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
<< "(" << shader << ", " << bufsize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(source) << ")");
gl_api_->glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length, source);
}
GLuint LogGLApi::glGetUniformBlockIndexFn(GLuint program,
const char* uniformBlockName) {
GL_SERVICE_LOG("glGetUniformBlockIndex" << "(" << program << ", "
<< uniformBlockName << ")");
GLuint result = gl_api_->glGetUniformBlockIndexFn(program, uniformBlockName);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetUniformfvFn(GLuint program,
GLint location,
GLfloat* params) {
GL_SERVICE_LOG("glGetUniformfv" << "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformfvFn(program, location, params);
}
void LogGLApi::glGetUniformfvRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetUniformfvRobustANGLE"
<< "(" << program << ", " << location << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformfvRobustANGLEFn(program, location, bufSize, length,
params);
}
void LogGLApi::glGetUniformIndicesFn(GLuint program,
GLsizei uniformCount,
const char* const* uniformNames,
GLuint* uniformIndices) {
GL_SERVICE_LOG("glGetUniformIndices"
<< "(" << program << ", " << uniformCount << ", "
<< static_cast<const void*>(uniformNames) << ", "
<< static_cast<const void*>(uniformIndices) << ")");
gl_api_->glGetUniformIndicesFn(program, uniformCount, uniformNames,
uniformIndices);
}
void LogGLApi::glGetUniformivFn(GLuint program, GLint location, GLint* params) {
GL_SERVICE_LOG("glGetUniformiv" << "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformivFn(program, location, params);
}
void LogGLApi::glGetUniformivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetUniformivRobustANGLE"
<< "(" << program << ", " << location << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformivRobustANGLEFn(program, location, bufSize, length,
params);
}
GLint LogGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
GL_SERVICE_LOG("glGetUniformLocation" << "(" << program << ", " << name
<< ")");
GLint result = gl_api_->glGetUniformLocationFn(program, name);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glGetUniformuivFn(GLuint program,
GLint location,
GLuint* params) {
GL_SERVICE_LOG("glGetUniformuiv" << "(" << program << ", " << location << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformuivFn(program, location, params);
}
void LogGLApi::glGetUniformuivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
GL_SERVICE_LOG("glGetUniformuivRobustANGLE"
<< "(" << program << ", " << location << ", " << bufSize
<< ", " << static_cast<const void*>(length) << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glGetUniformuivRobustANGLEFn(program, location, bufSize, length,
params);
}
void LogGLApi::glGetVertexAttribfvFn(GLuint index,
GLenum pname,
GLfloat* params) {
GL_SERVICE_LOG("glGetVertexAttribfv"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribfvFn(index, pname, params);
}
void LogGLApi::glGetVertexAttribfvRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
GL_SERVICE_LOG("glGetVertexAttribfvRobustANGLE"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribfvRobustANGLEFn(index, pname, bufSize, length,
params);
}
void LogGLApi::glGetVertexAttribIivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetVertexAttribIivRobustANGLE"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribIivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void LogGLApi::glGetVertexAttribIuivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
GL_SERVICE_LOG("glGetVertexAttribIuivRobustANGLE"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribIuivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void LogGLApi::glGetVertexAttribivFn(GLuint index,
GLenum pname,
GLint* params) {
GL_SERVICE_LOG("glGetVertexAttribiv"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribivFn(index, pname, params);
}
void LogGLApi::glGetVertexAttribivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
GL_SERVICE_LOG("glGetVertexAttribivRobustANGLE"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glGetVertexAttribivRobustANGLEFn(index, pname, bufSize, length,
params);
}
void LogGLApi::glGetVertexAttribPointervFn(GLuint index,
GLenum pname,
void** pointer) {
GL_SERVICE_LOG("glGetVertexAttribPointerv" << "(" << index << ", "
<< GLEnums::GetStringEnum(pname)
<< ", " << pointer << ")");
gl_api_->glGetVertexAttribPointervFn(index, pname, pointer);
}
void LogGLApi::glGetVertexAttribPointervRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** pointer) {
GL_SERVICE_LOG("glGetVertexAttribPointervRobustANGLE"
<< "(" << index << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(length)
<< ", " << pointer << ")");
gl_api_->glGetVertexAttribPointervRobustANGLEFn(index, pname, bufSize, length,
pointer);
}
void LogGLApi::glHintFn(GLenum target, GLenum mode) {
GL_SERVICE_LOG("glHint" << "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(mode) << ")");
gl_api_->glHintFn(target, mode);
}
void LogGLApi::glImportMemoryFdEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLint fd) {
GL_SERVICE_LOG("glImportMemoryFdEXT" << "(" << memory << ", " << size << ", "
<< GLEnums::GetStringEnum(handleType)
<< ", " << fd << ")");
gl_api_->glImportMemoryFdEXTFn(memory, size, handleType, fd);
}
void LogGLApi::glImportMemoryWin32HandleEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
void* handle) {
GL_SERVICE_LOG("glImportMemoryWin32HandleEXT"
<< "(" << memory << ", " << size << ", "
<< GLEnums::GetStringEnum(handleType) << ", "
<< static_cast<const void*>(handle) << ")");
gl_api_->glImportMemoryWin32HandleEXTFn(memory, size, handleType, handle);
}
void LogGLApi::glImportMemoryZirconHandleANGLEFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLuint handle) {
GL_SERVICE_LOG("glImportMemoryZirconHandleANGLE"
<< "(" << memory << ", " << size << ", "
<< GLEnums::GetStringEnum(handleType) << ", " << handle
<< ")");
gl_api_->glImportMemoryZirconHandleANGLEFn(memory, size, handleType, handle);
}
void LogGLApi::glImportSemaphoreFdEXTFn(GLuint semaphore,
GLenum handleType,
GLint fd) {
GL_SERVICE_LOG("glImportSemaphoreFdEXT" << "(" << semaphore << ", "
<< GLEnums::GetStringEnum(handleType)
<< ", " << fd << ")");
gl_api_->glImportSemaphoreFdEXTFn(semaphore, handleType, fd);
}
void LogGLApi::glImportSemaphoreWin32HandleEXTFn(GLuint semaphore,
GLenum handleType,
void* handle) {
GL_SERVICE_LOG("glImportSemaphoreWin32HandleEXT"
<< "(" << semaphore << ", "
<< GLEnums::GetStringEnum(handleType) << ", "
<< static_cast<const void*>(handle) << ")");
gl_api_->glImportSemaphoreWin32HandleEXTFn(semaphore, handleType, handle);
}
void LogGLApi::glImportSemaphoreZirconHandleANGLEFn(GLuint semaphore,
GLenum handleType,
GLuint handle) {
GL_SERVICE_LOG("glImportSemaphoreZirconHandleANGLE"
<< "(" << semaphore << ", "
<< GLEnums::GetStringEnum(handleType) << ", " << handle
<< ")");
gl_api_->glImportSemaphoreZirconHandleANGLEFn(semaphore, handleType, handle);
}
void LogGLApi::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
GL_SERVICE_LOG("glInsertEventMarkerEXT" << "(" << length << ", " << marker
<< ")");
gl_api_->glInsertEventMarkerEXTFn(length, marker);
}
void LogGLApi::glInvalidateFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
GL_SERVICE_LOG("glInvalidateFramebuffer"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ")");
gl_api_->glInvalidateFramebufferFn(target, numAttachments, attachments);
}
void LogGLApi::glInvalidateSubFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments,
GLint x,
GLint y,
GLint width,
GLint height) {
GL_SERVICE_LOG("glInvalidateSubFramebuffer"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< numAttachments << ", "
<< static_cast<const void*>(attachments) << ", " << x << ", "
<< y << ", " << width << ", " << height << ")");
gl_api_->glInvalidateSubFramebufferFn(target, numAttachments, attachments, x,
y, width, height);
}
void LogGLApi::glInvalidateTextureANGLEFn(GLenum target) {
GL_SERVICE_LOG("glInvalidateTextureANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ")");
gl_api_->glInvalidateTextureANGLEFn(target);
}
GLboolean LogGLApi::glIsBufferFn(GLuint buffer) {
GL_SERVICE_LOG("glIsBuffer" << "(" << buffer << ")");
GLboolean result = gl_api_->glIsBufferFn(buffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsEnabledFn(GLenum cap) {
GL_SERVICE_LOG("glIsEnabled" << "(" << GLEnums::GetStringEnum(cap) << ")");
GLboolean result = gl_api_->glIsEnabledFn(cap);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsEnablediOESFn(GLenum target, GLuint index) {
GL_SERVICE_LOG("glIsEnablediOES" << "(" << GLEnums::GetStringEnum(target)
<< ", " << index << ")");
GLboolean result = gl_api_->glIsEnablediOESFn(target, index);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsFenceNVFn(GLuint fence) {
GL_SERVICE_LOG("glIsFenceNV" << "(" << fence << ")");
GLboolean result = gl_api_->glIsFenceNVFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
GL_SERVICE_LOG("glIsFramebufferEXT" << "(" << framebuffer << ")");
GLboolean result = gl_api_->glIsFramebufferEXTFn(framebuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsProgramFn(GLuint program) {
GL_SERVICE_LOG("glIsProgram" << "(" << program << ")");
GLboolean result = gl_api_->glIsProgramFn(program);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsQueryFn(GLuint query) {
GL_SERVICE_LOG("glIsQuery" << "(" << query << ")");
GLboolean result = gl_api_->glIsQueryFn(query);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
GL_SERVICE_LOG("glIsRenderbufferEXT" << "(" << renderbuffer << ")");
GLboolean result = gl_api_->glIsRenderbufferEXTFn(renderbuffer);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsSamplerFn(GLuint sampler) {
GL_SERVICE_LOG("glIsSampler" << "(" << sampler << ")");
GLboolean result = gl_api_->glIsSamplerFn(sampler);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsShaderFn(GLuint shader) {
GL_SERVICE_LOG("glIsShader" << "(" << shader << ")");
GLboolean result = gl_api_->glIsShaderFn(shader);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsSyncFn(GLsync sync) {
GL_SERVICE_LOG("glIsSync" << "(" << sync << ")");
GLboolean result = gl_api_->glIsSyncFn(sync);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsTextureFn(GLuint texture) {
GL_SERVICE_LOG("glIsTexture" << "(" << texture << ")");
GLboolean result = gl_api_->glIsTextureFn(texture);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsTransformFeedbackFn(GLuint id) {
GL_SERVICE_LOG("glIsTransformFeedback" << "(" << id << ")");
GLboolean result = gl_api_->glIsTransformFeedbackFn(id);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
GLboolean LogGLApi::glIsVertexArrayOESFn(GLuint array) {
GL_SERVICE_LOG("glIsVertexArrayOES" << "(" << array << ")");
GLboolean result = gl_api_->glIsVertexArrayOESFn(array);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glLineWidthFn(GLfloat width) {
GL_SERVICE_LOG("glLineWidth" << "(" << width << ")");
gl_api_->glLineWidthFn(width);
}
void LogGLApi::glLinkProgramFn(GLuint program) {
GL_SERVICE_LOG("glLinkProgram" << "(" << program << ")");
gl_api_->glLinkProgramFn(program);
}
void* LogGLApi::glMapBufferFn(GLenum target, GLenum access) {
GL_SERVICE_LOG("glMapBuffer" << "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(access) << ")");
void* result = gl_api_->glMapBufferFn(target, access);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void* LogGLApi::glMapBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length,
GLbitfield access) {
GL_SERVICE_LOG("glMapBufferRange" << "(" << GLEnums::GetStringEnum(target)
<< ", " << offset << ", " << length << ", "
<< access << ")");
void* result = gl_api_->glMapBufferRangeFn(target, offset, length, access);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glMaxShaderCompilerThreadsKHRFn(GLuint count) {
GL_SERVICE_LOG("glMaxShaderCompilerThreadsKHR" << "(" << count << ")");
gl_api_->glMaxShaderCompilerThreadsKHRFn(count);
}
void LogGLApi::glMemoryObjectParameterivEXTFn(GLuint memoryObject,
GLenum pname,
const GLint* param) {
GL_SERVICE_LOG("glMemoryObjectParameterivEXT"
<< "(" << memoryObject << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(param) << ")");
gl_api_->glMemoryObjectParameterivEXTFn(memoryObject, pname, param);
}
void LogGLApi::glMultiDrawArraysANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawArraysANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(firsts) << ", "
<< static_cast<const void*>(counts) << ", " << drawcount
<< ")");
gl_api_->glMultiDrawArraysANGLEFn(mode, firsts, counts, drawcount);
}
void LogGLApi::glMultiDrawArraysInstancedANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawArraysInstancedANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(firsts) << ", "
<< static_cast<const void*>(counts) << ", "
<< static_cast<const void*>(instanceCounts) << ", "
<< drawcount << ")");
gl_api_->glMultiDrawArraysInstancedANGLEFn(mode, firsts, counts,
instanceCounts, drawcount);
}
void LogGLApi::glMultiDrawArraysInstancedBaseInstanceANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
const GLuint* baseInstances,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawArraysInstancedBaseInstanceANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(firsts) << ", "
<< static_cast<const void*>(counts) << ", "
<< static_cast<const void*>(instanceCounts) << ", "
<< static_cast<const void*>(baseInstances) << ", " << drawcount
<< ")");
gl_api_->glMultiDrawArraysInstancedBaseInstanceANGLEFn(
mode, firsts, counts, instanceCounts, baseInstances, drawcount);
}
void LogGLApi::glMultiDrawElementsANGLEFn(GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawElementsANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(counts) << ", "
<< GLEnums::GetStringEnum(type) << ", " << indices << ", "
<< drawcount << ")");
gl_api_->glMultiDrawElementsANGLEFn(mode, counts, type, indices, drawcount);
}
void LogGLApi::glMultiDrawElementsInstancedANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawElementsInstancedANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(counts) << ", "
<< GLEnums::GetStringEnum(type) << ", " << indices << ", "
<< static_cast<const void*>(instanceCounts) << ", "
<< drawcount << ")");
gl_api_->glMultiDrawElementsInstancedANGLEFn(mode, counts, type, indices,
instanceCounts, drawcount);
}
void LogGLApi::glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
const GLint* baseVertices,
const GLuint* baseInstances,
GLsizei drawcount) {
GL_SERVICE_LOG("glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE"
<< "(" << GLEnums::GetStringEnum(mode) << ", "
<< static_cast<const void*>(counts) << ", "
<< GLEnums::GetStringEnum(type) << ", " << indices << ", "
<< static_cast<const void*>(instanceCounts) << ", "
<< static_cast<const void*>(baseVertices) << ", "
<< static_cast<const void*>(baseInstances) << ", " << drawcount
<< ")");
gl_api_->glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
mode, counts, type, indices, instanceCounts, baseVertices, baseInstances,
drawcount);
}
void LogGLApi::glObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei length,
const char* label) {
GL_SERVICE_LOG("glObjectLabelKHR" << "(" << GLEnums::GetStringEnum(identifier)
<< ", " << name << ", " << length << ", "
<< label << ")");
gl_api_->glObjectLabelKHRFn(identifier, name, length, label);
}
void LogGLApi::glObjectPtrLabelKHRFn(void* ptr,
GLsizei length,
const char* label) {
GL_SERVICE_LOG("glObjectPtrLabelKHR" << "(" << static_cast<const void*>(ptr)
<< ", " << length << ", " << label
<< ")");
gl_api_->glObjectPtrLabelKHRFn(ptr, length, label);
}
void LogGLApi::glPatchParameteriOESFn(GLenum pname, GLint value) {
GL_SERVICE_LOG("glPatchParameteriOES" << "(" << GLEnums::GetStringEnum(pname)
<< ", " << value << ")");
gl_api_->glPatchParameteriOESFn(pname, value);
}
void LogGLApi::glPauseTransformFeedbackFn(void) {
GL_SERVICE_LOG("glPauseTransformFeedback" << "(" << ")");
gl_api_->glPauseTransformFeedbackFn();
}
void LogGLApi::glPixelLocalStorageBarrierANGLEFn() {
GL_SERVICE_LOG("glPixelLocalStorageBarrierANGLE" << "(" << ")");
gl_api_->glPixelLocalStorageBarrierANGLEFn();
}
void LogGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
GL_SERVICE_LOG("glPixelStorei" << "(" << GLEnums::GetStringEnum(pname) << ", "
<< param << ")");
gl_api_->glPixelStoreiFn(pname, param);
}
void LogGLApi::glPointParameteriFn(GLenum pname, GLint param) {
GL_SERVICE_LOG("glPointParameteri" << "(" << GLEnums::GetStringEnum(pname)
<< ", " << param << ")");
gl_api_->glPointParameteriFn(pname, param);
}
void LogGLApi::glPolygonModeFn(GLenum face, GLenum mode) {
GL_SERVICE_LOG("glPolygonMode" << "(" << GLEnums::GetStringEnum(face) << ", "
<< GLEnums::GetStringEnum(mode) << ")");
gl_api_->glPolygonModeFn(face, mode);
}
void LogGLApi::glPolygonModeANGLEFn(GLenum face, GLenum mode) {
GL_SERVICE_LOG("glPolygonModeANGLE" << "(" << GLEnums::GetStringEnum(face)
<< ", " << GLEnums::GetStringEnum(mode)
<< ")");
gl_api_->glPolygonModeANGLEFn(face, mode);
}
void LogGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
GL_SERVICE_LOG("glPolygonOffset" << "(" << factor << ", " << units << ")");
gl_api_->glPolygonOffsetFn(factor, units);
}
void LogGLApi::glPolygonOffsetClampEXTFn(GLfloat factor,
GLfloat units,
GLfloat clamp) {
GL_SERVICE_LOG("glPolygonOffsetClampEXT" << "(" << factor << ", " << units
<< ", " << clamp << ")");
gl_api_->glPolygonOffsetClampEXTFn(factor, units, clamp);
}
void LogGLApi::glPopDebugGroupKHRFn() {
GL_SERVICE_LOG("glPopDebugGroupKHR" << "(" << ")");
gl_api_->glPopDebugGroupKHRFn();
}
void LogGLApi::glPopGroupMarkerEXTFn(void) {
GL_SERVICE_LOG("glPopGroupMarkerEXT" << "(" << ")");
gl_api_->glPopGroupMarkerEXTFn();
}
void LogGLApi::glPrimitiveRestartIndexFn(GLuint index) {
GL_SERVICE_LOG("glPrimitiveRestartIndex" << "(" << index << ")");
gl_api_->glPrimitiveRestartIndexFn(index);
}
void LogGLApi::glProgramBinaryFn(GLuint program,
GLenum binaryFormat,
const GLvoid* binary,
GLsizei length) {
GL_SERVICE_LOG("glProgramBinary" << "(" << program << ", "
<< GLEnums::GetStringEnum(binaryFormat)
<< ", " << static_cast<const void*>(binary)
<< ", " << length << ")");
gl_api_->glProgramBinaryFn(program, binaryFormat, binary, length);
}
void LogGLApi::glProgramParameteriFn(GLuint program,
GLenum pname,
GLint value) {
GL_SERVICE_LOG("glProgramParameteri" << "(" << program << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< value << ")");
gl_api_->glProgramParameteriFn(program, pname, value);
}
void LogGLApi::glProvokingVertexANGLEFn(GLenum provokeMode) {
GL_SERVICE_LOG("glProvokingVertexANGLE"
<< "(" << GLEnums::GetStringEnum(provokeMode) << ")");
gl_api_->glProvokingVertexANGLEFn(provokeMode);
}
void LogGLApi::glPushDebugGroupKHRFn(GLenum source,
GLuint id,
GLsizei length,
const char* message) {
GL_SERVICE_LOG("glPushDebugGroupKHR" << "(" << GLEnums::GetStringEnum(source)
<< ", " << id << ", " << length << ", "
<< message << ")");
gl_api_->glPushDebugGroupKHRFn(source, id, length, message);
}
void LogGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
GL_SERVICE_LOG("glPushGroupMarkerEXT" << "(" << length << ", " << marker
<< ")");
gl_api_->glPushGroupMarkerEXTFn(length, marker);
}
void LogGLApi::glQueryCounterFn(GLuint id, GLenum target) {
GL_SERVICE_LOG("glQueryCounter" << "(" << id << ", "
<< GLEnums::GetStringEnum(target) << ")");
gl_api_->glQueryCounterFn(id, target);
}
void LogGLApi::glReadBufferFn(GLenum src) {
GL_SERVICE_LOG("glReadBuffer" << "(" << GLEnums::GetStringEnum(src) << ")");
gl_api_->glReadBufferFn(src);
}
void LogGLApi::glReadPixelsFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
void* pixels) {
GL_SERVICE_LOG("glReadPixels" << "(" << x << ", " << y << ", " << width
<< ", " << height << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels);
}
void LogGLApi::glReadPixelsRobustANGLEFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
GLsizei* length,
GLsizei* columns,
GLsizei* rows,
void* pixels) {
GL_SERVICE_LOG("glReadPixelsRobustANGLE"
<< "(" << x << ", " << y << ", " << width << ", " << height
<< ", " << GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", " << bufSize << ", "
<< static_cast<const void*>(length) << ", "
<< static_cast<const void*>(columns) << ", "
<< static_cast<const void*>(rows) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glReadPixelsRobustANGLEFn(x, y, width, height, format, type, bufSize,
length, columns, rows, pixels);
}
void LogGLApi::glReleaseShaderCompilerFn(void) {
GL_SERVICE_LOG("glReleaseShaderCompiler" << "(" << ")");
gl_api_->glReleaseShaderCompilerFn();
}
void LogGLApi::glReleaseTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
GLenum* layouts) {
GL_SERVICE_LOG("glReleaseTexturesANGLE"
<< "(" << numTextures << ", "
<< static_cast<const void*>(textures) << ", "
<< static_cast<const void*>(layouts) << ")");
gl_api_->glReleaseTexturesANGLEFn(numTextures, textures, layouts);
}
void LogGLApi::glRenderbufferStorageEXTFn(GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glRenderbufferStorageEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << width
<< ", " << height << ")");
gl_api_->glRenderbufferStorageEXTFn(target, internalformat, width, height);
}
void LogGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glRenderbufferStorageMultisample"
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
gl_api_->glRenderbufferStorageMultisampleFn(target, samples, internalformat,
width, height);
}
void LogGLApi::glRenderbufferStorageMultisampleAdvancedAMDFn(
GLenum target,
GLsizei samples,
GLsizei storageSamples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glRenderbufferStorageMultisampleAdvancedAMD"
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << storageSamples << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << width
<< ", " << height << ")");
gl_api_->glRenderbufferStorageMultisampleAdvancedAMDFn(
target, samples, storageSamples, internalformat, width, height);
}
void LogGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", " << samples
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
gl_api_->glRenderbufferStorageMultisampleEXTFn(target, samples,
internalformat, width, height);
}
void LogGLApi::glRequestExtensionANGLEFn(const char* name) {
GL_SERVICE_LOG("glRequestExtensionANGLE" << "(" << name << ")");
gl_api_->glRequestExtensionANGLEFn(name);
}
void LogGLApi::glResumeTransformFeedbackFn(void) {
GL_SERVICE_LOG("glResumeTransformFeedback" << "(" << ")");
gl_api_->glResumeTransformFeedbackFn();
}
void LogGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
GL_SERVICE_LOG("glSampleCoverage" << "(" << value << ", "
<< GLEnums::GetStringBool(invert) << ")");
gl_api_->glSampleCoverageFn(value, invert);
}
void LogGLApi::glSamplerParameterfFn(GLuint sampler,
GLenum pname,
GLfloat param) {
GL_SERVICE_LOG("glSamplerParameterf" << "(" << sampler << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< param << ")");
gl_api_->glSamplerParameterfFn(sampler, pname, param);
}
void LogGLApi::glSamplerParameterfvFn(GLuint sampler,
GLenum pname,
const GLfloat* params) {
GL_SERVICE_LOG("glSamplerParameterfv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glSamplerParameterfvFn(sampler, pname, params);
}
void LogGLApi::glSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLfloat* param) {
GL_SERVICE_LOG("glSamplerParameterfvRobustANGLE"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(param)
<< ")");
gl_api_->glSamplerParameterfvRobustANGLEFn(sampler, pname, bufSize, param);
}
void LogGLApi::glSamplerParameteriFn(GLuint sampler,
GLenum pname,
GLint param) {
GL_SERVICE_LOG("glSamplerParameteri" << "(" << sampler << ", "
<< GLEnums::GetStringEnum(pname) << ", "
<< param << ")");
gl_api_->glSamplerParameteriFn(sampler, pname, param);
}
void LogGLApi::glSamplerParameterivFn(GLuint sampler,
GLenum pname,
const GLint* params) {
GL_SERVICE_LOG("glSamplerParameteriv"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params) << ")");
gl_api_->glSamplerParameterivFn(sampler, pname, params);
}
void LogGLApi::glSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLint* param) {
GL_SERVICE_LOG("glSamplerParameterivRobustANGLE"
<< "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
<< ", " << bufSize << ", " << static_cast<const void*>(param)
<< ")");
gl_api_->glSamplerParameterivRobustANGLEFn(sampler, pname, bufSize, param);
}
void LogGLApi::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
GL_SERVICE_LOG("glScissor" << "(" << x << ", " << y << ", " << width << ", "
<< height << ")");
gl_api_->glScissorFn(x, y, width, height);
}
void LogGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
GL_SERVICE_LOG("glSetFenceNV" << "(" << fence << ", "
<< GLEnums::GetStringEnum(condition) << ")");
gl_api_->glSetFenceNVFn(fence, condition);
}
void LogGLApi::glShaderBinaryFn(GLsizei n,
const GLuint* shaders,
GLenum binaryformat,
const void* binary,
GLsizei length) {
GL_SERVICE_LOG("glShaderBinary"
<< "(" << n << ", " << static_cast<const void*>(shaders)
<< ", " << GLEnums::GetStringEnum(binaryformat) << ", "
<< static_cast<const void*>(binary) << ", " << length << ")");
gl_api_->glShaderBinaryFn(n, shaders, binaryformat, binary, length);
}
void LogGLApi::glShaderSourceFn(GLuint shader,
GLsizei count,
const char* const* str,
const GLint* length) {
GL_SERVICE_LOG("glShaderSource" << "(" << shader << ", " << count << ", "
<< static_cast<const void*>(str) << ", "
<< static_cast<const void*>(length) << ")");
gl_api_->glShaderSourceFn(shader, count, str, length);
}
void LogGLApi::glSignalSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* dstLayouts) {
GL_SERVICE_LOG("glSignalSemaphoreEXT"
<< "(" << semaphore << ", " << numBufferBarriers << ", "
<< static_cast<const void*>(buffers) << ", "
<< numTextureBarriers << ", "
<< static_cast<const void*>(textures) << ", "
<< static_cast<const void*>(dstLayouts) << ")");
gl_api_->glSignalSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, dstLayouts);
}
void LogGLApi::glStartTilingQCOMFn(GLuint x,
GLuint y,
GLuint width,
GLuint height,
GLbitfield preserveMask) {
GL_SERVICE_LOG("glStartTilingQCOM" << "(" << x << ", " << y << ", " << width
<< ", " << height << ", " << preserveMask
<< ")");
gl_api_->glStartTilingQCOMFn(x, y, width, height, preserveMask);
}
void LogGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
GL_SERVICE_LOG("glStencilFunc" << "(" << GLEnums::GetStringEnum(func) << ", "
<< ref << ", " << mask << ")");
gl_api_->glStencilFuncFn(func, ref, mask);
}
void LogGLApi::glStencilFuncSeparateFn(GLenum face,
GLenum func,
GLint ref,
GLuint mask) {
GL_SERVICE_LOG("glStencilFuncSeparate" << "(" << GLEnums::GetStringEnum(face)
<< ", " << GLEnums::GetStringEnum(func)
<< ", " << ref << ", " << mask << ")");
gl_api_->glStencilFuncSeparateFn(face, func, ref, mask);
}
void LogGLApi::glStencilMaskFn(GLuint mask) {
GL_SERVICE_LOG("glStencilMask" << "(" << mask << ")");
gl_api_->glStencilMaskFn(mask);
}
void LogGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
GL_SERVICE_LOG("glStencilMaskSeparate" << "(" << GLEnums::GetStringEnum(face)
<< ", " << mask << ")");
gl_api_->glStencilMaskSeparateFn(face, mask);
}
void LogGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
GL_SERVICE_LOG("glStencilOp" << "(" << GLEnums::GetStringEnum(fail) << ", "
<< GLEnums::GetStringEnum(zfail) << ", "
<< GLEnums::GetStringEnum(zpass) << ")");
gl_api_->glStencilOpFn(fail, zfail, zpass);
}
void LogGLApi::glStencilOpSeparateFn(GLenum face,
GLenum fail,
GLenum zfail,
GLenum zpass) {
GL_SERVICE_LOG("glStencilOpSeparate" << "(" << GLEnums::GetStringEnum(face)
<< ", " << GLEnums::GetStringEnum(fail)
<< ", " << GLEnums::GetStringEnum(zfail)
<< ", " << GLEnums::GetStringEnum(zpass)
<< ")");
gl_api_->glStencilOpSeparateFn(face, fail, zfail, zpass);
}
GLboolean LogGLApi::glTestFenceNVFn(GLuint fence) {
GL_SERVICE_LOG("glTestFenceNV" << "(" << fence << ")");
GLboolean result = gl_api_->glTestFenceNVFn(fence);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glTexBufferOESFn(GLenum target,
GLenum internalformat,
GLuint buffer) {
GL_SERVICE_LOG("glTexBufferOES"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << buffer
<< ")");
gl_api_->glTexBufferOESFn(target, internalformat, buffer);
}
void LogGLApi::glTexBufferRangeOESFn(GLenum target,
GLenum internalformat,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
GL_SERVICE_LOG("glTexBufferRangeOES"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(internalformat) << ", " << buffer
<< ", " << offset << ", " << size << ")");
gl_api_->glTexBufferRangeOESFn(target, internalformat, buffer, offset, size);
}
void LogGLApi::glTexImage2DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
GL_SERVICE_LOG("glTexImage2D" << "(" << GLEnums::GetStringEnum(target) << ", "
<< level << ", " << internalformat << ", "
<< width << ", " << height << ", " << border
<< ", " << GLEnums::GetStringEnum(format)
<< ", " << GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexImage2DFn(target, level, internalformat, width, height, border,
format, type, pixels);
}
void LogGLApi::glTexImage2DExternalANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type) {
GL_SERVICE_LOG("glTexImage2DExternalANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << internalformat << ", " << width << ", " << height
<< ", " << border << ", " << GLEnums::GetStringEnum(format)
<< ", " << GLEnums::GetStringEnum(type) << ")");
gl_api_->glTexImage2DExternalANGLEFn(target, level, internalformat, width,
height, border, format, type);
}
void LogGLApi::glTexImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
GL_SERVICE_LOG("glTexImage2DRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << internalformat << ", " << width << ", " << height
<< ", " << border << ", " << GLEnums::GetStringEnum(format)
<< ", " << GLEnums::GetStringEnum(type) << ", " << bufSize
<< ", " << static_cast<const void*>(pixels) << ")");
gl_api_->glTexImage2DRobustANGLEFn(target, level, internalformat, width,
height, border, format, type, bufSize,
pixels);
}
void LogGLApi::glTexImage3DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
GL_SERVICE_LOG("glTexImage3D" << "(" << GLEnums::GetStringEnum(target) << ", "
<< level << ", " << internalformat << ", "
<< width << ", " << height << ", " << depth
<< ", " << border << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexImage3DFn(target, level, internalformat, width, height, depth,
border, format, type, pixels);
}
void LogGLApi::glTexImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
GL_SERVICE_LOG("glTexImage3DRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << internalformat << ", " << width << ", " << height
<< ", " << depth << ", " << border << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", " << bufSize << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexImage3DRobustANGLEFn(target, level, internalformat, width,
height, depth, border, format, type,
bufSize, pixels);
}
void LogGLApi::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
GL_SERVICE_LOG("glTexParameterf" << "(" << GLEnums::GetStringEnum(target)
<< ", " << GLEnums::GetStringEnum(pname)
<< ", " << param << ")");
gl_api_->glTexParameterfFn(target, pname, param);
}
void LogGLApi::glTexParameterfvFn(GLenum target,
GLenum pname,
const GLfloat* params) {
GL_SERVICE_LOG("glTexParameterfv" << "(" << GLEnums::GetStringEnum(target)
<< ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params)
<< ")");
gl_api_->glTexParameterfvFn(target, pname, params);
}
void LogGLApi::glTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLfloat* params) {
GL_SERVICE_LOG("glTexParameterfvRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glTexParameterfvRobustANGLEFn(target, pname, bufSize, params);
}
void LogGLApi::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
GL_SERVICE_LOG("glTexParameteri" << "(" << GLEnums::GetStringEnum(target)
<< ", " << GLEnums::GetStringEnum(pname)
<< ", " << param << ")");
gl_api_->glTexParameteriFn(target, pname, param);
}
void LogGLApi::glTexParameterivFn(GLenum target,
GLenum pname,
const GLint* params) {
GL_SERVICE_LOG("glTexParameteriv" << "(" << GLEnums::GetStringEnum(target)
<< ", " << GLEnums::GetStringEnum(pname)
<< ", " << static_cast<const void*>(params)
<< ")");
gl_api_->glTexParameterivFn(target, pname, params);
}
void LogGLApi::glTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLint* params) {
GL_SERVICE_LOG("glTexParameterivRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", "
<< GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
<< static_cast<const void*>(params) << ")");
gl_api_->glTexParameterivRobustANGLEFn(target, pname, bufSize, params);
}
void LogGLApi::glTexStorage2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height) {
GL_SERVICE_LOG("glTexStorage2DEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ")");
gl_api_->glTexStorage2DEXTFn(target, levels, internalformat, width, height);
}
void LogGLApi::glTexStorage3DFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth) {
GL_SERVICE_LOG("glTexStorage3D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalformat) << ", "
<< width << ", " << height << ", " << depth << ")");
gl_api_->glTexStorage3DFn(target, levels, internalformat, width, height,
depth);
}
void LogGLApi::glTexStorageMem2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset) {
GL_SERVICE_LOG("glTexStorageMem2DEXT"
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalFormat) << ", "
<< width << ", " << height << ", " << memory << ", " << offset
<< ")");
gl_api_->glTexStorageMem2DEXTFn(target, levels, internalFormat, width, height,
memory, offset);
}
void LogGLApi::glTexStorageMemFlags2DANGLEFn(GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset,
GLbitfield createFlags,
GLbitfield usageFlags,
const void* imageCreateInfoPNext) {
GL_SERVICE_LOG("glTexStorageMemFlags2DANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << levels
<< ", " << GLEnums::GetStringEnum(internalFormat) << ", "
<< width << ", " << height << ", " << memory << ", " << offset
<< ", " << createFlags << ", " << usageFlags << ", "
<< static_cast<const void*>(imageCreateInfoPNext) << ")");
gl_api_->glTexStorageMemFlags2DANGLEFn(target, levels, internalFormat, width,
height, memory, offset, createFlags,
usageFlags, imageCreateInfoPNext);
}
void LogGLApi::glTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void* pixels) {
GL_SERVICE_LOG("glTexSubImage2D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << width << ", "
<< height << ", " << GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
format, type, pixels);
}
void LogGLApi::glTexSubImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
GL_SERVICE_LOG("glTexSubImage2DRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << width << ", "
<< height << ", " << GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", " << bufSize << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexSubImage2DRobustANGLEFn(target, level, xoffset, yoffset, width,
height, format, type, bufSize, pixels);
}
void LogGLApi::glTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
const void* pixels) {
GL_SERVICE_LOG("glTexSubImage3D"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << zoffset
<< ", " << width << ", " << height << ", " << depth << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
height, depth, format, type, pixels);
}
void LogGLApi::glTexSubImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
GL_SERVICE_LOG("glTexSubImage3DRobustANGLE"
<< "(" << GLEnums::GetStringEnum(target) << ", " << level
<< ", " << xoffset << ", " << yoffset << ", " << zoffset
<< ", " << width << ", " << height << ", " << depth << ", "
<< GLEnums::GetStringEnum(format) << ", "
<< GLEnums::GetStringEnum(type) << ", " << bufSize << ", "
<< static_cast<const void*>(pixels) << ")");
gl_api_->glTexSubImage3DRobustANGLEFn(target, level, xoffset, yoffset,
zoffset, width, height, depth, format,
type, bufSize, pixels);
}
void LogGLApi::glTransformFeedbackVaryingsFn(GLuint program,
GLsizei count,
const char* const* varyings,
GLenum bufferMode) {
GL_SERVICE_LOG("glTransformFeedbackVaryings"
<< "(" << program << ", " << count << ", "
<< static_cast<const void*>(varyings) << ", "
<< GLEnums::GetStringEnum(bufferMode) << ")");
gl_api_->glTransformFeedbackVaryingsFn(program, count, varyings, bufferMode);
}
void LogGLApi::glUniform1fFn(GLint location, GLfloat x) {
GL_SERVICE_LOG("glUniform1f" << "(" << location << ", " << x << ")");
gl_api_->glUniform1fFn(location, x);
}
void LogGLApi::glUniform1fvFn(GLint location, GLsizei count, const GLfloat* v) {
GL_SERVICE_LOG("glUniform1fv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform1fvFn(location, count, v);
}
void LogGLApi::glUniform1iFn(GLint location, GLint x) {
GL_SERVICE_LOG("glUniform1i" << "(" << location << ", " << x << ")");
gl_api_->glUniform1iFn(location, x);
}
void LogGLApi::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
GL_SERVICE_LOG("glUniform1iv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform1ivFn(location, count, v);
}
void LogGLApi::glUniform1uiFn(GLint location, GLuint v0) {
GL_SERVICE_LOG("glUniform1ui" << "(" << location << ", " << v0 << ")");
gl_api_->glUniform1uiFn(location, v0);
}
void LogGLApi::glUniform1uivFn(GLint location, GLsizei count, const GLuint* v) {
GL_SERVICE_LOG("glUniform1uiv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform1uivFn(location, count, v);
}
void LogGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
GL_SERVICE_LOG("glUniform2f" << "(" << location << ", " << x << ", " << y
<< ")");
gl_api_->glUniform2fFn(location, x, y);
}
void LogGLApi::glUniform2fvFn(GLint location, GLsizei count, const GLfloat* v) {
GL_SERVICE_LOG("glUniform2fv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform2fvFn(location, count, v);
}
void LogGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
GL_SERVICE_LOG("glUniform2i" << "(" << location << ", " << x << ", " << y
<< ")");
gl_api_->glUniform2iFn(location, x, y);
}
void LogGLApi::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
GL_SERVICE_LOG("glUniform2iv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform2ivFn(location, count, v);
}
void LogGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
GL_SERVICE_LOG("glUniform2ui" << "(" << location << ", " << v0 << ", " << v1
<< ")");
gl_api_->glUniform2uiFn(location, v0, v1);
}
void LogGLApi::glUniform2uivFn(GLint location, GLsizei count, const GLuint* v) {
GL_SERVICE_LOG("glUniform2uiv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform2uivFn(location, count, v);
}
void LogGLApi::glUniform3fFn(GLint location, GLfloat x, GLfloat y, GLfloat z) {
GL_SERVICE_LOG("glUniform3f" << "(" << location << ", " << x << ", " << y
<< ", " << z << ")");
gl_api_->glUniform3fFn(location, x, y, z);
}
void LogGLApi::glUniform3fvFn(GLint location, GLsizei count, const GLfloat* v) {
GL_SERVICE_LOG("glUniform3fv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform3fvFn(location, count, v);
}
void LogGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
GL_SERVICE_LOG("glUniform3i" << "(" << location << ", " << x << ", " << y
<< ", " << z << ")");
gl_api_->glUniform3iFn(location, x, y, z);
}
void LogGLApi::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
GL_SERVICE_LOG("glUniform3iv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform3ivFn(location, count, v);
}
void LogGLApi::glUniform3uiFn(GLint location, GLuint v0, GLuint v1, GLuint v2) {
GL_SERVICE_LOG("glUniform3ui" << "(" << location << ", " << v0 << ", " << v1
<< ", " << v2 << ")");
gl_api_->glUniform3uiFn(location, v0, v1, v2);
}
void LogGLApi::glUniform3uivFn(GLint location, GLsizei count, const GLuint* v) {
GL_SERVICE_LOG("glUniform3uiv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform3uivFn(location, count, v);
}
void LogGLApi::glUniform4fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
GL_SERVICE_LOG("glUniform4f" << "(" << location << ", " << x << ", " << y
<< ", " << z << ", " << w << ")");
gl_api_->glUniform4fFn(location, x, y, z, w);
}
void LogGLApi::glUniform4fvFn(GLint location, GLsizei count, const GLfloat* v) {
GL_SERVICE_LOG("glUniform4fv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform4fvFn(location, count, v);
}
void LogGLApi::glUniform4iFn(GLint location,
GLint x,
GLint y,
GLint z,
GLint w) {
GL_SERVICE_LOG("glUniform4i" << "(" << location << ", " << x << ", " << y
<< ", " << z << ", " << w << ")");
gl_api_->glUniform4iFn(location, x, y, z, w);
}
void LogGLApi::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
GL_SERVICE_LOG("glUniform4iv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform4ivFn(location, count, v);
}
void LogGLApi::glUniform4uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2,
GLuint v3) {
GL_SERVICE_LOG("glUniform4ui" << "(" << location << ", " << v0 << ", " << v1
<< ", " << v2 << ", " << v3 << ")");
gl_api_->glUniform4uiFn(location, v0, v1, v2, v3);
}
void LogGLApi::glUniform4uivFn(GLint location, GLsizei count, const GLuint* v) {
GL_SERVICE_LOG("glUniform4uiv" << "(" << location << ", " << count << ", "
<< static_cast<const void*>(v) << ")");
gl_api_->glUniform4uivFn(location, count, v);
}
void LogGLApi::glUniformBlockBindingFn(GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding) {
GL_SERVICE_LOG("glUniformBlockBinding" << "(" << program << ", "
<< uniformBlockIndex << ", "
<< uniformBlockBinding << ")");
gl_api_->glUniformBlockBindingFn(program, uniformBlockIndex,
uniformBlockBinding);
}
void LogGLApi::glUniformMatrix2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix2fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix2fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix2x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix2x3fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix2x3fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix2x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix2x4fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix2x4fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix3fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix3fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix3x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix3x2fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix3x2fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix3x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix3x4fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix3x4fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix4fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix4fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix4x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix4x2fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix4x2fvFn(location, count, transpose, value);
}
void LogGLApi::glUniformMatrix4x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
GL_SERVICE_LOG("glUniformMatrix4x3fv"
<< "(" << location << ", " << count << ", "
<< GLEnums::GetStringBool(transpose) << ", "
<< static_cast<const void*>(value) << ")");
gl_api_->glUniformMatrix4x3fvFn(location, count, transpose, value);
}
GLboolean LogGLApi::glUnmapBufferFn(GLenum target) {
GL_SERVICE_LOG("glUnmapBuffer" << "(" << GLEnums::GetStringEnum(target)
<< ")");
GLboolean result = gl_api_->glUnmapBufferFn(target);
GL_SERVICE_LOG("GL_RESULT: " << result);
return result;
}
void LogGLApi::glUseProgramFn(GLuint program) {
GL_SERVICE_LOG("glUseProgram" << "(" << program << ")");
gl_api_->glUseProgramFn(program);
}
void LogGLApi::glValidateProgramFn(GLuint program) {
GL_SERVICE_LOG("glValidateProgram" << "(" << program << ")");
gl_api_->glValidateProgramFn(program);
}
void LogGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
GL_SERVICE_LOG("glVertexAttrib1f" << "(" << indx << ", " << x << ")");
gl_api_->glVertexAttrib1fFn(indx, x);
}
void LogGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
GL_SERVICE_LOG("glVertexAttrib1fv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttrib1fvFn(indx, values);
}
void LogGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
GL_SERVICE_LOG("glVertexAttrib2f" << "(" << indx << ", " << x << ", " << y
<< ")");
gl_api_->glVertexAttrib2fFn(indx, x, y);
}
void LogGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
GL_SERVICE_LOG("glVertexAttrib2fv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttrib2fvFn(indx, values);
}
void LogGLApi::glVertexAttrib3fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z) {
GL_SERVICE_LOG("glVertexAttrib3f" << "(" << indx << ", " << x << ", " << y
<< ", " << z << ")");
gl_api_->glVertexAttrib3fFn(indx, x, y, z);
}
void LogGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
GL_SERVICE_LOG("glVertexAttrib3fv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttrib3fvFn(indx, values);
}
void LogGLApi::glVertexAttrib4fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
GL_SERVICE_LOG("glVertexAttrib4f" << "(" << indx << ", " << x << ", " << y
<< ", " << z << ", " << w << ")");
gl_api_->glVertexAttrib4fFn(indx, x, y, z, w);
}
void LogGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
GL_SERVICE_LOG("glVertexAttrib4fv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttrib4fvFn(indx, values);
}
void LogGLApi::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
GL_SERVICE_LOG("glVertexAttribDivisorANGLE" << "(" << index << ", " << divisor
<< ")");
gl_api_->glVertexAttribDivisorANGLEFn(index, divisor);
}
void LogGLApi::glVertexAttribI4iFn(GLuint indx,
GLint x,
GLint y,
GLint z,
GLint w) {
GL_SERVICE_LOG("glVertexAttribI4i" << "(" << indx << ", " << x << ", " << y
<< ", " << z << ", " << w << ")");
gl_api_->glVertexAttribI4iFn(indx, x, y, z, w);
}
void LogGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
GL_SERVICE_LOG("glVertexAttribI4iv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttribI4ivFn(indx, values);
}
void LogGLApi::glVertexAttribI4uiFn(GLuint indx,
GLuint x,
GLuint y,
GLuint z,
GLuint w) {
GL_SERVICE_LOG("glVertexAttribI4ui" << "(" << indx << ", " << x << ", " << y
<< ", " << z << ", " << w << ")");
gl_api_->glVertexAttribI4uiFn(indx, x, y, z, w);
}
void LogGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
GL_SERVICE_LOG("glVertexAttribI4uiv" << "(" << indx << ", "
<< static_cast<const void*>(values)
<< ")");
gl_api_->glVertexAttribI4uivFn(indx, values);
}
void LogGLApi::glVertexAttribIPointerFn(GLuint indx,
GLint size,
GLenum type,
GLsizei stride,
const void* ptr) {
GL_SERVICE_LOG("glVertexAttribIPointer"
<< "(" << indx << ", " << size << ", "
<< GLEnums::GetStringEnum(type) << ", " << stride << ", "
<< static_cast<const void*>(ptr) << ")");
gl_api_->glVertexAttribIPointerFn(indx, size, type, stride, ptr);
}
void LogGLApi::glVertexAttribPointerFn(GLuint indx,
GLint size,
GLenum type,
GLboolean normalized,
GLsizei stride,
const void* ptr) {
GL_SERVICE_LOG("glVertexAttribPointer"
<< "(" << indx << ", " << size << ", "
<< GLEnums::GetStringEnum(type) << ", "
<< GLEnums::GetStringBool(normalized) << ", " << stride << ", "
<< static_cast<const void*>(ptr) << ")");
gl_api_->glVertexAttribPointerFn(indx, size, type, normalized, stride, ptr);
}
void LogGLApi::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
GL_SERVICE_LOG("glViewport" << "(" << x << ", " << y << ", " << width << ", "
<< height << ")");
gl_api_->glViewportFn(x, y, width, height);
}
void LogGLApi::glWaitSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* srcLayouts) {
GL_SERVICE_LOG("glWaitSemaphoreEXT"
<< "(" << semaphore << ", " << numBufferBarriers << ", "
<< static_cast<const void*>(buffers) << ", "
<< numTextureBarriers << ", "
<< static_cast<const void*>(textures) << ", "
<< static_cast<const void*>(srcLayouts) << ")");
gl_api_->glWaitSemaphoreEXTFn(semaphore, numBufferBarriers, buffers,
numTextureBarriers, textures, srcLayouts);
}
void LogGLApi::glWaitSyncFn(GLsync sync, GLbitfield flags, GLuint64 timeout) {
GL_SERVICE_LOG("glWaitSync" << "(" << sync << ", " << flags << ", " << timeout
<< ")");
gl_api_->glWaitSyncFn(sync, flags, timeout);
}
void LogGLApi::glWindowRectanglesEXTFn(GLenum mode,
GLsizei n,
const GLint* box) {
GL_SERVICE_LOG("glWindowRectanglesEXT"
<< "(" << GLEnums::GetStringEnum(mode) << ", " << n << ", "
<< static_cast<const void*>(box) << ")");
gl_api_->glWindowRectanglesEXTFn(mode, n, box);
}
namespace {
void NoContextHelper(const char* method_name) {
static auto* const crash_key = base::debug::AllocateCrashKeyString(
"gl_method_no_context_key", base::debug::CrashKeySize::Size32);
base::debug::ScopedCrashKeyString scoped_message_key(crash_key, method_name);
base::debug::DumpWithoutCrashing();
}
} // namespace
void NoContextGLApi::glAcquireTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
const GLenum* layouts) {
NoContextHelper("glAcquireTexturesANGLE");
}
void NoContextGLApi::glActiveTextureFn(GLenum texture) {
NoContextHelper("glActiveTexture");
}
void NoContextGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
NoContextHelper("glAttachShader");
}
void NoContextGLApi::glBeginPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* loadops) {
NoContextHelper("glBeginPixelLocalStorageANGLE");
}
void NoContextGLApi::glBeginQueryFn(GLenum target, GLuint id) {
NoContextHelper("glBeginQuery");
}
void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
NoContextHelper("glBeginTransformFeedback");
}
void NoContextGLApi::glBindAttribLocationFn(GLuint program,
GLuint index,
const char* name) {
NoContextHelper("glBindAttribLocation");
}
void NoContextGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
NoContextHelper("glBindBuffer");
}
void NoContextGLApi::glBindBufferBaseFn(GLenum target,
GLuint index,
GLuint buffer) {
NoContextHelper("glBindBufferBase");
}
void NoContextGLApi::glBindBufferRangeFn(GLenum target,
GLuint index,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
NoContextHelper("glBindBufferRange");
}
void NoContextGLApi::glBindFragDataLocationFn(GLuint program,
GLuint colorNumber,
const char* name) {
NoContextHelper("glBindFragDataLocation");
}
void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program,
GLuint colorNumber,
GLuint index,
const char* name) {
NoContextHelper("glBindFragDataLocationIndexed");
}
void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
NoContextHelper("glBindFramebufferEXT");
}
void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target,
GLuint renderbuffer) {
NoContextHelper("glBindRenderbufferEXT");
}
void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
NoContextHelper("glBindSampler");
}
void NoContextGLApi::glBindTextureFn(GLenum target, GLuint texture) {
NoContextHelper("glBindTexture");
}
void NoContextGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
NoContextHelper("glBindTransformFeedback");
}
void NoContextGLApi::glBindUniformLocationCHROMIUMFn(GLuint program,
GLint location,
const char* name) {
NoContextHelper("glBindUniformLocationCHROMIUM");
}
void NoContextGLApi::glBindVertexArrayOESFn(GLuint array) {
NoContextHelper("glBindVertexArrayOES");
}
void NoContextGLApi::glBlendBarrierKHRFn(void) {
NoContextHelper("glBlendBarrierKHR");
}
void NoContextGLApi::glBlendColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
NoContextHelper("glBlendColor");
}
void NoContextGLApi::glBlendEquationFn(GLenum mode) {
NoContextHelper("glBlendEquation");
}
void NoContextGLApi::glBlendEquationiOESFn(GLuint buf, GLenum mode) {
NoContextHelper("glBlendEquationiOES");
}
void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB,
GLenum modeAlpha) {
NoContextHelper("glBlendEquationSeparate");
}
void NoContextGLApi::glBlendEquationSeparateiOESFn(GLuint buf,
GLenum modeRGB,
GLenum modeAlpha) {
NoContextHelper("glBlendEquationSeparateiOES");
}
void NoContextGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
NoContextHelper("glBlendFunc");
}
void NoContextGLApi::glBlendFunciOESFn(GLuint buf,
GLenum sfactor,
GLenum dfactor) {
NoContextHelper("glBlendFunciOES");
}
void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
NoContextHelper("glBlendFuncSeparate");
}
void NoContextGLApi::glBlendFuncSeparateiOESFn(GLuint buf,
GLenum srcRGB,
GLenum dstRGB,
GLenum srcAlpha,
GLenum dstAlpha) {
NoContextHelper("glBlendFuncSeparateiOES");
}
void NoContextGLApi::glBlitFramebufferFn(GLint srcX0,
GLint srcY0,
GLint srcX1,
GLint srcY1,
GLint dstX0,
GLint dstY0,
GLint dstX1,
GLint dstY1,
GLbitfield mask,
GLenum filter) {
NoContextHelper("glBlitFramebuffer");
}
void NoContextGLApi::glBlobCacheCallbacksANGLEFn(GLSETBLOBPROCANGLE set,
GLGETBLOBPROCANGLE get,
const void* userData) {
NoContextHelper("glBlobCacheCallbacksANGLE");
}
void NoContextGLApi::glBufferDataFn(GLenum target,
GLsizeiptr size,
const void* data,
GLenum usage) {
NoContextHelper("glBufferData");
}
void NoContextGLApi::glBufferSubDataFn(GLenum target,
GLintptr offset,
GLsizeiptr size,
const void* data) {
NoContextHelper("glBufferSubData");
}
GLenum NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
NoContextHelper("glCheckFramebufferStatusEXT");
return static_cast<GLenum>(0);
}
void NoContextGLApi::glClearFn(GLbitfield mask) {
NoContextHelper("glClear");
}
void NoContextGLApi::glClearBufferfiFn(GLenum buffer,
GLint drawbuffer,
const GLfloat depth,
GLint stencil) {
NoContextHelper("glClearBufferfi");
}
void NoContextGLApi::glClearBufferfvFn(GLenum buffer,
GLint drawbuffer,
const GLfloat* value) {
NoContextHelper("glClearBufferfv");
}
void NoContextGLApi::glClearBufferivFn(GLenum buffer,
GLint drawbuffer,
const GLint* value) {
NoContextHelper("glClearBufferiv");
}
void NoContextGLApi::glClearBufferuivFn(GLenum buffer,
GLint drawbuffer,
const GLuint* value) {
NoContextHelper("glClearBufferuiv");
}
void NoContextGLApi::glClearColorFn(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha) {
NoContextHelper("glClearColor");
}
void NoContextGLApi::glClearDepthFn(GLclampd depth) {
NoContextHelper("glClearDepth");
}
void NoContextGLApi::glClearDepthfFn(GLclampf depth) {
NoContextHelper("glClearDepthf");
}
void NoContextGLApi::glClearStencilFn(GLint s) {
NoContextHelper("glClearStencil");
}
void NoContextGLApi::glClearTexImageFn(GLuint texture,
GLint level,
GLenum format,
GLenum type,
const GLvoid* data) {
NoContextHelper("glClearTexImage");
}
void NoContextGLApi::glClearTexSubImageFn(GLuint texture,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint width,
GLint height,
GLint depth,
GLenum format,
GLenum type,
const GLvoid* data) {
NoContextHelper("glClearTexSubImage");
}
GLenum NoContextGLApi::glClientWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) {
NoContextHelper("glClientWaitSync");
return static_cast<GLenum>(0);
}
void NoContextGLApi::glClipControlEXTFn(GLenum origin, GLenum depth) {
NoContextHelper("glClipControlEXT");
}
void NoContextGLApi::glColorMaskFn(GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
NoContextHelper("glColorMask");
}
void NoContextGLApi::glColorMaskiOESFn(GLuint buf,
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha) {
NoContextHelper("glColorMaskiOES");
}
void NoContextGLApi::glCompileShaderFn(GLuint shader) {
NoContextHelper("glCompileShader");
}
void NoContextGLApi::glCompressedTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLsizei imageSize,
const void* data) {
NoContextHelper("glCompressedTexImage2D");
}
void NoContextGLApi::glCompressedTexImage3DFn(GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLsizei imageSize,
const void* data) {
NoContextHelper("glCompressedTexImage3D");
}
void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLsizei imageSize,
const void* data) {
NoContextHelper("glCompressedTexSubImage2D");
}
void NoContextGLApi::glCompressedTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLsizei imageSize,
const void* data) {
NoContextHelper("glCompressedTexSubImage3D");
}
void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget,
GLenum writeTarget,
GLintptr readOffset,
GLintptr writeOffset,
GLsizeiptr size) {
NoContextHelper("glCopyBufferSubData");
}
void NoContextGLApi::glCopySubTextureCHROMIUMFn(
GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
NoContextHelper("glCopySubTextureCHROMIUM");
}
void NoContextGLApi::glCopyTexImage2DFn(GLenum target,
GLint level,
GLenum internalformat,
GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLint border) {
NoContextHelper("glCopyTexImage2D");
}
void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
NoContextHelper("glCopyTexSubImage2D");
}
void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLint x,
GLint y,
GLsizei width,
GLsizei height) {
NoContextHelper("glCopyTexSubImage3D");
}
void NoContextGLApi::glCopyTextureCHROMIUMFn(GLuint sourceId,
GLint sourceLevel,
GLenum destTarget,
GLuint destId,
GLint destLevel,
GLint internalFormat,
GLenum destType,
GLboolean unpackFlipY,
GLboolean unpackPremultiplyAlpha,
GLboolean unpackUnmultiplyAlpha) {
NoContextHelper("glCopyTextureCHROMIUM");
}
void NoContextGLApi::glCreateMemoryObjectsEXTFn(GLsizei n,
GLuint* memoryObjects) {
NoContextHelper("glCreateMemoryObjectsEXT");
}
GLuint NoContextGLApi::glCreateProgramFn(void) {
NoContextHelper("glCreateProgram");
return 0U;
}
GLuint NoContextGLApi::glCreateShaderFn(GLenum type) {
NoContextHelper("glCreateShader");
return 0U;
}
void NoContextGLApi::glCullFaceFn(GLenum mode) {
NoContextHelper("glCullFace");
}
void NoContextGLApi::glDebugMessageCallbackKHRFn(GLDEBUGPROC callback,
const void* userParam) {
NoContextHelper("glDebugMessageCallbackKHR");
}
void NoContextGLApi::glDebugMessageControlKHRFn(GLenum source,
GLenum type,
GLenum severity,
GLsizei count,
const GLuint* ids,
GLboolean enabled) {
NoContextHelper("glDebugMessageControlKHR");
}
void NoContextGLApi::glDebugMessageInsertKHRFn(GLenum source,
GLenum type,
GLuint id,
GLenum severity,
GLsizei length,
const char* buf) {
NoContextHelper("glDebugMessageInsertKHR");
}
void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
NoContextHelper("glDeleteBuffersARB");
}
void NoContextGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
NoContextHelper("glDeleteFencesNV");
}
void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
const GLuint* framebuffers) {
NoContextHelper("glDeleteFramebuffersEXT");
}
void NoContextGLApi::glDeleteMemoryObjectsEXTFn(GLsizei n,
const GLuint* memoryObjects) {
NoContextHelper("glDeleteMemoryObjectsEXT");
}
void NoContextGLApi::glDeleteProgramFn(GLuint program) {
NoContextHelper("glDeleteProgram");
}
void NoContextGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
NoContextHelper("glDeleteQueries");
}
void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
const GLuint* renderbuffers) {
NoContextHelper("glDeleteRenderbuffersEXT");
}
void NoContextGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
NoContextHelper("glDeleteSamplers");
}
void NoContextGLApi::glDeleteSemaphoresEXTFn(GLsizei n,
const GLuint* semaphores) {
NoContextHelper("glDeleteSemaphoresEXT");
}
void NoContextGLApi::glDeleteShaderFn(GLuint shader) {
NoContextHelper("glDeleteShader");
}
void NoContextGLApi::glDeleteSyncFn(GLsync sync) {
NoContextHelper("glDeleteSync");
}
void NoContextGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
NoContextHelper("glDeleteTextures");
}
void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n,
const GLuint* ids) {
NoContextHelper("glDeleteTransformFeedbacks");
}
void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n,
const GLuint* arrays) {
NoContextHelper("glDeleteVertexArraysOES");
}
void NoContextGLApi::glDepthFuncFn(GLenum func) {
NoContextHelper("glDepthFunc");
}
void NoContextGLApi::glDepthMaskFn(GLboolean flag) {
NoContextHelper("glDepthMask");
}
void NoContextGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
NoContextHelper("glDepthRange");
}
void NoContextGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
NoContextHelper("glDepthRangef");
}
void NoContextGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
NoContextHelper("glDetachShader");
}
void NoContextGLApi::glDisableFn(GLenum cap) {
NoContextHelper("glDisable");
}
void NoContextGLApi::glDisableiOESFn(GLenum target, GLuint index) {
NoContextHelper("glDisableiOES");
}
void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index) {
NoContextHelper("glDisableVertexAttribArray");
}
void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
NoContextHelper("glDiscardFramebufferEXT");
}
void NoContextGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
NoContextHelper("glDrawArrays");
}
void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount) {
NoContextHelper("glDrawArraysInstancedANGLE");
}
void NoContextGLApi::glDrawArraysInstancedBaseInstanceANGLEFn(
GLenum mode,
GLint first,
GLsizei count,
GLsizei primcount,
GLuint baseinstance) {
NoContextHelper("glDrawArraysInstancedBaseInstanceANGLE");
}
void NoContextGLApi::glDrawBufferFn(GLenum mode) {
NoContextHelper("glDrawBuffer");
}
void NoContextGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
NoContextHelper("glDrawBuffersARB");
}
void NoContextGLApi::glDrawElementsFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices) {
NoContextHelper("glDrawElements");
}
void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount) {
NoContextHelper("glDrawElementsInstancedANGLE");
}
void NoContextGLApi::glDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
GLsizei count,
GLenum type,
const void* indices,
GLsizei primcount,
GLint baseVertex,
GLuint baseInstance) {
NoContextHelper("glDrawElementsInstancedBaseVertexBaseInstanceANGLE");
}
void NoContextGLApi::glDrawRangeElementsFn(GLenum mode,
GLuint start,
GLuint end,
GLsizei count,
GLenum type,
const void* indices) {
NoContextHelper("glDrawRangeElements");
}
void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
GLenum target,
GLeglImageOES image) {
NoContextHelper("glEGLImageTargetRenderbufferStorageOES");
}
void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
GLeglImageOES image) {
NoContextHelper("glEGLImageTargetTexture2DOES");
}
void NoContextGLApi::glEnableFn(GLenum cap) {
NoContextHelper("glEnable");
}
void NoContextGLApi::glEnableiOESFn(GLenum target, GLuint index) {
NoContextHelper("glEnableiOES");
}
void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index) {
NoContextHelper("glEnableVertexAttribArray");
}
void NoContextGLApi::glEndPixelLocalStorageANGLEFn(GLsizei n,
const GLenum* storeops) {
NoContextHelper("glEndPixelLocalStorageANGLE");
}
void NoContextGLApi::glEndPixelLocalStorageImplicitANGLEFn() {
NoContextHelper("glEndPixelLocalStorageImplicitANGLE");
}
void NoContextGLApi::glEndQueryFn(GLenum target) {
NoContextHelper("glEndQuery");
}
void NoContextGLApi::glEndTilingQCOMFn(GLbitfield preserveMask) {
NoContextHelper("glEndTilingQCOM");
}
void NoContextGLApi::glEndTransformFeedbackFn(void) {
NoContextHelper("glEndTransformFeedback");
}
GLsync NoContextGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
NoContextHelper("glFenceSync");
return nullptr;
}
void NoContextGLApi::glFinishFn(void) {
NoContextHelper("glFinish");
}
void NoContextGLApi::glFinishFenceNVFn(GLuint fence) {
NoContextHelper("glFinishFenceNV");
}
void NoContextGLApi::glFlushFn(void) {
NoContextHelper("glFlush");
}
void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length) {
NoContextHelper("glFlushMappedBufferRange");
}
void NoContextGLApi::glFramebufferMemorylessPixelLocalStorageANGLEFn(
GLint plane,
GLenum internalformat,
GLbitfield usage) {
NoContextHelper("glFramebufferMemorylessPixelLocalStorageANGLE");
}
void NoContextGLApi::glFramebufferParameteriMESAFn(GLenum target,
GLenum pname,
GLint param) {
NoContextHelper("glFramebufferParameteriMESA");
}
void NoContextGLApi::glFramebufferPixelLocalClearValuefvANGLEFn(
GLint plane,
const GLfloat* value) {
NoContextHelper("glFramebufferPixelLocalClearValuefvANGLE");
}
void NoContextGLApi::glFramebufferPixelLocalClearValueivANGLEFn(
GLint plane,
const GLint* value) {
NoContextHelper("glFramebufferPixelLocalClearValueivANGLE");
}
void NoContextGLApi::glFramebufferPixelLocalClearValueuivANGLEFn(
GLint plane,
const GLuint* value) {
NoContextHelper("glFramebufferPixelLocalClearValueuivANGLE");
}
void NoContextGLApi::glFramebufferPixelLocalStorageInterruptANGLEFn() {
NoContextHelper("glFramebufferPixelLocalStorageInterruptANGLE");
}
void NoContextGLApi::glFramebufferPixelLocalStorageRestoreANGLEFn() {
NoContextHelper("glFramebufferPixelLocalStorageRestoreANGLE");
}
void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer) {
NoContextHelper("glFramebufferRenderbufferEXT");
}
void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level) {
NoContextHelper("glFramebufferTexture2DEXT");
}
void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
GLenum attachment,
GLenum textarget,
GLuint texture,
GLint level,
GLsizei samples) {
NoContextHelper("glFramebufferTexture2DMultisampleEXT");
}
void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint layer) {
NoContextHelper("glFramebufferTextureLayer");
}
void NoContextGLApi::glFramebufferTextureMultiviewOVRFn(GLenum target,
GLenum attachment,
GLuint texture,
GLint level,
GLint baseViewIndex,
GLsizei numViews) {
NoContextHelper("glFramebufferTextureMultiviewOVR");
}
void NoContextGLApi::glFramebufferTexturePixelLocalStorageANGLEFn(
GLint plane,
GLuint backingtexture,
GLint level,
GLint layer,
GLbitfield usage) {
NoContextHelper("glFramebufferTexturePixelLocalStorageANGLE");
}
void NoContextGLApi::glFrontFaceFn(GLenum mode) {
NoContextHelper("glFrontFace");
}
void NoContextGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
NoContextHelper("glGenBuffersARB");
}
void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target) {
NoContextHelper("glGenerateMipmapEXT");
}
void NoContextGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
NoContextHelper("glGenFencesNV");
}
void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
NoContextHelper("glGenFramebuffersEXT");
}
void NoContextGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
NoContextHelper("glGenQueries");
}
void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
NoContextHelper("glGenRenderbuffersEXT");
}
void NoContextGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
NoContextHelper("glGenSamplers");
}
void NoContextGLApi::glGenSemaphoresEXTFn(GLsizei n, GLuint* semaphores) {
NoContextHelper("glGenSemaphoresEXT");
}
void NoContextGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
NoContextHelper("glGenTextures");
}
void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
NoContextHelper("glGenTransformFeedbacks");
}
void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
NoContextHelper("glGenVertexArraysOES");
}
void NoContextGLApi::glGetActiveAttribFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
NoContextHelper("glGetActiveAttrib");
}
void NoContextGLApi::glGetActiveUniformFn(GLuint program,
GLuint index,
GLsizei bufsize,
GLsizei* length,
GLint* size,
GLenum* type,
char* name) {
NoContextHelper("glGetActiveUniform");
}
void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLint* params) {
NoContextHelper("glGetActiveUniformBlockiv");
}
void NoContextGLApi::glGetActiveUniformBlockivRobustANGLEFn(
GLuint program,
GLuint uniformBlockIndex,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetActiveUniformBlockivRobustANGLE");
}
void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program,
GLuint uniformBlockIndex,
GLsizei bufSize,
GLsizei* length,
char* uniformBlockName) {
NoContextHelper("glGetActiveUniformBlockName");
}
void NoContextGLApi::glGetActiveUniformsivFn(GLuint program,
GLsizei uniformCount,
const GLuint* uniformIndices,
GLenum pname,
GLint* params) {
NoContextHelper("glGetActiveUniformsiv");
}
void NoContextGLApi::glGetAttachedShadersFn(GLuint program,
GLsizei maxcount,
GLsizei* count,
GLuint* shaders) {
NoContextHelper("glGetAttachedShaders");
}
GLint NoContextGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
NoContextHelper("glGetAttribLocation");
return 0;
}
void NoContextGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
NoContextHelper("glGetBooleanv");
}
void NoContextGLApi::glGetBooleanvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLboolean* data) {
NoContextHelper("glGetBooleanvRobustANGLE");
}
void NoContextGLApi::glGetBufferParameteri64vRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
NoContextHelper("glGetBufferParameteri64vRobustANGLE");
}
void NoContextGLApi::glGetBufferParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
NoContextHelper("glGetBufferParameteriv");
}
void NoContextGLApi::glGetBufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetBufferParameterivRobustANGLE");
}
void NoContextGLApi::glGetBufferPointervRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** params) {
NoContextHelper("glGetBufferPointervRobustANGLE");
}
GLuint NoContextGLApi::glGetDebugMessageLogKHRFn(GLuint count,
GLsizei bufSize,
GLenum* sources,
GLenum* types,
GLuint* ids,
GLenum* severities,
GLsizei* lengths,
char* messageLog) {
NoContextHelper("glGetDebugMessageLogKHR");
return 0U;
}
GLenum NoContextGLApi::glGetErrorFn(void) {
NoContextHelper("glGetError");
return static_cast<GLenum>(0);
}
void NoContextGLApi::glGetFenceivNVFn(GLuint fence,
GLenum pname,
GLint* params) {
NoContextHelper("glGetFenceivNV");
}
void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
NoContextHelper("glGetFloatv");
}
void NoContextGLApi::glGetFloatvRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* data) {
NoContextHelper("glGetFloatvRobustANGLE");
}
GLint NoContextGLApi::glGetFragDataIndexFn(GLuint program, const char* name) {
NoContextHelper("glGetFragDataIndex");
return 0;
}
GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
const char* name) {
NoContextHelper("glGetFragDataLocation");
return 0;
}
void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
GLenum target,
GLenum attachment,
GLenum pname,
GLint* params) {
NoContextHelper("glGetFramebufferAttachmentParameterivEXT");
}
void NoContextGLApi::glGetFramebufferAttachmentParameterivRobustANGLEFn(
GLenum target,
GLenum attachment,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetFramebufferAttachmentParameterivRobustANGLE");
}
void NoContextGLApi::glGetFramebufferPixelLocalStorageParameterfvRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetFramebufferPixelLocalStorageParameterfvRobustANGLE");
}
void NoContextGLApi::glGetFramebufferPixelLocalStorageParameterivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetFramebufferPixelLocalStorageParameterivRobustANGLE");
}
void NoContextGLApi::glGetFramebufferPixelLocalStorageParameteruivRobustANGLEFn(
GLint plane,
GLenum pname,
GLsizei paramCount,
GLsizei* length,
GLuint* params) {
NoContextHelper("glGetFramebufferPixelLocalStorageParameteruivRobustANGLE");
}
GLenum NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
NoContextHelper("glGetGraphicsResetStatusARB");
return static_cast<GLenum>(0);
}
void NoContextGLApi::glGetInteger64i_vFn(GLenum target,
GLuint index,
GLint64* data) {
NoContextHelper("glGetInteger64i_v");
}
void NoContextGLApi::glGetInteger64i_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
NoContextHelper("glGetInteger64i_vRobustANGLE");
}
void NoContextGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
NoContextHelper("glGetInteger64v");
}
void NoContextGLApi::glGetInteger64vRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* data) {
NoContextHelper("glGetInteger64vRobustANGLE");
}
void NoContextGLApi::glGetIntegeri_vFn(GLenum target,
GLuint index,
GLint* data) {
NoContextHelper("glGetIntegeri_v");
}
void NoContextGLApi::glGetIntegeri_vRobustANGLEFn(GLenum target,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
NoContextHelper("glGetIntegeri_vRobustANGLE");
}
void NoContextGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
NoContextHelper("glGetIntegerv");
}
void NoContextGLApi::glGetIntegervRobustANGLEFn(GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* data) {
NoContextHelper("glGetIntegervRobustANGLE");
}
void NoContextGLApi::glGetInternalformativFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLint* params) {
NoContextHelper("glGetInternalformativ");
}
void NoContextGLApi::glGetInternalformativRobustANGLEFn(GLenum target,
GLenum internalformat,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetInternalformativRobustANGLE");
}
void NoContextGLApi::glGetInternalformatSampleivNVFn(GLenum target,
GLenum internalformat,
GLsizei samples,
GLenum pname,
GLsizei bufSize,
GLint* params) {
NoContextHelper("glGetInternalformatSampleivNV");
}
void NoContextGLApi::glGetMultisamplefvRobustANGLEFn(GLenum pname,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLfloat* val) {
NoContextHelper("glGetMultisamplefvRobustANGLE");
}
void NoContextGLApi::glGetObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei bufSize,
GLsizei* length,
char* label) {
NoContextHelper("glGetObjectLabelKHR");
}
void NoContextGLApi::glGetObjectPtrLabelKHRFn(void* ptr,
GLsizei bufSize,
GLsizei* length,
char* label) {
NoContextHelper("glGetObjectPtrLabelKHR");
}
void NoContextGLApi::glGetPointervKHRFn(GLenum pname, void** params) {
NoContextHelper("glGetPointervKHR");
}
void NoContextGLApi::glGetProgramBinaryFn(GLuint program,
GLsizei bufSize,
GLsizei* length,
GLenum* binaryFormat,
GLvoid* binary) {
NoContextHelper("glGetProgramBinary");
}
void NoContextGLApi::glGetProgramInfoLogFn(GLuint program,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
NoContextHelper("glGetProgramInfoLog");
}
void NoContextGLApi::glGetProgramivFn(GLuint program,
GLenum pname,
GLint* params) {
NoContextHelper("glGetProgramiv");
}
void NoContextGLApi::glGetProgramivRobustANGLEFn(GLuint program,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetProgramivRobustANGLE");
}
void NoContextGLApi::glGetQueryivFn(GLenum target,
GLenum pname,
GLint* params) {
NoContextHelper("glGetQueryiv");
}
void NoContextGLApi::glGetQueryivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetQueryivRobustANGLE");
}
void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id,
GLenum pname,
GLint64* params) {
NoContextHelper("glGetQueryObjecti64v");
}
void NoContextGLApi::glGetQueryObjecti64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint64* params) {
NoContextHelper("glGetQueryObjecti64vRobustANGLE");
}
void NoContextGLApi::glGetQueryObjectivFn(GLuint id,
GLenum pname,
GLint* params) {
NoContextHelper("glGetQueryObjectiv");
}
void NoContextGLApi::glGetQueryObjectivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetQueryObjectivRobustANGLE");
}
void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id,
GLenum pname,
GLuint64* params) {
NoContextHelper("glGetQueryObjectui64v");
}
void NoContextGLApi::glGetQueryObjectui64vRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint64* params) {
NoContextHelper("glGetQueryObjectui64vRobustANGLE");
}
void NoContextGLApi::glGetQueryObjectuivFn(GLuint id,
GLenum pname,
GLuint* params) {
NoContextHelper("glGetQueryObjectuiv");
}
void NoContextGLApi::glGetQueryObjectuivRobustANGLEFn(GLuint id,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
NoContextHelper("glGetQueryObjectuivRobustANGLE");
}
void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
GLenum pname,
GLint* params) {
NoContextHelper("glGetRenderbufferParameterivEXT");
}
void NoContextGLApi::glGetRenderbufferParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetRenderbufferParameterivRobustANGLE");
}
void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler,
GLenum pname,
GLfloat* params) {
NoContextHelper("glGetSamplerParameterfv");
}
void NoContextGLApi::glGetSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetSamplerParameterfvRobustANGLE");
}
void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler,
GLenum pname,
GLint* params) {
NoContextHelper("glGetSamplerParameteriv");
}
void NoContextGLApi::glGetSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetSamplerParameterivRobustANGLE");
}
void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* infolog) {
NoContextHelper("glGetShaderInfoLog");
}
void NoContextGLApi::glGetShaderivFn(GLuint shader,
GLenum pname,
GLint* params) {
NoContextHelper("glGetShaderiv");
}
void NoContextGLApi::glGetShaderivRobustANGLEFn(GLuint shader,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetShaderivRobustANGLE");
}
void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
GLenum precisiontype,
GLint* range,
GLint* precision) {
NoContextHelper("glGetShaderPrecisionFormat");
}
void NoContextGLApi::glGetShaderSourceFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
NoContextHelper("glGetShaderSource");
}
const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
NoContextHelper("glGetString");
return NULL;
}
const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
NoContextHelper("glGetStringi");
return NULL;
}
void NoContextGLApi::glGetSyncivFn(GLsync sync,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* values) {
NoContextHelper("glGetSynciv");
}
void NoContextGLApi::glGetTexLevelParameterfvANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLfloat* params) {
NoContextHelper("glGetTexLevelParameterfvANGLE");
}
void NoContextGLApi::glGetTexLevelParameterfvRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetTexLevelParameterfvRobustANGLE");
}
void NoContextGLApi::glGetTexLevelParameterivANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLint* params) {
NoContextHelper("glGetTexLevelParameterivANGLE");
}
void NoContextGLApi::glGetTexLevelParameterivRobustANGLEFn(GLenum target,
GLint level,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetTexLevelParameterivRobustANGLE");
}
void NoContextGLApi::glGetTexParameterfvFn(GLenum target,
GLenum pname,
GLfloat* params) {
NoContextHelper("glGetTexParameterfv");
}
void NoContextGLApi::glGetTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetTexParameterfvRobustANGLE");
}
void NoContextGLApi::glGetTexParameterivFn(GLenum target,
GLenum pname,
GLint* params) {
NoContextHelper("glGetTexParameteriv");
}
void NoContextGLApi::glGetTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetTexParameterivRobustANGLE");
}
void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
GLuint index,
GLsizei bufSize,
GLsizei* length,
GLsizei* size,
GLenum* type,
char* name) {
NoContextHelper("glGetTransformFeedbackVarying");
}
void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
GLsizei bufsize,
GLsizei* length,
char* source) {
NoContextHelper("glGetTranslatedShaderSourceANGLE");
}
GLuint NoContextGLApi::glGetUniformBlockIndexFn(GLuint program,
const char* uniformBlockName) {
NoContextHelper("glGetUniformBlockIndex");
return 0U;
}
void NoContextGLApi::glGetUniformfvFn(GLuint program,
GLint location,
GLfloat* params) {
NoContextHelper("glGetUniformfv");
}
void NoContextGLApi::glGetUniformfvRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetUniformfvRobustANGLE");
}
void NoContextGLApi::glGetUniformIndicesFn(GLuint program,
GLsizei uniformCount,
const char* const* uniformNames,
GLuint* uniformIndices) {
NoContextHelper("glGetUniformIndices");
}
void NoContextGLApi::glGetUniformivFn(GLuint program,
GLint location,
GLint* params) {
NoContextHelper("glGetUniformiv");
}
void NoContextGLApi::glGetUniformivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetUniformivRobustANGLE");
}
GLint NoContextGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
NoContextHelper("glGetUniformLocation");
return 0;
}
void NoContextGLApi::glGetUniformuivFn(GLuint program,
GLint location,
GLuint* params) {
NoContextHelper("glGetUniformuiv");
}
void NoContextGLApi::glGetUniformuivRobustANGLEFn(GLuint program,
GLint location,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
NoContextHelper("glGetUniformuivRobustANGLE");
}
void NoContextGLApi::glGetVertexAttribfvFn(GLuint index,
GLenum pname,
GLfloat* params) {
NoContextHelper("glGetVertexAttribfv");
}
void NoContextGLApi::glGetVertexAttribfvRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLfloat* params) {
NoContextHelper("glGetVertexAttribfvRobustANGLE");
}
void NoContextGLApi::glGetVertexAttribIivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetVertexAttribIivRobustANGLE");
}
void NoContextGLApi::glGetVertexAttribIuivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLuint* params) {
NoContextHelper("glGetVertexAttribIuivRobustANGLE");
}
void NoContextGLApi::glGetVertexAttribivFn(GLuint index,
GLenum pname,
GLint* params) {
NoContextHelper("glGetVertexAttribiv");
}
void NoContextGLApi::glGetVertexAttribivRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
GLint* params) {
NoContextHelper("glGetVertexAttribivRobustANGLE");
}
void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index,
GLenum pname,
void** pointer) {
NoContextHelper("glGetVertexAttribPointerv");
}
void NoContextGLApi::glGetVertexAttribPointervRobustANGLEFn(GLuint index,
GLenum pname,
GLsizei bufSize,
GLsizei* length,
void** pointer) {
NoContextHelper("glGetVertexAttribPointervRobustANGLE");
}
void NoContextGLApi::glHintFn(GLenum target, GLenum mode) {
NoContextHelper("glHint");
}
void NoContextGLApi::glImportMemoryFdEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLint fd) {
NoContextHelper("glImportMemoryFdEXT");
}
void NoContextGLApi::glImportMemoryWin32HandleEXTFn(GLuint memory,
GLuint64 size,
GLenum handleType,
void* handle) {
NoContextHelper("glImportMemoryWin32HandleEXT");
}
void NoContextGLApi::glImportMemoryZirconHandleANGLEFn(GLuint memory,
GLuint64 size,
GLenum handleType,
GLuint handle) {
NoContextHelper("glImportMemoryZirconHandleANGLE");
}
void NoContextGLApi::glImportSemaphoreFdEXTFn(GLuint semaphore,
GLenum handleType,
GLint fd) {
NoContextHelper("glImportSemaphoreFdEXT");
}
void NoContextGLApi::glImportSemaphoreWin32HandleEXTFn(GLuint semaphore,
GLenum handleType,
void* handle) {
NoContextHelper("glImportSemaphoreWin32HandleEXT");
}
void NoContextGLApi::glImportSemaphoreZirconHandleANGLEFn(GLuint semaphore,
GLenum handleType,
GLuint handle) {
NoContextHelper("glImportSemaphoreZirconHandleANGLE");
}
void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length,
const char* marker) {
NoContextHelper("glInsertEventMarkerEXT");
}
void NoContextGLApi::glInvalidateFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments) {
NoContextHelper("glInvalidateFramebuffer");
}
void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target,
GLsizei numAttachments,
const GLenum* attachments,
GLint x,
GLint y,
GLint width,
GLint height) {
NoContextHelper("glInvalidateSubFramebuffer");
}
void NoContextGLApi::glInvalidateTextureANGLEFn(GLenum target) {
NoContextHelper("glInvalidateTextureANGLE");
}
GLboolean NoContextGLApi::glIsBufferFn(GLuint buffer) {
NoContextHelper("glIsBuffer");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsEnabledFn(GLenum cap) {
NoContextHelper("glIsEnabled");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsEnablediOESFn(GLenum target, GLuint index) {
NoContextHelper("glIsEnablediOES");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsFenceNVFn(GLuint fence) {
NoContextHelper("glIsFenceNV");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
NoContextHelper("glIsFramebufferEXT");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsProgramFn(GLuint program) {
NoContextHelper("glIsProgram");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsQueryFn(GLuint query) {
NoContextHelper("glIsQuery");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
NoContextHelper("glIsRenderbufferEXT");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsSamplerFn(GLuint sampler) {
NoContextHelper("glIsSampler");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsShaderFn(GLuint shader) {
NoContextHelper("glIsShader");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsSyncFn(GLsync sync) {
NoContextHelper("glIsSync");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsTextureFn(GLuint texture) {
NoContextHelper("glIsTexture");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsTransformFeedbackFn(GLuint id) {
NoContextHelper("glIsTransformFeedback");
return GL_FALSE;
}
GLboolean NoContextGLApi::glIsVertexArrayOESFn(GLuint array) {
NoContextHelper("glIsVertexArrayOES");
return GL_FALSE;
}
void NoContextGLApi::glLineWidthFn(GLfloat width) {
NoContextHelper("glLineWidth");
}
void NoContextGLApi::glLinkProgramFn(GLuint program) {
NoContextHelper("glLinkProgram");
}
void* NoContextGLApi::glMapBufferFn(GLenum target, GLenum access) {
NoContextHelper("glMapBuffer");
return NULL;
}
void* NoContextGLApi::glMapBufferRangeFn(GLenum target,
GLintptr offset,
GLsizeiptr length,
GLbitfield access) {
NoContextHelper("glMapBufferRange");
return NULL;
}
void NoContextGLApi::glMaxShaderCompilerThreadsKHRFn(GLuint count) {
NoContextHelper("glMaxShaderCompilerThreadsKHR");
}
void NoContextGLApi::glMemoryObjectParameterivEXTFn(GLuint memoryObject,
GLenum pname,
const GLint* param) {
NoContextHelper("glMemoryObjectParameterivEXT");
}
void NoContextGLApi::glMultiDrawArraysANGLEFn(GLenum mode,
const GLint* firsts,
const GLsizei* counts,
GLsizei drawcount) {
NoContextHelper("glMultiDrawArraysANGLE");
}
void NoContextGLApi::glMultiDrawArraysInstancedANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
GLsizei drawcount) {
NoContextHelper("glMultiDrawArraysInstancedANGLE");
}
void NoContextGLApi::glMultiDrawArraysInstancedBaseInstanceANGLEFn(
GLenum mode,
const GLint* firsts,
const GLsizei* counts,
const GLsizei* instanceCounts,
const GLuint* baseInstances,
GLsizei drawcount) {
NoContextHelper("glMultiDrawArraysInstancedBaseInstanceANGLE");
}
void NoContextGLApi::glMultiDrawElementsANGLEFn(GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
GLsizei drawcount) {
NoContextHelper("glMultiDrawElementsANGLE");
}
void NoContextGLApi::glMultiDrawElementsInstancedANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
GLsizei drawcount) {
NoContextHelper("glMultiDrawElementsInstancedANGLE");
}
void NoContextGLApi::glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLEFn(
GLenum mode,
const GLsizei* counts,
GLenum type,
const GLvoid* const* indices,
const GLsizei* instanceCounts,
const GLint* baseVertices,
const GLuint* baseInstances,
GLsizei drawcount) {
NoContextHelper("glMultiDrawElementsInstancedBaseVertexBaseInstanceANGLE");
}
void NoContextGLApi::glObjectLabelKHRFn(GLenum identifier,
GLuint name,
GLsizei length,
const char* label) {
NoContextHelper("glObjectLabelKHR");
}
void NoContextGLApi::glObjectPtrLabelKHRFn(void* ptr,
GLsizei length,
const char* label) {
NoContextHelper("glObjectPtrLabelKHR");
}
void NoContextGLApi::glPatchParameteriOESFn(GLenum pname, GLint value) {
NoContextHelper("glPatchParameteriOES");
}
void NoContextGLApi::glPauseTransformFeedbackFn(void) {
NoContextHelper("glPauseTransformFeedback");
}
void NoContextGLApi::glPixelLocalStorageBarrierANGLEFn() {
NoContextHelper("glPixelLocalStorageBarrierANGLE");
}
void NoContextGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
NoContextHelper("glPixelStorei");
}
void NoContextGLApi::glPointParameteriFn(GLenum pname, GLint param) {
NoContextHelper("glPointParameteri");
}
void NoContextGLApi::glPolygonModeFn(GLenum face, GLenum mode) {
NoContextHelper("glPolygonMode");
}
void NoContextGLApi::glPolygonModeANGLEFn(GLenum face, GLenum mode) {
NoContextHelper("glPolygonModeANGLE");
}
void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
NoContextHelper("glPolygonOffset");
}
void NoContextGLApi::glPolygonOffsetClampEXTFn(GLfloat factor,
GLfloat units,
GLfloat clamp) {
NoContextHelper("glPolygonOffsetClampEXT");
}
void NoContextGLApi::glPopDebugGroupKHRFn() {
NoContextHelper("glPopDebugGroupKHR");
}
void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
NoContextHelper("glPopGroupMarkerEXT");
}
void NoContextGLApi::glPrimitiveRestartIndexFn(GLuint index) {
NoContextHelper("glPrimitiveRestartIndex");
}
void NoContextGLApi::glProgramBinaryFn(GLuint program,
GLenum binaryFormat,
const GLvoid* binary,
GLsizei length) {
NoContextHelper("glProgramBinary");
}
void NoContextGLApi::glProgramParameteriFn(GLuint program,
GLenum pname,
GLint value) {
NoContextHelper("glProgramParameteri");
}
void NoContextGLApi::glProvokingVertexANGLEFn(GLenum provokeMode) {
NoContextHelper("glProvokingVertexANGLE");
}
void NoContextGLApi::glPushDebugGroupKHRFn(GLenum source,
GLuint id,
GLsizei length,
const char* message) {
NoContextHelper("glPushDebugGroupKHR");
}
void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length,
const char* marker) {
NoContextHelper("glPushGroupMarkerEXT");
}
void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) {
NoContextHelper("glQueryCounter");
}
void NoContextGLApi::glReadBufferFn(GLenum src) {
NoContextHelper("glReadBuffer");
}
void NoContextGLApi::glReadPixelsFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
void* pixels) {
NoContextHelper("glReadPixels");
}
void NoContextGLApi::glReadPixelsRobustANGLEFn(GLint x,
GLint y,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
GLsizei* length,
GLsizei* columns,
GLsizei* rows,
void* pixels) {
NoContextHelper("glReadPixelsRobustANGLE");
}
void NoContextGLApi::glReleaseShaderCompilerFn(void) {
NoContextHelper("glReleaseShaderCompiler");
}
void NoContextGLApi::glReleaseTexturesANGLEFn(GLuint numTextures,
const GLuint* textures,
GLenum* layouts) {
NoContextHelper("glReleaseTexturesANGLE");
}
void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target,
GLenum internalformat,
GLsizei width,
GLsizei height) {
NoContextHelper("glRenderbufferStorageEXT");
}
void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
NoContextHelper("glRenderbufferStorageMultisample");
}
void NoContextGLApi::glRenderbufferStorageMultisampleAdvancedAMDFn(
GLenum target,
GLsizei samples,
GLsizei storageSamples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
NoContextHelper("glRenderbufferStorageMultisampleAdvancedAMD");
}
void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
GLenum target,
GLsizei samples,
GLenum internalformat,
GLsizei width,
GLsizei height) {
NoContextHelper("glRenderbufferStorageMultisampleEXT");
}
void NoContextGLApi::glRequestExtensionANGLEFn(const char* name) {
NoContextHelper("glRequestExtensionANGLE");
}
void NoContextGLApi::glResumeTransformFeedbackFn(void) {
NoContextHelper("glResumeTransformFeedback");
}
void NoContextGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
NoContextHelper("glSampleCoverage");
}
void NoContextGLApi::glSamplerParameterfFn(GLuint sampler,
GLenum pname,
GLfloat param) {
NoContextHelper("glSamplerParameterf");
}
void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler,
GLenum pname,
const GLfloat* params) {
NoContextHelper("glSamplerParameterfv");
}
void NoContextGLApi::glSamplerParameterfvRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLfloat* param) {
NoContextHelper("glSamplerParameterfvRobustANGLE");
}
void NoContextGLApi::glSamplerParameteriFn(GLuint sampler,
GLenum pname,
GLint param) {
NoContextHelper("glSamplerParameteri");
}
void NoContextGLApi::glSamplerParameterivFn(GLuint sampler,
GLenum pname,
const GLint* params) {
NoContextHelper("glSamplerParameteriv");
}
void NoContextGLApi::glSamplerParameterivRobustANGLEFn(GLuint sampler,
GLenum pname,
GLsizei bufSize,
const GLint* param) {
NoContextHelper("glSamplerParameterivRobustANGLE");
}
void NoContextGLApi::glScissorFn(GLint x,
GLint y,
GLsizei width,
GLsizei height) {
NoContextHelper("glScissor");
}
void NoContextGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
NoContextHelper("glSetFenceNV");
}
void NoContextGLApi::glShaderBinaryFn(GLsizei n,
const GLuint* shaders,
GLenum binaryformat,
const void* binary,
GLsizei length) {
NoContextHelper("glShaderBinary");
}
void NoContextGLApi::glShaderSourceFn(GLuint shader,
GLsizei count,
const char* const* str,
const GLint* length) {
NoContextHelper("glShaderSource");
}
void NoContextGLApi::glSignalSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* dstLayouts) {
NoContextHelper("glSignalSemaphoreEXT");
}
void NoContextGLApi::glStartTilingQCOMFn(GLuint x,
GLuint y,
GLuint width,
GLuint height,
GLbitfield preserveMask) {
NoContextHelper("glStartTilingQCOM");
}
void NoContextGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
NoContextHelper("glStencilFunc");
}
void NoContextGLApi::glStencilFuncSeparateFn(GLenum face,
GLenum func,
GLint ref,
GLuint mask) {
NoContextHelper("glStencilFuncSeparate");
}
void NoContextGLApi::glStencilMaskFn(GLuint mask) {
NoContextHelper("glStencilMask");
}
void NoContextGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
NoContextHelper("glStencilMaskSeparate");
}
void NoContextGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
NoContextHelper("glStencilOp");
}
void NoContextGLApi::glStencilOpSeparateFn(GLenum face,
GLenum fail,
GLenum zfail,
GLenum zpass) {
NoContextHelper("glStencilOpSeparate");
}
GLboolean NoContextGLApi::glTestFenceNVFn(GLuint fence) {
NoContextHelper("glTestFenceNV");
return GL_FALSE;
}
void NoContextGLApi::glTexBufferOESFn(GLenum target,
GLenum internalformat,
GLuint buffer) {
NoContextHelper("glTexBufferOES");
}
void NoContextGLApi::glTexBufferRangeOESFn(GLenum target,
GLenum internalformat,
GLuint buffer,
GLintptr offset,
GLsizeiptr size) {
NoContextHelper("glTexBufferRangeOES");
}
void NoContextGLApi::glTexImage2DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
NoContextHelper("glTexImage2D");
}
void NoContextGLApi::glTexImage2DExternalANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type) {
NoContextHelper("glTexImage2DExternalANGLE");
}
void NoContextGLApi::glTexImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
NoContextHelper("glTexImage2DRobustANGLE");
}
void NoContextGLApi::glTexImage3DFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
const void* pixels) {
NoContextHelper("glTexImage3D");
}
void NoContextGLApi::glTexImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint internalformat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
NoContextHelper("glTexImage3DRobustANGLE");
}
void NoContextGLApi::glTexParameterfFn(GLenum target,
GLenum pname,
GLfloat param) {
NoContextHelper("glTexParameterf");
}
void NoContextGLApi::glTexParameterfvFn(GLenum target,
GLenum pname,
const GLfloat* params) {
NoContextHelper("glTexParameterfv");
}
void NoContextGLApi::glTexParameterfvRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLfloat* params) {
NoContextHelper("glTexParameterfvRobustANGLE");
}
void NoContextGLApi::glTexParameteriFn(GLenum target,
GLenum pname,
GLint param) {
NoContextHelper("glTexParameteri");
}
void NoContextGLApi::glTexParameterivFn(GLenum target,
GLenum pname,
const GLint* params) {
NoContextHelper("glTexParameteriv");
}
void NoContextGLApi::glTexParameterivRobustANGLEFn(GLenum target,
GLenum pname,
GLsizei bufSize,
const GLint* params) {
NoContextHelper("glTexParameterivRobustANGLE");
}
void NoContextGLApi::glTexStorage2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height) {
NoContextHelper("glTexStorage2DEXT");
}
void NoContextGLApi::glTexStorage3DFn(GLenum target,
GLsizei levels,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLsizei depth) {
NoContextHelper("glTexStorage3D");
}
void NoContextGLApi::glTexStorageMem2DEXTFn(GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset) {
NoContextHelper("glTexStorageMem2DEXT");
}
void NoContextGLApi::glTexStorageMemFlags2DANGLEFn(
GLenum target,
GLsizei levels,
GLenum internalFormat,
GLsizei width,
GLsizei height,
GLuint memory,
GLuint64 offset,
GLbitfield createFlags,
GLbitfield usageFlags,
const void* imageCreateInfoPNext) {
NoContextHelper("glTexStorageMemFlags2DANGLE");
}
void NoContextGLApi::glTexSubImage2DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
const void* pixels) {
NoContextHelper("glTexSubImage2D");
}
void NoContextGLApi::glTexSubImage2DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLsizei width,
GLsizei height,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
NoContextHelper("glTexSubImage2DRobustANGLE");
}
void NoContextGLApi::glTexSubImage3DFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
const void* pixels) {
NoContextHelper("glTexSubImage3D");
}
void NoContextGLApi::glTexSubImage3DRobustANGLEFn(GLenum target,
GLint level,
GLint xoffset,
GLint yoffset,
GLint zoffset,
GLsizei width,
GLsizei height,
GLsizei depth,
GLenum format,
GLenum type,
GLsizei bufSize,
const void* pixels) {
NoContextHelper("glTexSubImage3DRobustANGLE");
}
void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program,
GLsizei count,
const char* const* varyings,
GLenum bufferMode) {
NoContextHelper("glTransformFeedbackVaryings");
}
void NoContextGLApi::glUniform1fFn(GLint location, GLfloat x) {
NoContextHelper("glUniform1f");
}
void NoContextGLApi::glUniform1fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
NoContextHelper("glUniform1fv");
}
void NoContextGLApi::glUniform1iFn(GLint location, GLint x) {
NoContextHelper("glUniform1i");
}
void NoContextGLApi::glUniform1ivFn(GLint location,
GLsizei count,
const GLint* v) {
NoContextHelper("glUniform1iv");
}
void NoContextGLApi::glUniform1uiFn(GLint location, GLuint v0) {
NoContextHelper("glUniform1ui");
}
void NoContextGLApi::glUniform1uivFn(GLint location,
GLsizei count,
const GLuint* v) {
NoContextHelper("glUniform1uiv");
}
void NoContextGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
NoContextHelper("glUniform2f");
}
void NoContextGLApi::glUniform2fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
NoContextHelper("glUniform2fv");
}
void NoContextGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
NoContextHelper("glUniform2i");
}
void NoContextGLApi::glUniform2ivFn(GLint location,
GLsizei count,
const GLint* v) {
NoContextHelper("glUniform2iv");
}
void NoContextGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
NoContextHelper("glUniform2ui");
}
void NoContextGLApi::glUniform2uivFn(GLint location,
GLsizei count,
const GLuint* v) {
NoContextHelper("glUniform2uiv");
}
void NoContextGLApi::glUniform3fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z) {
NoContextHelper("glUniform3f");
}
void NoContextGLApi::glUniform3fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
NoContextHelper("glUniform3fv");
}
void NoContextGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
NoContextHelper("glUniform3i");
}
void NoContextGLApi::glUniform3ivFn(GLint location,
GLsizei count,
const GLint* v) {
NoContextHelper("glUniform3iv");
}
void NoContextGLApi::glUniform3uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2) {
NoContextHelper("glUniform3ui");
}
void NoContextGLApi::glUniform3uivFn(GLint location,
GLsizei count,
const GLuint* v) {
NoContextHelper("glUniform3uiv");
}
void NoContextGLApi::glUniform4fFn(GLint location,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
NoContextHelper("glUniform4f");
}
void NoContextGLApi::glUniform4fvFn(GLint location,
GLsizei count,
const GLfloat* v) {
NoContextHelper("glUniform4fv");
}
void NoContextGLApi::glUniform4iFn(GLint location,
GLint x,
GLint y,
GLint z,
GLint w) {
NoContextHelper("glUniform4i");
}
void NoContextGLApi::glUniform4ivFn(GLint location,
GLsizei count,
const GLint* v) {
NoContextHelper("glUniform4iv");
}
void NoContextGLApi::glUniform4uiFn(GLint location,
GLuint v0,
GLuint v1,
GLuint v2,
GLuint v3) {
NoContextHelper("glUniform4ui");
}
void NoContextGLApi::glUniform4uivFn(GLint location,
GLsizei count,
const GLuint* v) {
NoContextHelper("glUniform4uiv");
}
void NoContextGLApi::glUniformBlockBindingFn(GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding) {
NoContextHelper("glUniformBlockBinding");
}
void NoContextGLApi::glUniformMatrix2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix2fv");
}
void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix2x3fv");
}
void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix2x4fv");
}
void NoContextGLApi::glUniformMatrix3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix3fv");
}
void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix3x2fv");
}
void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix3x4fv");
}
void NoContextGLApi::glUniformMatrix4fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix4fv");
}
void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix4x2fv");
}
void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location,
GLsizei count,
GLboolean transpose,
const GLfloat* value) {
NoContextHelper("glUniformMatrix4x3fv");
}
GLboolean NoContextGLApi::glUnmapBufferFn(GLenum target) {
NoContextHelper("glUnmapBuffer");
return GL_FALSE;
}
void NoContextGLApi::glUseProgramFn(GLuint program) {
NoContextHelper("glUseProgram");
}
void NoContextGLApi::glValidateProgramFn(GLuint program) {
NoContextHelper("glValidateProgram");
}
void NoContextGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
NoContextHelper("glVertexAttrib1f");
}
void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
NoContextHelper("glVertexAttrib1fv");
}
void NoContextGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
NoContextHelper("glVertexAttrib2f");
}
void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
NoContextHelper("glVertexAttrib2fv");
}
void NoContextGLApi::glVertexAttrib3fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z) {
NoContextHelper("glVertexAttrib3f");
}
void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
NoContextHelper("glVertexAttrib3fv");
}
void NoContextGLApi::glVertexAttrib4fFn(GLuint indx,
GLfloat x,
GLfloat y,
GLfloat z,
GLfloat w) {
NoContextHelper("glVertexAttrib4f");
}
void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
NoContextHelper("glVertexAttrib4fv");
}
void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index,
GLuint divisor) {
NoContextHelper("glVertexAttribDivisorANGLE");
}
void NoContextGLApi::glVertexAttribI4iFn(GLuint indx,
GLint x,
GLint y,
GLint z,
GLint w) {
NoContextHelper("glVertexAttribI4i");
}
void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
NoContextHelper("glVertexAttribI4iv");
}
void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx,
GLuint x,
GLuint y,
GLuint z,
GLuint w) {
NoContextHelper("glVertexAttribI4ui");
}
void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
NoContextHelper("glVertexAttribI4uiv");
}
void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx,
GLint size,
GLenum type,
GLsizei stride,
const void* ptr) {
NoContextHelper("glVertexAttribIPointer");
}
void NoContextGLApi::glVertexAttribPointerFn(GLuint indx,
GLint size,
GLenum type,
GLboolean normalized,
GLsizei stride,
const void* ptr) {
NoContextHelper("glVertexAttribPointer");
}
void NoContextGLApi::glViewportFn(GLint x,
GLint y,
GLsizei width,
GLsizei height) {
NoContextHelper("glViewport");
}
void NoContextGLApi::glWaitSemaphoreEXTFn(GLuint semaphore,
GLuint numBufferBarriers,
const GLuint* buffers,
GLuint numTextureBarriers,
const GLuint* textures,
const GLenum* srcLayouts) {
NoContextHelper("glWaitSemaphoreEXT");
}
void NoContextGLApi::glWaitSyncFn(GLsync sync,
GLbitfield flags,
GLuint64 timeout) {
NoContextHelper("glWaitSync");
}
void NoContextGLApi::glWindowRectanglesEXTFn(GLenum mode,
GLsizei n,
const GLint* box) {
NoContextHelper("glWindowRectanglesEXT");
}
} // namespace gl