1 // Copyright (c) 2012 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 // DO NOT EDIT! 8 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_ 11 12 #define GLES2_COMMAND_LIST(OP) \ 13 OP(ActiveTexture) /* 256 */ \ 14 OP(AttachShader) /* 257 */ \ 15 OP(BindAttribLocation) /* 258 */ \ 16 OP(BindAttribLocationBucket) /* 259 */ \ 17 OP(BindBuffer) /* 260 */ \ 18 OP(BindFramebuffer) /* 261 */ \ 19 OP(BindRenderbuffer) /* 262 */ \ 20 OP(BindTexture) /* 263 */ \ 21 OP(BlendColor) /* 264 */ \ 22 OP(BlendEquation) /* 265 */ \ 23 OP(BlendEquationSeparate) /* 266 */ \ 24 OP(BlendFunc) /* 267 */ \ 25 OP(BlendFuncSeparate) /* 268 */ \ 26 OP(BufferData) /* 269 */ \ 27 OP(BufferSubData) /* 270 */ \ 28 OP(CheckFramebufferStatus) /* 271 */ \ 29 OP(Clear) /* 272 */ \ 30 OP(ClearColor) /* 273 */ \ 31 OP(ClearDepthf) /* 274 */ \ 32 OP(ClearStencil) /* 275 */ \ 33 OP(ColorMask) /* 276 */ \ 34 OP(CompileShader) /* 277 */ \ 35 OP(CompressedTexImage2D) /* 278 */ \ 36 OP(CompressedTexImage2DBucket) /* 279 */ \ 37 OP(CompressedTexSubImage2D) /* 280 */ \ 38 OP(CompressedTexSubImage2DBucket) /* 281 */ \ 39 OP(CopyTexImage2D) /* 282 */ \ 40 OP(CopyTexSubImage2D) /* 283 */ \ 41 OP(CreateProgram) /* 284 */ \ 42 OP(CreateShader) /* 285 */ \ 43 OP(CullFace) /* 286 */ \ 44 OP(DeleteBuffers) /* 287 */ \ 45 OP(DeleteBuffersImmediate) /* 288 */ \ 46 OP(DeleteFramebuffers) /* 289 */ \ 47 OP(DeleteFramebuffersImmediate) /* 290 */ \ 48 OP(DeleteProgram) /* 291 */ \ 49 OP(DeleteRenderbuffers) /* 292 */ \ 50 OP(DeleteRenderbuffersImmediate) /* 293 */ \ 51 OP(DeleteShader) /* 294 */ \ 52 OP(DeleteTextures) /* 295 */ \ 53 OP(DeleteTexturesImmediate) /* 296 */ \ 54 OP(DepthFunc) /* 297 */ \ 55 OP(DepthMask) /* 298 */ \ 56 OP(DepthRangef) /* 299 */ \ 57 OP(DetachShader) /* 300 */ \ 58 OP(Disable) /* 301 */ \ 59 OP(DisableVertexAttribArray) /* 302 */ \ 60 OP(DrawArrays) /* 303 */ \ 61 OP(DrawElements) /* 304 */ \ 62 OP(Enable) /* 305 */ \ 63 OP(EnableVertexAttribArray) /* 306 */ \ 64 OP(Finish) /* 307 */ \ 65 OP(Flush) /* 308 */ \ 66 OP(FramebufferRenderbuffer) /* 309 */ \ 67 OP(FramebufferTexture2D) /* 310 */ \ 68 OP(FrontFace) /* 311 */ \ 69 OP(GenBuffers) /* 312 */ \ 70 OP(GenBuffersImmediate) /* 313 */ \ 71 OP(GenerateMipmap) /* 314 */ \ 72 OP(GenFramebuffers) /* 315 */ \ 73 OP(GenFramebuffersImmediate) /* 316 */ \ 74 OP(GenRenderbuffers) /* 317 */ \ 75 OP(GenRenderbuffersImmediate) /* 318 */ \ 76 OP(GenTextures) /* 319 */ \ 77 OP(GenTexturesImmediate) /* 320 */ \ 78 OP(GetActiveAttrib) /* 321 */ \ 79 OP(GetActiveUniform) /* 322 */ \ 80 OP(GetAttachedShaders) /* 323 */ \ 81 OP(GetAttribLocation) /* 324 */ \ 82 OP(GetAttribLocationBucket) /* 325 */ \ 83 OP(GetBooleanv) /* 326 */ \ 84 OP(GetBufferParameteriv) /* 327 */ \ 85 OP(GetError) /* 328 */ \ 86 OP(GetFloatv) /* 329 */ \ 87 OP(GetFramebufferAttachmentParameteriv) /* 330 */ \ 88 OP(GetIntegerv) /* 331 */ \ 89 OP(GetProgramiv) /* 332 */ \ 90 OP(GetProgramInfoLog) /* 333 */ \ 91 OP(GetRenderbufferParameteriv) /* 334 */ \ 92 OP(GetShaderiv) /* 335 */ \ 93 OP(GetShaderInfoLog) /* 336 */ \ 94 OP(GetShaderPrecisionFormat) /* 337 */ \ 95 OP(GetShaderSource) /* 338 */ \ 96 OP(GetString) /* 339 */ \ 97 OP(GetTexParameterfv) /* 340 */ \ 98 OP(GetTexParameteriv) /* 341 */ \ 99 OP(GetUniformfv) /* 342 */ \ 100 OP(GetUniformiv) /* 343 */ \ 101 OP(GetUniformLocation) /* 344 */ \ 102 OP(GetUniformLocationBucket) /* 345 */ \ 103 OP(GetVertexAttribfv) /* 346 */ \ 104 OP(GetVertexAttribiv) /* 347 */ \ 105 OP(GetVertexAttribPointerv) /* 348 */ \ 106 OP(Hint) /* 349 */ \ 107 OP(IsBuffer) /* 350 */ \ 108 OP(IsEnabled) /* 351 */ \ 109 OP(IsFramebuffer) /* 352 */ \ 110 OP(IsProgram) /* 353 */ \ 111 OP(IsRenderbuffer) /* 354 */ \ 112 OP(IsShader) /* 355 */ \ 113 OP(IsTexture) /* 356 */ \ 114 OP(LineWidth) /* 357 */ \ 115 OP(LinkProgram) /* 358 */ \ 116 OP(PixelStorei) /* 359 */ \ 117 OP(PolygonOffset) /* 360 */ \ 118 OP(ReadPixels) /* 361 */ \ 119 OP(ReleaseShaderCompiler) /* 362 */ \ 120 OP(RenderbufferStorage) /* 363 */ \ 121 OP(SampleCoverage) /* 364 */ \ 122 OP(Scissor) /* 365 */ \ 123 OP(ShaderBinary) /* 366 */ \ 124 OP(ShaderSource) /* 367 */ \ 125 OP(ShaderSourceBucket) /* 368 */ \ 126 OP(StencilFunc) /* 369 */ \ 127 OP(StencilFuncSeparate) /* 370 */ \ 128 OP(StencilMask) /* 371 */ \ 129 OP(StencilMaskSeparate) /* 372 */ \ 130 OP(StencilOp) /* 373 */ \ 131 OP(StencilOpSeparate) /* 374 */ \ 132 OP(TexImage2D) /* 375 */ \ 133 OP(TexParameterf) /* 376 */ \ 134 OP(TexParameterfv) /* 377 */ \ 135 OP(TexParameterfvImmediate) /* 378 */ \ 136 OP(TexParameteri) /* 379 */ \ 137 OP(TexParameteriv) /* 380 */ \ 138 OP(TexParameterivImmediate) /* 381 */ \ 139 OP(TexSubImage2D) /* 382 */ \ 140 OP(Uniform1f) /* 383 */ \ 141 OP(Uniform1fv) /* 384 */ \ 142 OP(Uniform1fvImmediate) /* 385 */ \ 143 OP(Uniform1i) /* 386 */ \ 144 OP(Uniform1iv) /* 387 */ \ 145 OP(Uniform1ivImmediate) /* 388 */ \ 146 OP(Uniform2f) /* 389 */ \ 147 OP(Uniform2fv) /* 390 */ \ 148 OP(Uniform2fvImmediate) /* 391 */ \ 149 OP(Uniform2i) /* 392 */ \ 150 OP(Uniform2iv) /* 393 */ \ 151 OP(Uniform2ivImmediate) /* 394 */ \ 152 OP(Uniform3f) /* 395 */ \ 153 OP(Uniform3fv) /* 396 */ \ 154 OP(Uniform3fvImmediate) /* 397 */ \ 155 OP(Uniform3i) /* 398 */ \ 156 OP(Uniform3iv) /* 399 */ \ 157 OP(Uniform3ivImmediate) /* 400 */ \ 158 OP(Uniform4f) /* 401 */ \ 159 OP(Uniform4fv) /* 402 */ \ 160 OP(Uniform4fvImmediate) /* 403 */ \ 161 OP(Uniform4i) /* 404 */ \ 162 OP(Uniform4iv) /* 405 */ \ 163 OP(Uniform4ivImmediate) /* 406 */ \ 164 OP(UniformMatrix2fv) /* 407 */ \ 165 OP(UniformMatrix2fvImmediate) /* 408 */ \ 166 OP(UniformMatrix3fv) /* 409 */ \ 167 OP(UniformMatrix3fvImmediate) /* 410 */ \ 168 OP(UniformMatrix4fv) /* 411 */ \ 169 OP(UniformMatrix4fvImmediate) /* 412 */ \ 170 OP(UseProgram) /* 413 */ \ 171 OP(ValidateProgram) /* 414 */ \ 172 OP(VertexAttrib1f) /* 415 */ \ 173 OP(VertexAttrib1fv) /* 416 */ \ 174 OP(VertexAttrib1fvImmediate) /* 417 */ \ 175 OP(VertexAttrib2f) /* 418 */ \ 176 OP(VertexAttrib2fv) /* 419 */ \ 177 OP(VertexAttrib2fvImmediate) /* 420 */ \ 178 OP(VertexAttrib3f) /* 421 */ \ 179 OP(VertexAttrib3fv) /* 422 */ \ 180 OP(VertexAttrib3fvImmediate) /* 423 */ \ 181 OP(VertexAttrib4f) /* 424 */ \ 182 OP(VertexAttrib4fv) /* 425 */ \ 183 OP(VertexAttrib4fvImmediate) /* 426 */ \ 184 OP(VertexAttribPointer) /* 427 */ \ 185 OP(Viewport) /* 428 */ \ 186 OP(BlitFramebufferCHROMIUM) /* 429 */ \ 187 OP(RenderbufferStorageMultisampleCHROMIUM) /* 430 */ \ 188 OP(RenderbufferStorageMultisampleEXT) /* 431 */ \ 189 OP(FramebufferTexture2DMultisampleEXT) /* 432 */ \ 190 OP(TexStorage2DEXT) /* 433 */ \ 191 OP(GenQueriesEXT) /* 434 */ \ 192 OP(GenQueriesEXTImmediate) /* 435 */ \ 193 OP(DeleteQueriesEXT) /* 436 */ \ 194 OP(DeleteQueriesEXTImmediate) /* 437 */ \ 195 OP(BeginQueryEXT) /* 438 */ \ 196 OP(EndQueryEXT) /* 439 */ \ 197 OP(InsertEventMarkerEXT) /* 440 */ \ 198 OP(PushGroupMarkerEXT) /* 441 */ \ 199 OP(PopGroupMarkerEXT) /* 442 */ \ 200 OP(GenVertexArraysOES) /* 443 */ \ 201 OP(GenVertexArraysOESImmediate) /* 444 */ \ 202 OP(DeleteVertexArraysOES) /* 445 */ \ 203 OP(DeleteVertexArraysOESImmediate) /* 446 */ \ 204 OP(IsVertexArrayOES) /* 447 */ \ 205 OP(BindVertexArrayOES) /* 448 */ \ 206 OP(SwapBuffers) /* 449 */ \ 207 OP(GetMaxValueInBufferCHROMIUM) /* 450 */ \ 208 OP(GenSharedIdsCHROMIUM) /* 451 */ \ 209 OP(DeleteSharedIdsCHROMIUM) /* 452 */ \ 210 OP(RegisterSharedIdsCHROMIUM) /* 453 */ \ 211 OP(EnableFeatureCHROMIUM) /* 454 */ \ 212 OP(ResizeCHROMIUM) /* 455 */ \ 213 OP(GetRequestableExtensionsCHROMIUM) /* 456 */ \ 214 OP(RequestExtensionCHROMIUM) /* 457 */ \ 215 OP(GetMultipleIntegervCHROMIUM) /* 458 */ \ 216 OP(GetProgramInfoCHROMIUM) /* 459 */ \ 217 OP(CreateStreamTextureCHROMIUM) /* 460 */ \ 218 OP(DestroyStreamTextureCHROMIUM) /* 461 */ \ 219 OP(GetTranslatedShaderSourceANGLE) /* 462 */ \ 220 OP(PostSubBufferCHROMIUM) /* 463 */ \ 221 OP(TexImageIOSurface2DCHROMIUM) /* 464 */ \ 222 OP(CopyTextureCHROMIUM) /* 465 */ \ 223 OP(DrawArraysInstancedANGLE) /* 466 */ \ 224 OP(DrawElementsInstancedANGLE) /* 467 */ \ 225 OP(VertexAttribDivisorANGLE) /* 468 */ \ 226 OP(GenMailboxCHROMIUM) /* 469 */ \ 227 OP(ProduceTextureCHROMIUM) /* 470 */ \ 228 OP(ProduceTextureCHROMIUMImmediate) /* 471 */ \ 229 OP(ConsumeTextureCHROMIUM) /* 472 */ \ 230 OP(ConsumeTextureCHROMIUMImmediate) /* 473 */ \ 231 OP(BindUniformLocationCHROMIUM) /* 474 */ \ 232 OP(BindUniformLocationCHROMIUMBucket) /* 475 */ \ 233 OP(BindTexImage2DCHROMIUM) /* 476 */ \ 234 OP(ReleaseTexImage2DCHROMIUM) /* 477 */ \ 235 OP(TraceBeginCHROMIUM) /* 478 */ \ 236 OP(TraceEndCHROMIUM) /* 479 */ \ 237 OP(AsyncTexSubImage2DCHROMIUM) /* 480 */ \ 238 OP(AsyncTexImage2DCHROMIUM) /* 481 */ \ 239 OP(WaitAsyncTexImage2DCHROMIUM) /* 482 */ \ 240 OP(DiscardFramebufferEXT) /* 483 */ \ 241 OP(DiscardFramebufferEXTImmediate) /* 484 */ \ 242 OP(LoseContextCHROMIUM) /* 485 */ \ 243 OP(InsertSyncPointCHROMIUM) /* 486 */ \ 244 OP(WaitSyncPointCHROMIUM) /* 487 */ \ 245 OP(DrawBuffersEXT) /* 488 */ \ 246 OP(DrawBuffersEXTImmediate) /* 489 */ \ 247 OP(DiscardBackbufferCHROMIUM) /* 490 */ \ 248 249 enum CommandId { 250 kStartPoint = cmd::kLastCommonId, // All GLES2 commands start after this. 251 #define GLES2_CMD_OP(name) k ## name, 252 GLES2_COMMAND_LIST(GLES2_CMD_OP) 253 #undef GLES2_CMD_OP 254 kNumCommands 255 }; 256 257 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_ 258 259