Home | History | Annotate | Download | only in gles2
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // This file is auto-generated from
      6 // gpu/command_buffer/build_gles2_cmd_buffer.py
      7 // It's formatted by clang-format using chromium coding style:
      8 //    clang-format -i -style=chromium filename
      9 // DO NOT EDIT!
     10 
     11 VISIT_GL_CALL(ActiveTexture, void, (GLenum texture), (texture))
     12 VISIT_GL_CALL(AttachShader,
     13               void,
     14               (GLuint program, GLuint shader),
     15               (program, shader))
     16 VISIT_GL_CALL(BindAttribLocation,
     17               void,
     18               (GLuint program, GLuint index, const char* name),
     19               (program, index, name))
     20 VISIT_GL_CALL(BindBuffer,
     21               void,
     22               (GLenum target, GLuint buffer),
     23               (target, buffer))
     24 VISIT_GL_CALL(BindFramebuffer,
     25               void,
     26               (GLenum target, GLuint framebuffer),
     27               (target, framebuffer))
     28 VISIT_GL_CALL(BindRenderbuffer,
     29               void,
     30               (GLenum target, GLuint renderbuffer),
     31               (target, renderbuffer))
     32 VISIT_GL_CALL(BindTexture,
     33               void,
     34               (GLenum target, GLuint texture),
     35               (target, texture))
     36 VISIT_GL_CALL(BlendColor,
     37               void,
     38               (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
     39               (red, green, blue, alpha))
     40 VISIT_GL_CALL(BlendEquation, void, (GLenum mode), (mode))
     41 VISIT_GL_CALL(BlendEquationSeparate,
     42               void,
     43               (GLenum modeRGB, GLenum modeAlpha),
     44               (modeRGB, modeAlpha))
     45 VISIT_GL_CALL(BlendFunc,
     46               void,
     47               (GLenum sfactor, GLenum dfactor),
     48               (sfactor, dfactor))
     49 VISIT_GL_CALL(BlendFuncSeparate,
     50               void,
     51               (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha),
     52               (srcRGB, dstRGB, srcAlpha, dstAlpha))
     53 VISIT_GL_CALL(BufferData,
     54               void,
     55               (GLenum target, GLsizeiptr size, const void* data, GLenum usage),
     56               (target, size, data, usage))
     57 VISIT_GL_CALL(
     58     BufferSubData,
     59     void,
     60     (GLenum target, GLintptr offset, GLsizeiptr size, const void* data),
     61     (target, offset, size, data))
     62 VISIT_GL_CALL(CheckFramebufferStatus, GLenum, (GLenum target), (target))
     63 VISIT_GL_CALL(Clear, void, (GLbitfield mask), (mask))
     64 VISIT_GL_CALL(ClearColor,
     65               void,
     66               (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
     67               (red, green, blue, alpha))
     68 VISIT_GL_CALL(ClearDepthf, void, (GLclampf depth), (depth))
     69 VISIT_GL_CALL(ClearStencil, void, (GLint s), (s))
     70 VISIT_GL_CALL(ColorMask,
     71               void,
     72               (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha),
     73               (red, green, blue, alpha))
     74 VISIT_GL_CALL(CompileShader, void, (GLuint shader), (shader))
     75 VISIT_GL_CALL(
     76     CompressedTexImage2D,
     77     void,
     78     (GLenum target,
     79      GLint level,
     80      GLenum internalformat,
     81      GLsizei width,
     82      GLsizei height,
     83      GLint border,
     84      GLsizei imageSize,
     85      const void* data),
     86     (target, level, internalformat, width, height, border, imageSize, data))
     87 VISIT_GL_CALL(
     88     CompressedTexSubImage2D,
     89     void,
     90     (GLenum target,
     91      GLint level,
     92      GLint xoffset,
     93      GLint yoffset,
     94      GLsizei width,
     95      GLsizei height,
     96      GLenum format,
     97      GLsizei imageSize,
     98      const void* data),
     99     (target, level, xoffset, yoffset, width, height, format, imageSize, data))
    100 VISIT_GL_CALL(CopyTexImage2D,
    101               void,
    102               (GLenum target,
    103                GLint level,
    104                GLenum internalformat,
    105                GLint x,
    106                GLint y,
    107                GLsizei width,
    108                GLsizei height,
    109                GLint border),
    110               (target, level, internalformat, x, y, width, height, border))
    111 VISIT_GL_CALL(CopyTexSubImage2D,
    112               void,
    113               (GLenum target,
    114                GLint level,
    115                GLint xoffset,
    116                GLint yoffset,
    117                GLint x,
    118                GLint y,
    119                GLsizei width,
    120                GLsizei height),
    121               (target, level, xoffset, yoffset, x, y, width, height))
    122 VISIT_GL_CALL(CreateProgram, GLuint, (), ())
    123 VISIT_GL_CALL(CreateShader, GLuint, (GLenum type), (type))
    124 VISIT_GL_CALL(CullFace, void, (GLenum mode), (mode))
    125 VISIT_GL_CALL(DeleteBuffers,
    126               void,
    127               (GLsizei n, const GLuint* buffers),
    128               (n, buffers))
    129 VISIT_GL_CALL(DeleteFramebuffers,
    130               void,
    131               (GLsizei n, const GLuint* framebuffers),
    132               (n, framebuffers))
    133 VISIT_GL_CALL(DeleteProgram, void, (GLuint program), (program))
    134 VISIT_GL_CALL(DeleteRenderbuffers,
    135               void,
    136               (GLsizei n, const GLuint* renderbuffers),
    137               (n, renderbuffers))
    138 VISIT_GL_CALL(DeleteShader, void, (GLuint shader), (shader))
    139 VISIT_GL_CALL(DeleteTextures,
    140               void,
    141               (GLsizei n, const GLuint* textures),
    142               (n, textures))
    143 VISIT_GL_CALL(DepthFunc, void, (GLenum func), (func))
    144 VISIT_GL_CALL(DepthMask, void, (GLboolean flag), (flag))
    145 VISIT_GL_CALL(DepthRangef, void, (GLclampf zNear, GLclampf zFar), (zNear, zFar))
    146 VISIT_GL_CALL(DetachShader,
    147               void,
    148               (GLuint program, GLuint shader),
    149               (program, shader))
    150 VISIT_GL_CALL(Disable, void, (GLenum cap), (cap))
    151 VISIT_GL_CALL(DisableVertexAttribArray, void, (GLuint index), (index))
    152 VISIT_GL_CALL(DrawArrays,
    153               void,
    154               (GLenum mode, GLint first, GLsizei count),
    155               (mode, first, count))
    156 VISIT_GL_CALL(DrawElements,
    157               void,
    158               (GLenum mode, GLsizei count, GLenum type, const void* indices),
    159               (mode, count, type, indices))
    160 VISIT_GL_CALL(Enable, void, (GLenum cap), (cap))
    161 VISIT_GL_CALL(EnableVertexAttribArray, void, (GLuint index), (index))
    162 VISIT_GL_CALL(Finish, void, (), ())
    163 VISIT_GL_CALL(Flush, void, (), ())
    164 VISIT_GL_CALL(FramebufferRenderbuffer,
    165               void,
    166               (GLenum target,
    167                GLenum attachment,
    168                GLenum renderbuffertarget,
    169                GLuint renderbuffer),
    170               (target, attachment, renderbuffertarget, renderbuffer))
    171 VISIT_GL_CALL(FramebufferTexture2D,
    172               void,
    173               (GLenum target,
    174                GLenum attachment,
    175                GLenum textarget,
    176                GLuint texture,
    177                GLint level),
    178               (target, attachment, textarget, texture, level))
    179 VISIT_GL_CALL(FrontFace, void, (GLenum mode), (mode))
    180 VISIT_GL_CALL(GenBuffers, void, (GLsizei n, GLuint * buffers), (n, buffers))
    181 VISIT_GL_CALL(GenerateMipmap, void, (GLenum target), (target))
    182 VISIT_GL_CALL(GenFramebuffers,
    183               void,
    184               (GLsizei n, GLuint * framebuffers),
    185               (n, framebuffers))
    186 VISIT_GL_CALL(GenRenderbuffers,
    187               void,
    188               (GLsizei n, GLuint * renderbuffers),
    189               (n, renderbuffers))
    190 VISIT_GL_CALL(GenTextures, void, (GLsizei n, GLuint * textures), (n, textures))
    191 VISIT_GL_CALL(GetActiveAttrib,
    192               void,
    193               (GLuint program,
    194                GLuint index,
    195                GLsizei bufsize,
    196                GLsizei * length,
    197                GLint * size,
    198                GLenum * type,
    199                char* name),
    200               (program, index, bufsize, length, size, type, name))
    201 VISIT_GL_CALL(GetActiveUniform,
    202               void,
    203               (GLuint program,
    204                GLuint index,
    205                GLsizei bufsize,
    206                GLsizei * length,
    207                GLint * size,
    208                GLenum * type,
    209                char* name),
    210               (program, index, bufsize, length, size, type, name))
    211 VISIT_GL_CALL(
    212     GetAttachedShaders,
    213     void,
    214     (GLuint program, GLsizei maxcount, GLsizei * count, GLuint * shaders),
    215     (program, maxcount, count, shaders))
    216 VISIT_GL_CALL(GetAttribLocation,
    217               GLint,
    218               (GLuint program, const char* name),
    219               (program, name))
    220 VISIT_GL_CALL(GetBooleanv,
    221               void,
    222               (GLenum pname, GLboolean * params),
    223               (pname, params))
    224 VISIT_GL_CALL(GetBufferParameteriv,
    225               void,
    226               (GLenum target, GLenum pname, GLint * params),
    227               (target, pname, params))
    228 VISIT_GL_CALL(GetError, GLenum, (), ())
    229 VISIT_GL_CALL(GetFloatv,
    230               void,
    231               (GLenum pname, GLfloat * params),
    232               (pname, params))
    233 VISIT_GL_CALL(GetFramebufferAttachmentParameteriv,
    234               void,
    235               (GLenum target, GLenum attachment, GLenum pname, GLint * params),
    236               (target, attachment, pname, params))
    237 VISIT_GL_CALL(GetIntegerv,
    238               void,
    239               (GLenum pname, GLint * params),
    240               (pname, params))
    241 VISIT_GL_CALL(GetProgramiv,
    242               void,
    243               (GLuint program, GLenum pname, GLint * params),
    244               (program, pname, params))
    245 VISIT_GL_CALL(
    246     GetProgramInfoLog,
    247     void,
    248     (GLuint program, GLsizei bufsize, GLsizei * length, char* infolog),
    249     (program, bufsize, length, infolog))
    250 VISIT_GL_CALL(GetRenderbufferParameteriv,
    251               void,
    252               (GLenum target, GLenum pname, GLint * params),
    253               (target, pname, params))
    254 VISIT_GL_CALL(GetShaderiv,
    255               void,
    256               (GLuint shader, GLenum pname, GLint * params),
    257               (shader, pname, params))
    258 VISIT_GL_CALL(GetShaderInfoLog,
    259               void,
    260               (GLuint shader, GLsizei bufsize, GLsizei * length, char* infolog),
    261               (shader, bufsize, length, infolog))
    262 VISIT_GL_CALL(
    263     GetShaderPrecisionFormat,
    264     void,
    265     (GLenum shadertype, GLenum precisiontype, GLint * range, GLint * precision),
    266     (shadertype, precisiontype, range, precision))
    267 VISIT_GL_CALL(GetShaderSource,
    268               void,
    269               (GLuint shader, GLsizei bufsize, GLsizei * length, char* source),
    270               (shader, bufsize, length, source))
    271 VISIT_GL_CALL(GetString, const GLubyte*, (GLenum name), (name))
    272 VISIT_GL_CALL(GetTexParameterfv,
    273               void,
    274               (GLenum target, GLenum pname, GLfloat * params),
    275               (target, pname, params))
    276 VISIT_GL_CALL(GetTexParameteriv,
    277               void,
    278               (GLenum target, GLenum pname, GLint * params),
    279               (target, pname, params))
    280 VISIT_GL_CALL(GetUniformfv,
    281               void,
    282               (GLuint program, GLint location, GLfloat * params),
    283               (program, location, params))
    284 VISIT_GL_CALL(GetUniformiv,
    285               void,
    286               (GLuint program, GLint location, GLint * params),
    287               (program, location, params))
    288 VISIT_GL_CALL(GetUniformLocation,
    289               GLint,
    290               (GLuint program, const char* name),
    291               (program, name))
    292 VISIT_GL_CALL(GetVertexAttribfv,
    293               void,
    294               (GLuint index, GLenum pname, GLfloat * params),
    295               (index, pname, params))
    296 VISIT_GL_CALL(GetVertexAttribiv,
    297               void,
    298               (GLuint index, GLenum pname, GLint * params),
    299               (index, pname, params))
    300 VISIT_GL_CALL(GetVertexAttribPointerv,
    301               void,
    302               (GLuint index, GLenum pname, void** pointer),
    303               (index, pname, pointer))
    304 VISIT_GL_CALL(Hint, void, (GLenum target, GLenum mode), (target, mode))
    305 VISIT_GL_CALL(IsBuffer, GLboolean, (GLuint buffer), (buffer))
    306 VISIT_GL_CALL(IsEnabled, GLboolean, (GLenum cap), (cap))
    307 VISIT_GL_CALL(IsFramebuffer, GLboolean, (GLuint framebuffer), (framebuffer))
    308 VISIT_GL_CALL(IsProgram, GLboolean, (GLuint program), (program))
    309 VISIT_GL_CALL(IsRenderbuffer, GLboolean, (GLuint renderbuffer), (renderbuffer))
    310 VISIT_GL_CALL(IsShader, GLboolean, (GLuint shader), (shader))
    311 VISIT_GL_CALL(IsTexture, GLboolean, (GLuint texture), (texture))
    312 VISIT_GL_CALL(LineWidth, void, (GLfloat width), (width))
    313 VISIT_GL_CALL(LinkProgram, void, (GLuint program), (program))
    314 VISIT_GL_CALL(PixelStorei, void, (GLenum pname, GLint param), (pname, param))
    315 VISIT_GL_CALL(PolygonOffset,
    316               void,
    317               (GLfloat factor, GLfloat units),
    318               (factor, units))
    319 VISIT_GL_CALL(ReadPixels,
    320               void,
    321               (GLint x,
    322                GLint y,
    323                GLsizei width,
    324                GLsizei height,
    325                GLenum format,
    326                GLenum type,
    327                void* pixels),
    328               (x, y, width, height, format, type, pixels))
    329 VISIT_GL_CALL(ReleaseShaderCompiler, void, (), ())
    330 VISIT_GL_CALL(
    331     RenderbufferStorage,
    332     void,
    333     (GLenum target, GLenum internalformat, GLsizei width, GLsizei height),
    334     (target, internalformat, width, height))
    335 VISIT_GL_CALL(SampleCoverage,
    336               void,
    337               (GLclampf value, GLboolean invert),
    338               (value, invert))
    339 VISIT_GL_CALL(Scissor,
    340               void,
    341               (GLint x, GLint y, GLsizei width, GLsizei height),
    342               (x, y, width, height))
    343 VISIT_GL_CALL(ShaderBinary,
    344               void,
    345               (GLsizei n,
    346                const GLuint* shaders,
    347                GLenum binaryformat,
    348                const void* binary,
    349                GLsizei length),
    350               (n, shaders, binaryformat, binary, length))
    351 VISIT_GL_CALL(ShaderSource,
    352               void,
    353               (GLuint shader,
    354                GLsizei count,
    355                const GLchar* const* str,
    356                const GLint* length),
    357               (shader, count, str, length))
    358 VISIT_GL_CALL(StencilFunc,
    359               void,
    360               (GLenum func, GLint ref, GLuint mask),
    361               (func, ref, mask))
    362 VISIT_GL_CALL(StencilFuncSeparate,
    363               void,
    364               (GLenum face, GLenum func, GLint ref, GLuint mask),
    365               (face, func, ref, mask))
    366 VISIT_GL_CALL(StencilMask, void, (GLuint mask), (mask))
    367 VISIT_GL_CALL(StencilMaskSeparate,
    368               void,
    369               (GLenum face, GLuint mask),
    370               (face, mask))
    371 VISIT_GL_CALL(StencilOp,
    372               void,
    373               (GLenum fail, GLenum zfail, GLenum zpass),
    374               (fail, zfail, zpass))
    375 VISIT_GL_CALL(StencilOpSeparate,
    376               void,
    377               (GLenum face, GLenum fail, GLenum zfail, GLenum zpass),
    378               (face, fail, zfail, zpass))
    379 VISIT_GL_CALL(TexImage2D,
    380               void,
    381               (GLenum target,
    382                GLint level,
    383                GLint internalformat,
    384                GLsizei width,
    385                GLsizei height,
    386                GLint border,
    387                GLenum format,
    388                GLenum type,
    389                const void* pixels),
    390               (target,
    391                level,
    392                internalformat,
    393                width,
    394                height,
    395                border,
    396                format,
    397                type,
    398                pixels))
    399 VISIT_GL_CALL(TexParameterf,
    400               void,
    401               (GLenum target, GLenum pname, GLfloat param),
    402               (target, pname, param))
    403 VISIT_GL_CALL(TexParameterfv,
    404               void,
    405               (GLenum target, GLenum pname, const GLfloat* params),
    406               (target, pname, params))
    407 VISIT_GL_CALL(TexParameteri,
    408               void,
    409               (GLenum target, GLenum pname, GLint param),
    410               (target, pname, param))
    411 VISIT_GL_CALL(TexParameteriv,
    412               void,
    413               (GLenum target, GLenum pname, const GLint* params),
    414               (target, pname, params))
    415 VISIT_GL_CALL(
    416     TexSubImage2D,
    417     void,
    418     (GLenum target,
    419      GLint level,
    420      GLint xoffset,
    421      GLint yoffset,
    422      GLsizei width,
    423      GLsizei height,
    424      GLenum format,
    425      GLenum type,
    426      const void* pixels),
    427     (target, level, xoffset, yoffset, width, height, format, type, pixels))
    428 VISIT_GL_CALL(Uniform1f, void, (GLint location, GLfloat x), (location, x))
    429 VISIT_GL_CALL(Uniform1fv,
    430               void,
    431               (GLint location, GLsizei count, const GLfloat* v),
    432               (location, count, v))
    433 VISIT_GL_CALL(Uniform1i, void, (GLint location, GLint x), (location, x))
    434 VISIT_GL_CALL(Uniform1iv,
    435               void,
    436               (GLint location, GLsizei count, const GLint* v),
    437               (location, count, v))
    438 VISIT_GL_CALL(Uniform2f,
    439               void,
    440               (GLint location, GLfloat x, GLfloat y),
    441               (location, x, y))
    442 VISIT_GL_CALL(Uniform2fv,
    443               void,
    444               (GLint location, GLsizei count, const GLfloat* v),
    445               (location, count, v))
    446 VISIT_GL_CALL(Uniform2i,
    447               void,
    448               (GLint location, GLint x, GLint y),
    449               (location, x, y))
    450 VISIT_GL_CALL(Uniform2iv,
    451               void,
    452               (GLint location, GLsizei count, const GLint* v),
    453               (location, count, v))
    454 VISIT_GL_CALL(Uniform3f,
    455               void,
    456               (GLint location, GLfloat x, GLfloat y, GLfloat z),
    457               (location, x, y, z))
    458 VISIT_GL_CALL(Uniform3fv,
    459               void,
    460               (GLint location, GLsizei count, const GLfloat* v),
    461               (location, count, v))
    462 VISIT_GL_CALL(Uniform3i,
    463               void,
    464               (GLint location, GLint x, GLint y, GLint z),
    465               (location, x, y, z))
    466 VISIT_GL_CALL(Uniform3iv,
    467               void,
    468               (GLint location, GLsizei count, const GLint* v),
    469               (location, count, v))
    470 VISIT_GL_CALL(Uniform4f,
    471               void,
    472               (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
    473               (location, x, y, z, w))
    474 VISIT_GL_CALL(Uniform4fv,
    475               void,
    476               (GLint location, GLsizei count, const GLfloat* v),
    477               (location, count, v))
    478 VISIT_GL_CALL(Uniform4i,
    479               void,
    480               (GLint location, GLint x, GLint y, GLint z, GLint w),
    481               (location, x, y, z, w))
    482 VISIT_GL_CALL(Uniform4iv,
    483               void,
    484               (GLint location, GLsizei count, const GLint* v),
    485               (location, count, v))
    486 VISIT_GL_CALL(
    487     UniformMatrix2fv,
    488     void,
    489     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
    490     (location, count, transpose, value))
    491 VISIT_GL_CALL(
    492     UniformMatrix3fv,
    493     void,
    494     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
    495     (location, count, transpose, value))
    496 VISIT_GL_CALL(
    497     UniformMatrix4fv,
    498     void,
    499     (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
    500     (location, count, transpose, value))
    501 VISIT_GL_CALL(UseProgram, void, (GLuint program), (program))
    502 VISIT_GL_CALL(ValidateProgram, void, (GLuint program), (program))
    503 VISIT_GL_CALL(VertexAttrib1f, void, (GLuint indx, GLfloat x), (indx, x))
    504 VISIT_GL_CALL(VertexAttrib1fv,
    505               void,
    506               (GLuint indx, const GLfloat* values),
    507               (indx, values))
    508 VISIT_GL_CALL(VertexAttrib2f,
    509               void,
    510               (GLuint indx, GLfloat x, GLfloat y),
    511               (indx, x, y))
    512 VISIT_GL_CALL(VertexAttrib2fv,
    513               void,
    514               (GLuint indx, const GLfloat* values),
    515               (indx, values))
    516 VISIT_GL_CALL(VertexAttrib3f,
    517               void,
    518               (GLuint indx, GLfloat x, GLfloat y, GLfloat z),
    519               (indx, x, y, z))
    520 VISIT_GL_CALL(VertexAttrib3fv,
    521               void,
    522               (GLuint indx, const GLfloat* values),
    523               (indx, values))
    524 VISIT_GL_CALL(VertexAttrib4f,
    525               void,
    526               (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
    527               (indx, x, y, z, w))
    528 VISIT_GL_CALL(VertexAttrib4fv,
    529               void,
    530               (GLuint indx, const GLfloat* values),
    531               (indx, values))
    532 VISIT_GL_CALL(VertexAttribPointer,
    533               void,
    534               (GLuint indx,
    535                GLint size,
    536                GLenum type,
    537                GLboolean normalized,
    538                GLsizei stride,
    539                const void* ptr),
    540               (indx, size, type, normalized, stride, ptr))
    541 VISIT_GL_CALL(Viewport,
    542               void,
    543               (GLint x, GLint y, GLsizei width, GLsizei height),
    544               (x, y, width, height))
    545