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