Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_validation_implementation_autogen.h
blob958e67a06a94be83fdf013227cda6d5203cbd273
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_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_
14 static const GLenum valid_attachment_table[] = {
15 GL_COLOR_ATTACHMENT0, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT,
18 static const GLenum valid_attachment_table_es3[] = {
19 GL_DEPTH_STENCIL_ATTACHMENT,
22 static const GLenum valid_backbuffer_attachment_table[] = {
23 GL_COLOR_EXT, GL_DEPTH_EXT, GL_STENCIL_EXT,
26 static const GLenum valid_blit_filter_table[] = {
27 GL_NEAREST, GL_LINEAR,
30 static const GLenum valid_buffer_mode_table[] = {
31 GL_INTERLEAVED_ATTRIBS, GL_SEPARATE_ATTRIBS,
34 static const GLenum valid_buffer_parameter_table[] = {
35 GL_BUFFER_SIZE, GL_BUFFER_USAGE,
38 static const GLenum valid_buffer_parameter_table_es3[] = {
39 GL_BUFFER_ACCESS_FLAGS, GL_BUFFER_MAPPED,
42 static const GLenum valid_buffer_parameter_64_table[] = {
43 GL_BUFFER_SIZE, GL_BUFFER_MAP_LENGTH, GL_BUFFER_MAP_OFFSET,
46 static const GLenum valid_buffer_target_table[] = {
47 GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER,
50 static const GLenum valid_buffer_target_table_es3[] = {
51 GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, GL_PIXEL_PACK_BUFFER,
52 GL_PIXEL_UNPACK_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER,
55 static const GLenum valid_buffer_usage_table[] = {
56 GL_STREAM_DRAW, GL_STATIC_DRAW, GL_DYNAMIC_DRAW,
59 static const GLenum valid_buffer_usage_table_es3[] = {
60 GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_READ,
61 GL_STATIC_COPY, GL_DYNAMIC_READ, GL_DYNAMIC_COPY,
64 static const GLenum valid_bufferfi_table[] = {
65 GL_DEPTH_STENCIL,
68 static const GLenum valid_bufferfv_table[] = {
69 GL_COLOR, GL_DEPTH,
72 static const GLenum valid_bufferiv_table[] = {
73 GL_COLOR, GL_STENCIL,
76 static const GLenum valid_bufferuiv_table[] = {
77 GL_COLOR,
80 static const GLenum valid_capability_table[] = {
81 GL_BLEND, GL_CULL_FACE, GL_DEPTH_TEST,
82 GL_DITHER, GL_POLYGON_OFFSET_FILL, GL_SAMPLE_ALPHA_TO_COVERAGE,
83 GL_SAMPLE_COVERAGE, GL_SCISSOR_TEST, GL_STENCIL_TEST,
86 static const GLenum valid_capability_table_es3[] = {
87 GL_RASTERIZER_DISCARD, GL_PRIMITIVE_RESTART_FIXED_INDEX,
90 static const GLenum valid_cmp_function_table[] = {
91 GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL,
92 GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, GL_ALWAYS,
95 static const GLenum valid_compressed_texture_format_table_es3[] = {
96 GL_COMPRESSED_R11_EAC,
97 GL_COMPRESSED_SIGNED_R11_EAC,
98 GL_COMPRESSED_RG11_EAC,
99 GL_COMPRESSED_SIGNED_RG11_EAC,
100 GL_COMPRESSED_RGB8_ETC2,
101 GL_COMPRESSED_SRGB8_ETC2,
102 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
103 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
104 GL_COMPRESSED_RGBA8_ETC2_EAC,
105 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
108 static const GLenum valid_draw_mode_table[] = {
109 GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES,
110 GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES,
113 static const GLenum valid_dst_blend_factor_table[] = {
114 GL_ZERO, GL_ONE,
115 GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR,
116 GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR,
117 GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
118 GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA,
119 GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR,
120 GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA,
123 static const GLenum valid_equation_table[] = {
124 GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT,
127 static const GLenum valid_equation_table_es3[] = {
128 GL_MIN, GL_MAX,
131 static const GLenum valid_face_mode_table[] = {
132 GL_CW, GL_CCW,
135 static const GLenum valid_face_type_table[] = {
136 GL_FRONT, GL_BACK, GL_FRONT_AND_BACK,
139 static const GLenum valid_frame_buffer_parameter_table[] = {
140 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
141 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
142 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
143 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
146 static const GLenum valid_frame_buffer_parameter_table_es3[] = {
147 GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,
148 GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
149 GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
150 GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
151 GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
152 GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,
153 GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE,
154 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING,
155 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER,
158 static const GLenum valid_frame_buffer_target_table[] = {
159 GL_FRAMEBUFFER,
162 static const GLenum valid_frame_buffer_target_table_es3[] = {
163 GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER,
166 static const GLenum valid_g_l_state_table[] = {
167 GL_ACTIVE_TEXTURE,
168 GL_ALIASED_LINE_WIDTH_RANGE,
169 GL_ALIASED_POINT_SIZE_RANGE,
170 GL_ALPHA_BITS,
171 GL_ARRAY_BUFFER_BINDING,
172 GL_BLUE_BITS,
173 GL_COMPRESSED_TEXTURE_FORMATS,
174 GL_CURRENT_PROGRAM,
175 GL_DEPTH_BITS,
176 GL_DEPTH_RANGE,
177 GL_ELEMENT_ARRAY_BUFFER_BINDING,
178 GL_FRAMEBUFFER_BINDING,
179 GL_GENERATE_MIPMAP_HINT,
180 GL_GREEN_BITS,
181 GL_IMPLEMENTATION_COLOR_READ_FORMAT,
182 GL_IMPLEMENTATION_COLOR_READ_TYPE,
183 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
184 GL_MAX_CUBE_MAP_TEXTURE_SIZE,
185 GL_MAX_FRAGMENT_UNIFORM_VECTORS,
186 GL_MAX_RENDERBUFFER_SIZE,
187 GL_MAX_TEXTURE_IMAGE_UNITS,
188 GL_MAX_TEXTURE_SIZE,
189 GL_MAX_VARYING_VECTORS,
190 GL_MAX_VERTEX_ATTRIBS,
191 GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS,
192 GL_MAX_VERTEX_UNIFORM_VECTORS,
193 GL_MAX_VIEWPORT_DIMS,
194 GL_NUM_COMPRESSED_TEXTURE_FORMATS,
195 GL_NUM_SHADER_BINARY_FORMATS,
196 GL_PACK_ALIGNMENT,
197 GL_RED_BITS,
198 GL_RENDERBUFFER_BINDING,
199 GL_SAMPLE_BUFFERS,
200 GL_SAMPLE_COVERAGE_INVERT,
201 GL_SAMPLE_COVERAGE_VALUE,
202 GL_SAMPLES,
203 GL_SCISSOR_BOX,
204 GL_SHADER_BINARY_FORMATS,
205 GL_SHADER_COMPILER,
206 GL_SUBPIXEL_BITS,
207 GL_STENCIL_BITS,
208 GL_TEXTURE_BINDING_2D,
209 GL_TEXTURE_BINDING_CUBE_MAP,
210 GL_UNPACK_ALIGNMENT,
211 GL_BIND_GENERATES_RESOURCE_CHROMIUM,
212 GL_VERTEX_ARRAY_BINDING_OES,
213 GL_VIEWPORT,
214 GL_BLEND_COLOR,
215 GL_BLEND_EQUATION_RGB,
216 GL_BLEND_EQUATION_ALPHA,
217 GL_BLEND_SRC_RGB,
218 GL_BLEND_DST_RGB,
219 GL_BLEND_SRC_ALPHA,
220 GL_BLEND_DST_ALPHA,
221 GL_COLOR_CLEAR_VALUE,
222 GL_DEPTH_CLEAR_VALUE,
223 GL_STENCIL_CLEAR_VALUE,
224 GL_COLOR_WRITEMASK,
225 GL_CULL_FACE_MODE,
226 GL_DEPTH_FUNC,
227 GL_DEPTH_WRITEMASK,
228 GL_FRONT_FACE,
229 GL_LINE_WIDTH,
230 GL_POLYGON_OFFSET_FACTOR,
231 GL_POLYGON_OFFSET_UNITS,
232 GL_STENCIL_FUNC,
233 GL_STENCIL_REF,
234 GL_STENCIL_VALUE_MASK,
235 GL_STENCIL_BACK_FUNC,
236 GL_STENCIL_BACK_REF,
237 GL_STENCIL_BACK_VALUE_MASK,
238 GL_STENCIL_WRITEMASK,
239 GL_STENCIL_BACK_WRITEMASK,
240 GL_STENCIL_FAIL,
241 GL_STENCIL_PASS_DEPTH_FAIL,
242 GL_STENCIL_PASS_DEPTH_PASS,
243 GL_STENCIL_BACK_FAIL,
244 GL_STENCIL_BACK_PASS_DEPTH_FAIL,
245 GL_STENCIL_BACK_PASS_DEPTH_PASS,
246 GL_BLEND,
247 GL_CULL_FACE,
248 GL_DEPTH_TEST,
249 GL_DITHER,
250 GL_POLYGON_OFFSET_FILL,
251 GL_SAMPLE_ALPHA_TO_COVERAGE,
252 GL_SAMPLE_COVERAGE,
253 GL_SCISSOR_TEST,
254 GL_STENCIL_TEST,
255 GL_RASTERIZER_DISCARD,
256 GL_PRIMITIVE_RESTART_FIXED_INDEX,
259 static const GLenum valid_g_l_state_table_es3[] = {
260 GL_COPY_READ_BUFFER_BINDING,
261 GL_COPY_WRITE_BUFFER_BINDING,
262 GL_DRAW_BUFFER0,
263 GL_DRAW_BUFFER1,
264 GL_DRAW_BUFFER2,
265 GL_DRAW_BUFFER3,
266 GL_DRAW_BUFFER4,
267 GL_DRAW_BUFFER5,
268 GL_DRAW_BUFFER6,
269 GL_DRAW_BUFFER7,
270 GL_DRAW_BUFFER8,
271 GL_DRAW_BUFFER9,
272 GL_DRAW_BUFFER10,
273 GL_DRAW_BUFFER11,
274 GL_DRAW_BUFFER12,
275 GL_DRAW_BUFFER13,
276 GL_DRAW_BUFFER14,
277 GL_DRAW_BUFFER15,
278 GL_DRAW_FRAMEBUFFER_BINDING,
279 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
280 GL_GPU_DISJOINT_EXT,
281 GL_MAJOR_VERSION,
282 GL_MAX_3D_TEXTURE_SIZE,
283 GL_MAX_ARRAY_TEXTURE_LAYERS,
284 GL_MAX_COLOR_ATTACHMENTS,
285 GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,
286 GL_MAX_COMBINED_UNIFORM_BLOCKS,
287 GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,
288 GL_MAX_DRAW_BUFFERS,
289 GL_MAX_ELEMENT_INDEX,
290 GL_MAX_ELEMENTS_INDICES,
291 GL_MAX_ELEMENTS_VERTICES,
292 GL_MAX_FRAGMENT_INPUT_COMPONENTS,
293 GL_MAX_FRAGMENT_UNIFORM_BLOCKS,
294 GL_MAX_FRAGMENT_UNIFORM_COMPONENTS,
295 GL_MAX_PROGRAM_TEXEL_OFFSET,
296 GL_MAX_SAMPLES,
297 GL_MAX_SERVER_WAIT_TIMEOUT,
298 GL_MAX_TEXTURE_LOD_BIAS,
299 GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,
300 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
301 GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,
302 GL_MAX_UNIFORM_BLOCK_SIZE,
303 GL_MAX_UNIFORM_BUFFER_BINDINGS,
304 GL_MAX_VARYING_COMPONENTS,
305 GL_MAX_VERTEX_OUTPUT_COMPONENTS,
306 GL_MAX_VERTEX_UNIFORM_BLOCKS,
307 GL_MAX_VERTEX_UNIFORM_COMPONENTS,
308 GL_MIN_PROGRAM_TEXEL_OFFSET,
309 GL_MINOR_VERSION,
310 GL_NUM_EXTENSIONS,
311 GL_NUM_PROGRAM_BINARY_FORMATS,
312 GL_PACK_ROW_LENGTH,
313 GL_PACK_SKIP_PIXELS,
314 GL_PACK_SKIP_ROWS,
315 GL_PIXEL_PACK_BUFFER_BINDING,
316 GL_PIXEL_UNPACK_BUFFER_BINDING,
317 GL_PROGRAM_BINARY_FORMATS,
318 GL_READ_BUFFER,
319 GL_READ_FRAMEBUFFER_BINDING,
320 GL_SAMPLER_BINDING,
321 GL_TIMESTAMP_EXT,
322 GL_TEXTURE_BINDING_2D_ARRAY,
323 GL_TEXTURE_BINDING_3D,
324 GL_TRANSFORM_FEEDBACK_BINDING,
325 GL_TRANSFORM_FEEDBACK_ACTIVE,
326 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
327 GL_TRANSFORM_FEEDBACK_PAUSED,
328 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
329 GL_TRANSFORM_FEEDBACK_BUFFER_START,
330 GL_UNIFORM_BUFFER_BINDING,
331 GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
332 GL_UNIFORM_BUFFER_SIZE,
333 GL_UNIFORM_BUFFER_START,
334 GL_UNPACK_IMAGE_HEIGHT,
335 GL_UNPACK_ROW_LENGTH,
336 GL_UNPACK_SKIP_IMAGES,
337 GL_UNPACK_SKIP_PIXELS,
338 GL_UNPACK_SKIP_ROWS,
341 static const GLenum valid_get_max_index_type_table[] = {
342 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, GL_UNSIGNED_INT,
345 static const GLenum valid_get_tex_param_target_table[] = {
346 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP,
349 static const GLenum valid_get_tex_param_target_table_es3[] = {
350 GL_TEXTURE_2D_ARRAY, GL_TEXTURE_3D,
353 static const GLenum valid_hint_mode_table[] = {
354 GL_FASTEST, GL_NICEST, GL_DONT_CARE,
357 static const GLenum valid_hint_target_table[] = {
358 GL_GENERATE_MIPMAP_HINT,
361 static const GLenum valid_hint_target_table_es3[] = {
362 GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
365 static const GLenum valid_image_internal_format_table[] = {
366 GL_RGB, GL_RGB_YUV_420_CHROMIUM, GL_RGBA,
369 static const GLenum valid_image_usage_table[] = {
370 GL_MAP_CHROMIUM, GL_SCANOUT_CHROMIUM,
373 static const GLenum valid_index_type_table[] = {
374 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT,
377 static const GLenum valid_index_type_table_es3[] = {
378 GL_UNSIGNED_INT,
381 static const GLenum valid_indexed_buffer_target_table[] = {
382 GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER,
385 static const GLenum valid_indexed_g_l_state_table[] = {
386 GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
387 GL_TRANSFORM_FEEDBACK_BUFFER_SIZE,
388 GL_TRANSFORM_FEEDBACK_BUFFER_START,
389 GL_UNIFORM_BUFFER_BINDING,
390 GL_UNIFORM_BUFFER_SIZE,
391 GL_UNIFORM_BUFFER_START,
394 static const GLenum valid_internal_format_parameter_table[] = {
395 GL_NUM_SAMPLE_COUNTS, GL_SAMPLES,
398 static const GLenum valid_invalidate_frame_buffer_target_table[] = {
399 GL_FRAMEBUFFER,
402 static const GLenum valid_map_buffer_access_table[] = {
403 GL_MAP_READ_BIT,
404 GL_MAP_WRITE_BIT,
405 GL_MAP_INVALIDATE_RANGE_BIT,
406 GL_MAP_INVALIDATE_BUFFER_BIT,
407 GL_MAP_FLUSH_EXPLICIT_BIT,
408 GL_MAP_UNSYNCHRONIZED_BIT,
411 static const GLenum valid_matrix_mode_table[] = {
412 GL_PATH_PROJECTION_CHROMIUM, GL_PATH_MODELVIEW_CHROMIUM,
415 static const GLenum valid_path_coord_type_table[] = {
416 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FLOAT,
419 static const GLenum valid_path_cover_mode_table[] = {
420 GL_CONVEX_HULL_CHROMIUM, GL_BOUNDING_BOX_CHROMIUM,
423 static const GLenum valid_path_fill_mode_table[] = {
424 GL_INVERT, GL_COUNT_UP_CHROMIUM, GL_COUNT_DOWN_CHROMIUM,
427 static const GLenum valid_path_parameter_table[] = {
428 GL_PATH_STROKE_WIDTH_CHROMIUM, GL_PATH_END_CAPS_CHROMIUM,
429 GL_PATH_JOIN_STYLE_CHROMIUM, GL_PATH_MITER_LIMIT_CHROMIUM,
430 GL_PATH_STROKE_BOUND_CHROMIUM,
433 static const GLint valid_path_parameter_cap_values_table[] = {
434 GL_FLAT, GL_SQUARE_CHROMIUM, GL_ROUND_CHROMIUM,
437 static const GLint valid_path_parameter_join_values_table[] = {
438 GL_MITER_REVERT_CHROMIUM, GL_BEVEL_CHROMIUM, GL_ROUND_CHROMIUM,
441 static const GLenum valid_pixel_store_table[] = {
442 GL_PACK_ALIGNMENT, GL_UNPACK_ALIGNMENT,
445 static const GLenum valid_pixel_store_table_es3[] = {
446 GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS,
447 GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS,
448 GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES,
451 static const GLint valid_pixel_store_alignment_table[] = {
452 1, 2, 4, 8,
455 static const GLenum valid_pixel_type_table[] = {
456 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
457 GL_UNSIGNED_SHORT_5_5_5_1,
460 static const GLenum valid_pixel_type_table_es3[] = {
461 GL_BYTE,
462 GL_UNSIGNED_SHORT,
463 GL_SHORT,
464 GL_UNSIGNED_INT,
465 GL_INT,
466 GL_HALF_FLOAT,
467 GL_FLOAT,
468 GL_UNSIGNED_INT_2_10_10_10_REV,
469 GL_UNSIGNED_INT_10F_11F_11F_REV,
470 GL_UNSIGNED_INT_5_9_9_9_REV,
471 GL_UNSIGNED_INT_24_8,
472 GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
475 static const GLenum valid_program_parameter_table[] = {
476 GL_DELETE_STATUS,
477 GL_LINK_STATUS,
478 GL_VALIDATE_STATUS,
479 GL_INFO_LOG_LENGTH,
480 GL_ATTACHED_SHADERS,
481 GL_ACTIVE_ATTRIBUTES,
482 GL_ACTIVE_ATTRIBUTE_MAX_LENGTH,
483 GL_ACTIVE_UNIFORMS,
484 GL_ACTIVE_UNIFORM_MAX_LENGTH,
487 static const GLenum valid_program_parameter_table_es3[] = {
488 GL_ACTIVE_UNIFORM_BLOCKS,
489 GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH,
490 GL_TRANSFORM_FEEDBACK_BUFFER_MODE,
491 GL_TRANSFORM_FEEDBACK_VARYINGS,
492 GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH,
495 static const GLenum valid_query_object_parameter_table[] = {
496 GL_QUERY_RESULT_EXT, GL_QUERY_RESULT_AVAILABLE_EXT,
499 static const GLenum valid_query_parameter_table[] = {
500 GL_CURRENT_QUERY_EXT,
503 static const GLenum valid_query_target_table[] = {
504 GL_ANY_SAMPLES_PASSED_EXT,
505 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
506 GL_COMMANDS_ISSUED_CHROMIUM,
507 GL_LATENCY_QUERY_CHROMIUM,
508 GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
509 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
510 GL_COMMANDS_COMPLETED_CHROMIUM,
513 static const GLenum valid_read_buffer_table[] = {
514 GL_NONE,
515 GL_BACK,
516 GL_COLOR_ATTACHMENT0,
517 GL_COLOR_ATTACHMENT1,
518 GL_COLOR_ATTACHMENT2,
519 GL_COLOR_ATTACHMENT3,
520 GL_COLOR_ATTACHMENT4,
521 GL_COLOR_ATTACHMENT5,
522 GL_COLOR_ATTACHMENT6,
523 GL_COLOR_ATTACHMENT7,
524 GL_COLOR_ATTACHMENT8,
525 GL_COLOR_ATTACHMENT9,
526 GL_COLOR_ATTACHMENT10,
527 GL_COLOR_ATTACHMENT11,
528 GL_COLOR_ATTACHMENT12,
529 GL_COLOR_ATTACHMENT13,
530 GL_COLOR_ATTACHMENT14,
531 GL_COLOR_ATTACHMENT15,
534 static const GLenum valid_read_pixel_format_table[] = {
535 GL_ALPHA, GL_RGB, GL_RGBA,
538 static const GLenum valid_read_pixel_format_table_es3[] = {
539 GL_RGBA_INTEGER,
542 static const GLenum deprecated_read_pixel_format_table_es3[] = {
543 GL_ALPHA, GL_RGB,
546 static const GLenum valid_read_pixel_type_table[] = {
547 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
548 GL_UNSIGNED_SHORT_5_5_5_1,
551 static const GLenum valid_read_pixel_type_table_es3[] = {
552 GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_INT_2_10_10_10_REV,
555 static const GLenum deprecated_read_pixel_type_table_es3[] = {
556 GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4,
557 GL_UNSIGNED_SHORT_5_5_5_1,
560 static const GLenum valid_render_buffer_format_table[] = {
561 GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX8,
564 static const GLenum valid_render_buffer_format_table_es3[] = {
565 GL_R8,
566 GL_R8UI,
567 GL_R8I,
568 GL_R16UI,
569 GL_R16I,
570 GL_R32UI,
571 GL_R32I,
572 GL_RG8,
573 GL_RG8UI,
574 GL_RG8I,
575 GL_RG16UI,
576 GL_RG16I,
577 GL_RG32UI,
578 GL_RG32I,
579 GL_RGB8,
580 GL_RGBA8,
581 GL_SRGB8_ALPHA8,
582 GL_RGB10_A2,
583 GL_RGBA8UI,
584 GL_RGBA8I,
585 GL_RGB10_A2UI,
586 GL_RGBA16UI,
587 GL_RGBA16I,
588 GL_RGBA32UI,
589 GL_RGBA32I,
590 GL_DEPTH_COMPONENT24,
591 GL_DEPTH_COMPONENT32F,
592 GL_DEPTH24_STENCIL8,
593 GL_DEPTH32F_STENCIL8,
596 static const GLenum valid_render_buffer_parameter_table[] = {
597 GL_RENDERBUFFER_RED_SIZE, GL_RENDERBUFFER_GREEN_SIZE,
598 GL_RENDERBUFFER_BLUE_SIZE, GL_RENDERBUFFER_ALPHA_SIZE,
599 GL_RENDERBUFFER_DEPTH_SIZE, GL_RENDERBUFFER_STENCIL_SIZE,
600 GL_RENDERBUFFER_WIDTH, GL_RENDERBUFFER_HEIGHT,
601 GL_RENDERBUFFER_INTERNAL_FORMAT,
604 static const GLenum valid_render_buffer_parameter_table_es3[] = {
605 GL_RENDERBUFFER_SAMPLES,
608 static const GLenum valid_render_buffer_target_table[] = {
609 GL_RENDERBUFFER,
612 static const GLenum valid_reset_status_table[] = {
613 GL_GUILTY_CONTEXT_RESET_ARB, GL_INNOCENT_CONTEXT_RESET_ARB,
614 GL_UNKNOWN_CONTEXT_RESET_ARB,
617 static const GLenum valid_sampler_parameter_table[] = {
618 GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD,
619 GL_TEXTURE_MAX_LOD, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T,
620 GL_TEXTURE_WRAP_R, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC,
623 static const GLenum valid_shader_parameter_table[] = {
624 GL_SHADER_TYPE, GL_DELETE_STATUS,
625 GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH,
626 GL_SHADER_SOURCE_LENGTH, GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
629 static const GLenum valid_shader_precision_table[] = {
630 GL_LOW_FLOAT, GL_MEDIUM_FLOAT, GL_HIGH_FLOAT,
631 GL_LOW_INT, GL_MEDIUM_INT, GL_HIGH_INT,
634 static const GLenum valid_shader_type_table[] = {
635 GL_VERTEX_SHADER, GL_FRAGMENT_SHADER,
638 static const GLenum valid_src_blend_factor_table[] = {
639 GL_ZERO,
640 GL_ONE,
641 GL_SRC_COLOR,
642 GL_ONE_MINUS_SRC_COLOR,
643 GL_DST_COLOR,
644 GL_ONE_MINUS_DST_COLOR,
645 GL_SRC_ALPHA,
646 GL_ONE_MINUS_SRC_ALPHA,
647 GL_DST_ALPHA,
648 GL_ONE_MINUS_DST_ALPHA,
649 GL_CONSTANT_COLOR,
650 GL_ONE_MINUS_CONSTANT_COLOR,
651 GL_CONSTANT_ALPHA,
652 GL_ONE_MINUS_CONSTANT_ALPHA,
653 GL_SRC_ALPHA_SATURATE,
656 static const GLenum valid_stencil_op_table[] = {
657 GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR,
658 GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, GL_INVERT,
661 static const GLenum valid_string_type_table[] = {
662 GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION,
663 GL_EXTENSIONS,
666 static const GLenum valid_subscription_target_table[] = {
667 GL_MOUSE_POSITION_CHROMIUM,
670 static const GLbitfield valid_sync_flush_flags_table[] = {
671 GL_SYNC_FLUSH_COMMANDS_BIT, 0,
674 static const GLenum valid_sync_parameter_table[] = {
675 GL_SYNC_STATUS, GL_OBJECT_TYPE, GL_SYNC_CONDITION, GL_SYNC_FLAGS,
678 static const GLenum valid_texture_3_d_target_table[] = {
679 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
682 static const GLenum valid_texture_bind_target_table[] = {
683 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP,
686 static const GLenum valid_texture_bind_target_table_es3[] = {
687 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
690 static const GLenum valid_texture_compare_func_table[] = {
691 GL_LEQUAL, GL_GEQUAL, GL_LESS, GL_GREATER,
692 GL_EQUAL, GL_NOTEQUAL, GL_ALWAYS, GL_NEVER,
695 static const GLenum valid_texture_compare_mode_table[] = {
696 GL_NONE, GL_COMPARE_REF_TO_TEXTURE,
699 static const GLenum valid_texture_format_table[] = {
700 GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA,
703 static const GLenum valid_texture_format_table_es3[] = {
704 GL_RED,
705 GL_RED_INTEGER,
706 GL_RG,
707 GL_RG_INTEGER,
708 GL_RGB_INTEGER,
709 GL_RGBA_INTEGER,
710 GL_DEPTH_COMPONENT,
711 GL_DEPTH_STENCIL,
714 static const GLenum valid_texture_internal_format_table[] = {
715 GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, GL_RGBA,
718 static const GLenum valid_texture_internal_format_table_es3[] = {
719 GL_R8,
720 GL_R8_SNORM,
721 GL_R16F,
722 GL_R32F,
723 GL_R8UI,
724 GL_R8I,
725 GL_R16UI,
726 GL_R16I,
727 GL_R32UI,
728 GL_R32I,
729 GL_RG8,
730 GL_RG8_SNORM,
731 GL_RG16F,
732 GL_RG32F,
733 GL_RG8UI,
734 GL_RG8I,
735 GL_RG16UI,
736 GL_RG16I,
737 GL_RG32UI,
738 GL_RG32I,
739 GL_RGB8,
740 GL_SRGB8,
741 GL_RGB565,
742 GL_RGB8_SNORM,
743 GL_R11F_G11F_B10F,
744 GL_RGB9_E5,
745 GL_RGB16F,
746 GL_RGB32F,
747 GL_RGB8UI,
748 GL_RGB8I,
749 GL_RGB16UI,
750 GL_RGB16I,
751 GL_RGB32UI,
752 GL_RGB32I,
753 GL_RGBA8,
754 GL_SRGB8_ALPHA8,
755 GL_RGBA8_SNORM,
756 GL_RGB5_A1,
757 GL_RGBA4,
758 GL_RGB10_A2,
759 GL_RGBA16F,
760 GL_RGBA32F,
761 GL_RGBA8UI,
762 GL_RGBA8I,
763 GL_RGB10_A2UI,
764 GL_RGBA16UI,
765 GL_RGBA16I,
766 GL_RGBA32UI,
767 GL_RGBA32I,
768 GL_DEPTH_COMPONENT16,
769 GL_DEPTH_COMPONENT24,
770 GL_DEPTH_COMPONENT32F,
771 GL_DEPTH24_STENCIL8,
772 GL_DEPTH32F_STENCIL8,
775 static const GLenum valid_texture_internal_format_storage_table[] = {
776 GL_RGB565, GL_RGBA4, GL_RGB5_A1,
777 GL_ALPHA8_EXT, GL_LUMINANCE8_EXT, GL_LUMINANCE8_ALPHA8_EXT,
778 GL_RGB8_OES, GL_RGBA8_OES,
781 static const GLenum valid_texture_internal_format_storage_table_es3[] = {
782 GL_R8,
783 GL_R8_SNORM,
784 GL_R16F,
785 GL_R32F,
786 GL_R8UI,
787 GL_R8I,
788 GL_R16UI,
789 GL_R16I,
790 GL_R32UI,
791 GL_R32I,
792 GL_RG8,
793 GL_RG8_SNORM,
794 GL_RG16F,
795 GL_RG32F,
796 GL_RG8UI,
797 GL_RG8I,
798 GL_RG16UI,
799 GL_RG16I,
800 GL_RG32UI,
801 GL_RG32I,
802 GL_RGB8,
803 GL_SRGB8,
804 GL_RGB8_SNORM,
805 GL_R11F_G11F_B10F,
806 GL_RGB9_E5,
807 GL_RGB16F,
808 GL_RGB32F,
809 GL_RGB8UI,
810 GL_RGB8I,
811 GL_RGB16UI,
812 GL_RGB16I,
813 GL_RGB32UI,
814 GL_RGB32I,
815 GL_RGBA8,
816 GL_SRGB8_ALPHA8,
817 GL_RGBA8_SNORM,
818 GL_RGB10_A2,
819 GL_RGBA16F,
820 GL_RGBA32F,
821 GL_RGBA8UI,
822 GL_RGBA8I,
823 GL_RGB10_A2UI,
824 GL_RGBA16UI,
825 GL_RGBA16I,
826 GL_RGBA32UI,
827 GL_RGBA32I,
828 GL_DEPTH_COMPONENT16,
829 GL_DEPTH_COMPONENT24,
830 GL_DEPTH_COMPONENT32F,
831 GL_DEPTH24_STENCIL8,
832 GL_DEPTH32F_STENCIL8,
833 GL_COMPRESSED_R11_EAC,
834 GL_COMPRESSED_SIGNED_R11_EAC,
835 GL_COMPRESSED_RG11_EAC,
836 GL_COMPRESSED_SIGNED_RG11_EAC,
837 GL_COMPRESSED_RGB8_ETC2,
838 GL_COMPRESSED_SRGB8_ETC2,
839 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
840 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
841 GL_COMPRESSED_RGBA8_ETC2_EAC,
842 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
845 static const GLenum deprecated_texture_internal_format_storage_table_es3[] = {
846 GL_ALPHA8_EXT, GL_LUMINANCE8_EXT, GL_LUMINANCE8_ALPHA8_EXT,
847 GL_ALPHA16F_EXT, GL_LUMINANCE16F_EXT, GL_LUMINANCE_ALPHA16F_EXT,
848 GL_ALPHA32F_EXT, GL_LUMINANCE32F_EXT, GL_LUMINANCE_ALPHA32F_EXT,
851 static const GLenum valid_texture_mag_filter_mode_table[] = {
852 GL_NEAREST, GL_LINEAR,
855 static const GLenum valid_texture_min_filter_mode_table[] = {
856 GL_NEAREST,
857 GL_LINEAR,
858 GL_NEAREST_MIPMAP_NEAREST,
859 GL_LINEAR_MIPMAP_NEAREST,
860 GL_NEAREST_MIPMAP_LINEAR,
861 GL_LINEAR_MIPMAP_LINEAR,
864 static const GLenum valid_texture_parameter_table[] = {
865 GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_POOL_CHROMIUM,
866 GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T,
869 static const GLenum valid_texture_parameter_table_es3[] = {
870 GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_COMPARE_FUNC,
871 GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_IMMUTABLE_FORMAT,
872 GL_TEXTURE_IMMUTABLE_LEVELS, GL_TEXTURE_MAX_LEVEL,
873 GL_TEXTURE_MAX_LOD, GL_TEXTURE_MIN_LOD,
874 GL_TEXTURE_WRAP_R,
877 static const GLenum valid_texture_pool_table[] = {
878 GL_TEXTURE_POOL_MANAGED_CHROMIUM, GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
881 static const GLenum valid_texture_target_table[] = {
882 GL_TEXTURE_2D,
883 GL_TEXTURE_CUBE_MAP_POSITIVE_X,
884 GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
885 GL_TEXTURE_CUBE_MAP_POSITIVE_Y,
886 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
887 GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
888 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
891 static const GLenum valid_texture_usage_table[] = {
892 GL_NONE, GL_FRAMEBUFFER_ATTACHMENT_ANGLE,
895 static const GLenum valid_texture_wrap_mode_table[] = {
896 GL_CLAMP_TO_EDGE, GL_MIRRORED_REPEAT, GL_REPEAT,
899 static const GLenum valid_transform_feedback_bind_target_table[] = {
900 GL_TRANSFORM_FEEDBACK,
903 static const GLenum valid_transform_feedback_primitive_mode_table[] = {
904 GL_POINTS, GL_LINES, GL_TRIANGLES,
907 static const GLenum valid_uniform_block_parameter_table[] = {
908 GL_UNIFORM_BLOCK_BINDING,
909 GL_UNIFORM_BLOCK_DATA_SIZE,
910 GL_UNIFORM_BLOCK_NAME_LENGTH,
911 GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS,
912 GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES,
913 GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
914 GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
917 static const GLenum valid_uniform_parameter_table[] = {
918 GL_UNIFORM_SIZE, GL_UNIFORM_TYPE, GL_UNIFORM_NAME_LENGTH,
919 GL_UNIFORM_BLOCK_INDEX, GL_UNIFORM_OFFSET, GL_UNIFORM_ARRAY_STRIDE,
920 GL_UNIFORM_MATRIX_STRIDE, GL_UNIFORM_IS_ROW_MAJOR,
923 static const GLenum valid_value_buffer_target_table[] = {
924 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
927 static const GLenum valid_vertex_attrib_i_type_table[] = {
928 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT,
929 GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT,
932 static const GLint valid_vertex_attrib_size_table[] = {
933 1, 2, 3, 4,
936 static const GLenum valid_vertex_attrib_type_table[] = {
937 GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_FLOAT,
940 static const GLenum valid_vertex_attrib_type_table_es3[] = {
941 GL_INT,
942 GL_UNSIGNED_INT,
943 GL_HALF_FLOAT,
944 GL_INT_2_10_10_10_REV,
945 GL_UNSIGNED_INT_2_10_10_10_REV,
948 static const GLenum valid_vertex_attribute_table[] = {
949 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
950 GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE,
951 GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE,
952 GL_CURRENT_VERTEX_ATTRIB,
955 static const GLenum valid_vertex_attribute_table_es3[] = {
956 GL_VERTEX_ATTRIB_ARRAY_INTEGER, GL_VERTEX_ATTRIB_ARRAY_DIVISOR,
959 static const GLenum valid_vertex_pointer_table[] = {
960 GL_VERTEX_ATTRIB_ARRAY_POINTER,
963 Validators::Validators()
964 : attachment(valid_attachment_table, arraysize(valid_attachment_table)),
965 backbuffer_attachment(valid_backbuffer_attachment_table,
966 arraysize(valid_backbuffer_attachment_table)),
967 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)),
968 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)),
969 buffer_parameter(valid_buffer_parameter_table,
970 arraysize(valid_buffer_parameter_table)),
971 buffer_parameter_64(valid_buffer_parameter_64_table,
972 arraysize(valid_buffer_parameter_64_table)),
973 buffer_target(valid_buffer_target_table,
974 arraysize(valid_buffer_target_table)),
975 buffer_usage(valid_buffer_usage_table,
976 arraysize(valid_buffer_usage_table)),
977 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)),
978 bufferfv(valid_bufferfv_table, arraysize(valid_bufferfv_table)),
979 bufferiv(valid_bufferiv_table, arraysize(valid_bufferiv_table)),
980 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)),
981 capability(valid_capability_table, arraysize(valid_capability_table)),
982 cmp_function(valid_cmp_function_table,
983 arraysize(valid_cmp_function_table)),
984 compressed_texture_format(),
985 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)),
986 dst_blend_factor(valid_dst_blend_factor_table,
987 arraysize(valid_dst_blend_factor_table)),
988 equation(valid_equation_table, arraysize(valid_equation_table)),
989 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)),
990 face_type(valid_face_type_table, arraysize(valid_face_type_table)),
991 frame_buffer_parameter(valid_frame_buffer_parameter_table,
992 arraysize(valid_frame_buffer_parameter_table)),
993 frame_buffer_target(valid_frame_buffer_target_table,
994 arraysize(valid_frame_buffer_target_table)),
995 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)),
996 get_max_index_type(valid_get_max_index_type_table,
997 arraysize(valid_get_max_index_type_table)),
998 get_tex_param_target(valid_get_tex_param_target_table,
999 arraysize(valid_get_tex_param_target_table)),
1000 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)),
1001 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)),
1002 image_internal_format(valid_image_internal_format_table,
1003 arraysize(valid_image_internal_format_table)),
1004 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)),
1005 index_type(valid_index_type_table, arraysize(valid_index_type_table)),
1006 indexed_buffer_target(valid_indexed_buffer_target_table,
1007 arraysize(valid_indexed_buffer_target_table)),
1008 indexed_g_l_state(valid_indexed_g_l_state_table,
1009 arraysize(valid_indexed_g_l_state_table)),
1010 internal_format_parameter(
1011 valid_internal_format_parameter_table,
1012 arraysize(valid_internal_format_parameter_table)),
1013 invalidate_frame_buffer_target(
1014 valid_invalidate_frame_buffer_target_table,
1015 arraysize(valid_invalidate_frame_buffer_target_table)),
1016 map_buffer_access(valid_map_buffer_access_table,
1017 arraysize(valid_map_buffer_access_table)),
1018 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)),
1019 path_coord_type(valid_path_coord_type_table,
1020 arraysize(valid_path_coord_type_table)),
1021 path_cover_mode(valid_path_cover_mode_table,
1022 arraysize(valid_path_cover_mode_table)),
1023 path_fill_mode(valid_path_fill_mode_table,
1024 arraysize(valid_path_fill_mode_table)),
1025 path_parameter(valid_path_parameter_table,
1026 arraysize(valid_path_parameter_table)),
1027 path_parameter_cap_values(
1028 valid_path_parameter_cap_values_table,
1029 arraysize(valid_path_parameter_cap_values_table)),
1030 path_parameter_join_values(
1031 valid_path_parameter_join_values_table,
1032 arraysize(valid_path_parameter_join_values_table)),
1033 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
1034 pixel_store_alignment(valid_pixel_store_alignment_table,
1035 arraysize(valid_pixel_store_alignment_table)),
1036 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
1037 program_parameter(valid_program_parameter_table,
1038 arraysize(valid_program_parameter_table)),
1039 query_object_parameter(valid_query_object_parameter_table,
1040 arraysize(valid_query_object_parameter_table)),
1041 query_parameter(valid_query_parameter_table,
1042 arraysize(valid_query_parameter_table)),
1043 query_target(valid_query_target_table,
1044 arraysize(valid_query_target_table)),
1045 read_buffer(valid_read_buffer_table, arraysize(valid_read_buffer_table)),
1046 read_pixel_format(valid_read_pixel_format_table,
1047 arraysize(valid_read_pixel_format_table)),
1048 read_pixel_type(valid_read_pixel_type_table,
1049 arraysize(valid_read_pixel_type_table)),
1050 render_buffer_format(valid_render_buffer_format_table,
1051 arraysize(valid_render_buffer_format_table)),
1052 render_buffer_parameter(valid_render_buffer_parameter_table,
1053 arraysize(valid_render_buffer_parameter_table)),
1054 render_buffer_target(valid_render_buffer_target_table,
1055 arraysize(valid_render_buffer_target_table)),
1056 reset_status(valid_reset_status_table,
1057 arraysize(valid_reset_status_table)),
1058 sampler_parameter(valid_sampler_parameter_table,
1059 arraysize(valid_sampler_parameter_table)),
1060 shader_binary_format(),
1061 shader_parameter(valid_shader_parameter_table,
1062 arraysize(valid_shader_parameter_table)),
1063 shader_precision(valid_shader_precision_table,
1064 arraysize(valid_shader_precision_table)),
1065 shader_type(valid_shader_type_table, arraysize(valid_shader_type_table)),
1066 src_blend_factor(valid_src_blend_factor_table,
1067 arraysize(valid_src_blend_factor_table)),
1068 stencil_op(valid_stencil_op_table, arraysize(valid_stencil_op_table)),
1069 string_type(valid_string_type_table, arraysize(valid_string_type_table)),
1070 subscription_target(valid_subscription_target_table,
1071 arraysize(valid_subscription_target_table)),
1072 sync_flush_flags(valid_sync_flush_flags_table,
1073 arraysize(valid_sync_flush_flags_table)),
1074 sync_parameter(valid_sync_parameter_table,
1075 arraysize(valid_sync_parameter_table)),
1076 texture_3_d_target(valid_texture_3_d_target_table,
1077 arraysize(valid_texture_3_d_target_table)),
1078 texture_bind_target(valid_texture_bind_target_table,
1079 arraysize(valid_texture_bind_target_table)),
1080 texture_compare_func(valid_texture_compare_func_table,
1081 arraysize(valid_texture_compare_func_table)),
1082 texture_compare_mode(valid_texture_compare_mode_table,
1083 arraysize(valid_texture_compare_mode_table)),
1084 texture_format(valid_texture_format_table,
1085 arraysize(valid_texture_format_table)),
1086 texture_internal_format(valid_texture_internal_format_table,
1087 arraysize(valid_texture_internal_format_table)),
1088 texture_internal_format_storage(
1089 valid_texture_internal_format_storage_table,
1090 arraysize(valid_texture_internal_format_storage_table)),
1091 texture_mag_filter_mode(valid_texture_mag_filter_mode_table,
1092 arraysize(valid_texture_mag_filter_mode_table)),
1093 texture_min_filter_mode(valid_texture_min_filter_mode_table,
1094 arraysize(valid_texture_min_filter_mode_table)),
1095 texture_parameter(valid_texture_parameter_table,
1096 arraysize(valid_texture_parameter_table)),
1097 texture_pool(valid_texture_pool_table,
1098 arraysize(valid_texture_pool_table)),
1099 texture_target(valid_texture_target_table,
1100 arraysize(valid_texture_target_table)),
1101 texture_usage(valid_texture_usage_table,
1102 arraysize(valid_texture_usage_table)),
1103 texture_wrap_mode(valid_texture_wrap_mode_table,
1104 arraysize(valid_texture_wrap_mode_table)),
1105 transform_feedback_bind_target(
1106 valid_transform_feedback_bind_target_table,
1107 arraysize(valid_transform_feedback_bind_target_table)),
1108 transform_feedback_primitive_mode(
1109 valid_transform_feedback_primitive_mode_table,
1110 arraysize(valid_transform_feedback_primitive_mode_table)),
1111 uniform_block_parameter(valid_uniform_block_parameter_table,
1112 arraysize(valid_uniform_block_parameter_table)),
1113 uniform_parameter(valid_uniform_parameter_table,
1114 arraysize(valid_uniform_parameter_table)),
1115 value_buffer_target(valid_value_buffer_target_table,
1116 arraysize(valid_value_buffer_target_table)),
1117 vertex_attrib_i_type(valid_vertex_attrib_i_type_table,
1118 arraysize(valid_vertex_attrib_i_type_table)),
1119 vertex_attrib_size(valid_vertex_attrib_size_table,
1120 arraysize(valid_vertex_attrib_size_table)),
1121 vertex_attrib_type(valid_vertex_attrib_type_table,
1122 arraysize(valid_vertex_attrib_type_table)),
1123 vertex_attribute(valid_vertex_attribute_table,
1124 arraysize(valid_vertex_attribute_table)),
1125 vertex_pointer(valid_vertex_pointer_table,
1126 arraysize(valid_vertex_pointer_table)) {}
1128 void Validators::UpdateValuesES3() {
1129 attachment.AddValues(valid_attachment_table_es3,
1130 arraysize(valid_attachment_table_es3));
1131 buffer_parameter.AddValues(valid_buffer_parameter_table_es3,
1132 arraysize(valid_buffer_parameter_table_es3));
1133 buffer_target.AddValues(valid_buffer_target_table_es3,
1134 arraysize(valid_buffer_target_table_es3));
1135 buffer_usage.AddValues(valid_buffer_usage_table_es3,
1136 arraysize(valid_buffer_usage_table_es3));
1137 capability.AddValues(valid_capability_table_es3,
1138 arraysize(valid_capability_table_es3));
1139 compressed_texture_format.AddValues(
1140 valid_compressed_texture_format_table_es3,
1141 arraysize(valid_compressed_texture_format_table_es3));
1142 equation.AddValues(valid_equation_table_es3,
1143 arraysize(valid_equation_table_es3));
1144 frame_buffer_parameter.AddValues(
1145 valid_frame_buffer_parameter_table_es3,
1146 arraysize(valid_frame_buffer_parameter_table_es3));
1147 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3,
1148 arraysize(valid_frame_buffer_target_table_es3));
1149 g_l_state.AddValues(valid_g_l_state_table_es3,
1150 arraysize(valid_g_l_state_table_es3));
1151 get_tex_param_target.AddValues(
1152 valid_get_tex_param_target_table_es3,
1153 arraysize(valid_get_tex_param_target_table_es3));
1154 hint_target.AddValues(valid_hint_target_table_es3,
1155 arraysize(valid_hint_target_table_es3));
1156 index_type.AddValues(valid_index_type_table_es3,
1157 arraysize(valid_index_type_table_es3));
1158 pixel_store.AddValues(valid_pixel_store_table_es3,
1159 arraysize(valid_pixel_store_table_es3));
1160 pixel_type.AddValues(valid_pixel_type_table_es3,
1161 arraysize(valid_pixel_type_table_es3));
1162 program_parameter.AddValues(valid_program_parameter_table_es3,
1163 arraysize(valid_program_parameter_table_es3));
1164 read_pixel_format.RemoveValues(
1165 deprecated_read_pixel_format_table_es3,
1166 arraysize(deprecated_read_pixel_format_table_es3));
1167 read_pixel_format.AddValues(valid_read_pixel_format_table_es3,
1168 arraysize(valid_read_pixel_format_table_es3));
1169 read_pixel_type.RemoveValues(deprecated_read_pixel_type_table_es3,
1170 arraysize(deprecated_read_pixel_type_table_es3));
1171 read_pixel_type.AddValues(valid_read_pixel_type_table_es3,
1172 arraysize(valid_read_pixel_type_table_es3));
1173 render_buffer_format.AddValues(
1174 valid_render_buffer_format_table_es3,
1175 arraysize(valid_render_buffer_format_table_es3));
1176 render_buffer_parameter.AddValues(
1177 valid_render_buffer_parameter_table_es3,
1178 arraysize(valid_render_buffer_parameter_table_es3));
1179 texture_bind_target.AddValues(valid_texture_bind_target_table_es3,
1180 arraysize(valid_texture_bind_target_table_es3));
1181 texture_format.AddValues(valid_texture_format_table_es3,
1182 arraysize(valid_texture_format_table_es3));
1183 texture_internal_format.AddValues(
1184 valid_texture_internal_format_table_es3,
1185 arraysize(valid_texture_internal_format_table_es3));
1186 texture_internal_format_storage.RemoveValues(
1187 deprecated_texture_internal_format_storage_table_es3,
1188 arraysize(deprecated_texture_internal_format_storage_table_es3));
1189 texture_internal_format_storage.AddValues(
1190 valid_texture_internal_format_storage_table_es3,
1191 arraysize(valid_texture_internal_format_storage_table_es3));
1192 texture_parameter.AddValues(valid_texture_parameter_table_es3,
1193 arraysize(valid_texture_parameter_table_es3));
1194 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3,
1195 arraysize(valid_vertex_attrib_type_table_es3));
1196 vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
1197 arraysize(valid_vertex_attribute_table_es3));
1200 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_