We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / gpu / command_buffer / common / gles2_cmd_ids_autogen.h
blobea62be1bca89b0f02b700d3c28777190aa748751
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.
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!
11 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_
14 #define GLES2_COMMAND_LIST(OP) \
15 OP(ActiveTexture) /* 256 */ \
16 OP(AttachShader) /* 257 */ \
17 OP(BindAttribLocationBucket) /* 258 */ \
18 OP(BindBuffer) /* 259 */ \
19 OP(BindBufferBase) /* 260 */ \
20 OP(BindBufferRange) /* 261 */ \
21 OP(BindFramebuffer) /* 262 */ \
22 OP(BindRenderbuffer) /* 263 */ \
23 OP(BindSampler) /* 264 */ \
24 OP(BindTexture) /* 265 */ \
25 OP(BindTransformFeedback) /* 266 */ \
26 OP(BlendColor) /* 267 */ \
27 OP(BlendEquation) /* 268 */ \
28 OP(BlendEquationSeparate) /* 269 */ \
29 OP(BlendFunc) /* 270 */ \
30 OP(BlendFuncSeparate) /* 271 */ \
31 OP(BufferData) /* 272 */ \
32 OP(BufferSubData) /* 273 */ \
33 OP(CheckFramebufferStatus) /* 274 */ \
34 OP(Clear) /* 275 */ \
35 OP(ClearBufferfi) /* 276 */ \
36 OP(ClearBufferfvImmediate) /* 277 */ \
37 OP(ClearBufferivImmediate) /* 278 */ \
38 OP(ClearBufferuivImmediate) /* 279 */ \
39 OP(ClearColor) /* 280 */ \
40 OP(ClearDepthf) /* 281 */ \
41 OP(ClearStencil) /* 282 */ \
42 OP(ClientWaitSync) /* 283 */ \
43 OP(ColorMask) /* 284 */ \
44 OP(CompileShader) /* 285 */ \
45 OP(CompressedTexImage2DBucket) /* 286 */ \
46 OP(CompressedTexImage2D) /* 287 */ \
47 OP(CompressedTexSubImage2DBucket) /* 288 */ \
48 OP(CompressedTexSubImage2D) /* 289 */ \
49 OP(CopyBufferSubData) /* 290 */ \
50 OP(CopyTexImage2D) /* 291 */ \
51 OP(CopyTexSubImage2D) /* 292 */ \
52 OP(CopyTexSubImage3D) /* 293 */ \
53 OP(CreateProgram) /* 294 */ \
54 OP(CreateShader) /* 295 */ \
55 OP(CullFace) /* 296 */ \
56 OP(DeleteBuffersImmediate) /* 297 */ \
57 OP(DeleteFramebuffersImmediate) /* 298 */ \
58 OP(DeleteProgram) /* 299 */ \
59 OP(DeleteRenderbuffersImmediate) /* 300 */ \
60 OP(DeleteSamplersImmediate) /* 301 */ \
61 OP(DeleteSync) /* 302 */ \
62 OP(DeleteShader) /* 303 */ \
63 OP(DeleteTexturesImmediate) /* 304 */ \
64 OP(DeleteTransformFeedbacksImmediate) /* 305 */ \
65 OP(DepthFunc) /* 306 */ \
66 OP(DepthMask) /* 307 */ \
67 OP(DepthRangef) /* 308 */ \
68 OP(DetachShader) /* 309 */ \
69 OP(Disable) /* 310 */ \
70 OP(DisableVertexAttribArray) /* 311 */ \
71 OP(DrawArrays) /* 312 */ \
72 OP(DrawElements) /* 313 */ \
73 OP(Enable) /* 314 */ \
74 OP(EnableVertexAttribArray) /* 315 */ \
75 OP(FenceSync) /* 316 */ \
76 OP(Finish) /* 317 */ \
77 OP(Flush) /* 318 */ \
78 OP(FramebufferRenderbuffer) /* 319 */ \
79 OP(FramebufferTexture2D) /* 320 */ \
80 OP(FramebufferTextureLayer) /* 321 */ \
81 OP(FrontFace) /* 322 */ \
82 OP(GenBuffersImmediate) /* 323 */ \
83 OP(GenerateMipmap) /* 324 */ \
84 OP(GenFramebuffersImmediate) /* 325 */ \
85 OP(GenRenderbuffersImmediate) /* 326 */ \
86 OP(GenSamplersImmediate) /* 327 */ \
87 OP(GenTexturesImmediate) /* 328 */ \
88 OP(GenTransformFeedbacksImmediate) /* 329 */ \
89 OP(GetActiveAttrib) /* 330 */ \
90 OP(GetActiveUniform) /* 331 */ \
91 OP(GetActiveUniformBlockiv) /* 332 */ \
92 OP(GetActiveUniformBlockName) /* 333 */ \
93 OP(GetActiveUniformsiv) /* 334 */ \
94 OP(GetAttachedShaders) /* 335 */ \
95 OP(GetAttribLocation) /* 336 */ \
96 OP(GetBooleanv) /* 337 */ \
97 OP(GetBufferParameteriv) /* 338 */ \
98 OP(GetError) /* 339 */ \
99 OP(GetFloatv) /* 340 */ \
100 OP(GetFragDataLocation) /* 341 */ \
101 OP(GetFramebufferAttachmentParameteriv) /* 342 */ \
102 OP(GetIntegerv) /* 343 */ \
103 OP(GetInternalformativ) /* 344 */ \
104 OP(GetProgramiv) /* 345 */ \
105 OP(GetProgramInfoLog) /* 346 */ \
106 OP(GetRenderbufferParameteriv) /* 347 */ \
107 OP(GetSamplerParameterfv) /* 348 */ \
108 OP(GetSamplerParameteriv) /* 349 */ \
109 OP(GetShaderiv) /* 350 */ \
110 OP(GetShaderInfoLog) /* 351 */ \
111 OP(GetShaderPrecisionFormat) /* 352 */ \
112 OP(GetShaderSource) /* 353 */ \
113 OP(GetString) /* 354 */ \
114 OP(GetSynciv) /* 355 */ \
115 OP(GetTexParameterfv) /* 356 */ \
116 OP(GetTexParameteriv) /* 357 */ \
117 OP(GetTransformFeedbackVarying) /* 358 */ \
118 OP(GetUniformBlockIndex) /* 359 */ \
119 OP(GetUniformfv) /* 360 */ \
120 OP(GetUniformiv) /* 361 */ \
121 OP(GetUniformIndices) /* 362 */ \
122 OP(GetUniformLocation) /* 363 */ \
123 OP(GetVertexAttribfv) /* 364 */ \
124 OP(GetVertexAttribiv) /* 365 */ \
125 OP(GetVertexAttribPointerv) /* 366 */ \
126 OP(Hint) /* 367 */ \
127 OP(InvalidateFramebufferImmediate) /* 368 */ \
128 OP(InvalidateSubFramebufferImmediate) /* 369 */ \
129 OP(IsBuffer) /* 370 */ \
130 OP(IsEnabled) /* 371 */ \
131 OP(IsFramebuffer) /* 372 */ \
132 OP(IsProgram) /* 373 */ \
133 OP(IsRenderbuffer) /* 374 */ \
134 OP(IsSampler) /* 375 */ \
135 OP(IsShader) /* 376 */ \
136 OP(IsSync) /* 377 */ \
137 OP(IsTexture) /* 378 */ \
138 OP(IsTransformFeedback) /* 379 */ \
139 OP(LineWidth) /* 380 */ \
140 OP(LinkProgram) /* 381 */ \
141 OP(PauseTransformFeedback) /* 382 */ \
142 OP(PixelStorei) /* 383 */ \
143 OP(PolygonOffset) /* 384 */ \
144 OP(ReadBuffer) /* 385 */ \
145 OP(ReadPixels) /* 386 */ \
146 OP(ReleaseShaderCompiler) /* 387 */ \
147 OP(RenderbufferStorage) /* 388 */ \
148 OP(ResumeTransformFeedback) /* 389 */ \
149 OP(SampleCoverage) /* 390 */ \
150 OP(SamplerParameterf) /* 391 */ \
151 OP(SamplerParameterfvImmediate) /* 392 */ \
152 OP(SamplerParameteri) /* 393 */ \
153 OP(SamplerParameterivImmediate) /* 394 */ \
154 OP(Scissor) /* 395 */ \
155 OP(ShaderBinary) /* 396 */ \
156 OP(ShaderSourceBucket) /* 397 */ \
157 OP(StencilFunc) /* 398 */ \
158 OP(StencilFuncSeparate) /* 399 */ \
159 OP(StencilMask) /* 400 */ \
160 OP(StencilMaskSeparate) /* 401 */ \
161 OP(StencilOp) /* 402 */ \
162 OP(StencilOpSeparate) /* 403 */ \
163 OP(TexImage2D) /* 404 */ \
164 OP(TexImage3D) /* 405 */ \
165 OP(TexParameterf) /* 406 */ \
166 OP(TexParameterfvImmediate) /* 407 */ \
167 OP(TexParameteri) /* 408 */ \
168 OP(TexParameterivImmediate) /* 409 */ \
169 OP(TexStorage3D) /* 410 */ \
170 OP(TexSubImage2D) /* 411 */ \
171 OP(TexSubImage3D) /* 412 */ \
172 OP(TransformFeedbackVaryingsBucket) /* 413 */ \
173 OP(Uniform1f) /* 414 */ \
174 OP(Uniform1fvImmediate) /* 415 */ \
175 OP(Uniform1i) /* 416 */ \
176 OP(Uniform1ivImmediate) /* 417 */ \
177 OP(Uniform1ui) /* 418 */ \
178 OP(Uniform1uivImmediate) /* 419 */ \
179 OP(Uniform2f) /* 420 */ \
180 OP(Uniform2fvImmediate) /* 421 */ \
181 OP(Uniform2i) /* 422 */ \
182 OP(Uniform2ivImmediate) /* 423 */ \
183 OP(Uniform2ui) /* 424 */ \
184 OP(Uniform2uivImmediate) /* 425 */ \
185 OP(Uniform3f) /* 426 */ \
186 OP(Uniform3fvImmediate) /* 427 */ \
187 OP(Uniform3i) /* 428 */ \
188 OP(Uniform3ivImmediate) /* 429 */ \
189 OP(Uniform3ui) /* 430 */ \
190 OP(Uniform3uivImmediate) /* 431 */ \
191 OP(Uniform4f) /* 432 */ \
192 OP(Uniform4fvImmediate) /* 433 */ \
193 OP(Uniform4i) /* 434 */ \
194 OP(Uniform4ivImmediate) /* 435 */ \
195 OP(Uniform4ui) /* 436 */ \
196 OP(Uniform4uivImmediate) /* 437 */ \
197 OP(UniformBlockBinding) /* 438 */ \
198 OP(UniformMatrix2fvImmediate) /* 439 */ \
199 OP(UniformMatrix2x3fvImmediate) /* 440 */ \
200 OP(UniformMatrix2x4fvImmediate) /* 441 */ \
201 OP(UniformMatrix3fvImmediate) /* 442 */ \
202 OP(UniformMatrix3x2fvImmediate) /* 443 */ \
203 OP(UniformMatrix3x4fvImmediate) /* 444 */ \
204 OP(UniformMatrix4fvImmediate) /* 445 */ \
205 OP(UniformMatrix4x2fvImmediate) /* 446 */ \
206 OP(UniformMatrix4x3fvImmediate) /* 447 */ \
207 OP(UseProgram) /* 448 */ \
208 OP(ValidateProgram) /* 449 */ \
209 OP(VertexAttrib1f) /* 450 */ \
210 OP(VertexAttrib1fvImmediate) /* 451 */ \
211 OP(VertexAttrib2f) /* 452 */ \
212 OP(VertexAttrib2fvImmediate) /* 453 */ \
213 OP(VertexAttrib3f) /* 454 */ \
214 OP(VertexAttrib3fvImmediate) /* 455 */ \
215 OP(VertexAttrib4f) /* 456 */ \
216 OP(VertexAttrib4fvImmediate) /* 457 */ \
217 OP(VertexAttribI4i) /* 458 */ \
218 OP(VertexAttribI4ivImmediate) /* 459 */ \
219 OP(VertexAttribI4ui) /* 460 */ \
220 OP(VertexAttribI4uivImmediate) /* 461 */ \
221 OP(VertexAttribIPointer) /* 462 */ \
222 OP(VertexAttribPointer) /* 463 */ \
223 OP(Viewport) /* 464 */ \
224 OP(WaitSync) /* 465 */ \
225 OP(BlitFramebufferCHROMIUM) /* 466 */ \
226 OP(RenderbufferStorageMultisampleCHROMIUM) /* 467 */ \
227 OP(RenderbufferStorageMultisampleEXT) /* 468 */ \
228 OP(FramebufferTexture2DMultisampleEXT) /* 469 */ \
229 OP(TexStorage2DEXT) /* 470 */ \
230 OP(GenQueriesEXTImmediate) /* 471 */ \
231 OP(DeleteQueriesEXTImmediate) /* 472 */ \
232 OP(BeginQueryEXT) /* 473 */ \
233 OP(BeginTransformFeedback) /* 474 */ \
234 OP(EndQueryEXT) /* 475 */ \
235 OP(EndTransformFeedback) /* 476 */ \
236 OP(InsertEventMarkerEXT) /* 477 */ \
237 OP(PushGroupMarkerEXT) /* 478 */ \
238 OP(PopGroupMarkerEXT) /* 479 */ \
239 OP(GenVertexArraysOESImmediate) /* 480 */ \
240 OP(DeleteVertexArraysOESImmediate) /* 481 */ \
241 OP(IsVertexArrayOES) /* 482 */ \
242 OP(BindVertexArrayOES) /* 483 */ \
243 OP(SwapBuffers) /* 484 */ \
244 OP(GetMaxValueInBufferCHROMIUM) /* 485 */ \
245 OP(EnableFeatureCHROMIUM) /* 486 */ \
246 OP(MapBufferRange) /* 487 */ \
247 OP(UnmapBuffer) /* 488 */ \
248 OP(ResizeCHROMIUM) /* 489 */ \
249 OP(GetRequestableExtensionsCHROMIUM) /* 490 */ \
250 OP(RequestExtensionCHROMIUM) /* 491 */ \
251 OP(GetProgramInfoCHROMIUM) /* 492 */ \
252 OP(GetUniformBlocksCHROMIUM) /* 493 */ \
253 OP(GetTransformFeedbackVaryingsCHROMIUM) /* 494 */ \
254 OP(GetUniformsES3CHROMIUM) /* 495 */ \
255 OP(GetTranslatedShaderSourceANGLE) /* 496 */ \
256 OP(PostSubBufferCHROMIUM) /* 497 */ \
257 OP(TexImageIOSurface2DCHROMIUM) /* 498 */ \
258 OP(CopyTextureCHROMIUM) /* 499 */ \
259 OP(CopySubTextureCHROMIUM) /* 500 */ \
260 OP(DrawArraysInstancedANGLE) /* 501 */ \
261 OP(DrawElementsInstancedANGLE) /* 502 */ \
262 OP(VertexAttribDivisorANGLE) /* 503 */ \
263 OP(GenMailboxCHROMIUM) /* 504 */ \
264 OP(ProduceTextureCHROMIUMImmediate) /* 505 */ \
265 OP(ProduceTextureDirectCHROMIUMImmediate) /* 506 */ \
266 OP(ConsumeTextureCHROMIUMImmediate) /* 507 */ \
267 OP(CreateAndConsumeTextureCHROMIUMImmediate) /* 508 */ \
268 OP(BindUniformLocationCHROMIUMBucket) /* 509 */ \
269 OP(GenValuebuffersCHROMIUMImmediate) /* 510 */ \
270 OP(DeleteValuebuffersCHROMIUMImmediate) /* 511 */ \
271 OP(IsValuebufferCHROMIUM) /* 512 */ \
272 OP(BindValuebufferCHROMIUM) /* 513 */ \
273 OP(SubscribeValueCHROMIUM) /* 514 */ \
274 OP(PopulateSubscribedValuesCHROMIUM) /* 515 */ \
275 OP(UniformValuebufferCHROMIUM) /* 516 */ \
276 OP(BindTexImage2DCHROMIUM) /* 517 */ \
277 OP(ReleaseTexImage2DCHROMIUM) /* 518 */ \
278 OP(TraceBeginCHROMIUM) /* 519 */ \
279 OP(TraceEndCHROMIUM) /* 520 */ \
280 OP(AsyncTexSubImage2DCHROMIUM) /* 521 */ \
281 OP(AsyncTexImage2DCHROMIUM) /* 522 */ \
282 OP(WaitAsyncTexImage2DCHROMIUM) /* 523 */ \
283 OP(WaitAllAsyncTexImage2DCHROMIUM) /* 524 */ \
284 OP(DiscardFramebufferEXTImmediate) /* 525 */ \
285 OP(LoseContextCHROMIUM) /* 526 */ \
286 OP(InsertSyncPointCHROMIUM) /* 527 */ \
287 OP(WaitSyncPointCHROMIUM) /* 528 */ \
288 OP(DrawBuffersEXTImmediate) /* 529 */ \
289 OP(DiscardBackbufferCHROMIUM) /* 530 */ \
290 OP(ScheduleOverlayPlaneCHROMIUM) /* 531 */ \
291 OP(SwapInterval) /* 532 */ \
292 OP(MatrixLoadfCHROMIUMImmediate) /* 533 */ \
293 OP(MatrixLoadIdentityCHROMIUM) /* 534 */ \
294 OP(BlendBarrierKHR) /* 535 */
296 enum CommandId {
297 kStartPoint = cmd::kLastCommonId, // All GLES2 commands start after this.
298 #define GLES2_CMD_OP(name) k##name,
299 GLES2_COMMAND_LIST(GLES2_CMD_OP)
300 #undef GLES2_CMD_OP
301 kNumCommands
304 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_IDS_AUTOGEN_H_