Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / gpu / command_buffer / service / gles2_cmd_validation_implementation_autogen.h
blob22c5be79a64b594a0d260230ab6d2144c7759cf7
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,
16 GL_DEPTH_ATTACHMENT,
17 GL_STENCIL_ATTACHMENT,
20 static const GLenum valid_backbuffer_attachment_table[] = {
21 GL_COLOR_EXT,
22 GL_DEPTH_EXT,
23 GL_STENCIL_EXT,
26 static const GLenum valid_blit_filter_table[] = {
27 GL_NEAREST,
28 GL_LINEAR,
31 static const GLenum valid_buffer_mode_table[] = {
32 GL_INTERLEAVED_ATTRIBS,
33 GL_SEPARATE_ATTRIBS,
36 static const GLenum valid_buffer_parameter_table[] = {
37 GL_BUFFER_SIZE,
38 GL_BUFFER_USAGE,
41 static const GLenum valid_buffer_target_table[] = {
42 GL_ARRAY_BUFFER,
43 GL_ELEMENT_ARRAY_BUFFER,
46 static const GLenum valid_buffer_target_table_es3[] = {
47 GL_COPY_READ_BUFFER,
48 GL_COPY_WRITE_BUFFER,
49 GL_PIXEL_PACK_BUFFER,
50 GL_PIXEL_UNPACK_BUFFER,
51 GL_TRANSFORM_FEEDBACK_BUFFER,
52 GL_UNIFORM_BUFFER,
55 static const GLenum valid_buffer_usage_table[] = {
56 GL_STREAM_DRAW,
57 GL_STATIC_DRAW,
58 GL_DYNAMIC_DRAW,
61 static const GLenum valid_bufferfi_table[] = {
62 GL_DEPTH_STENCIL,
65 static const GLenum valid_bufferfv_table[] = {
66 GL_COLOR,
67 GL_DEPTH,
70 static const GLenum valid_bufferiv_table[] = {
71 GL_COLOR,
72 GL_STENCIL,
75 static const GLenum valid_bufferuiv_table[] = {
76 GL_COLOR,
79 static const GLenum valid_capability_table[] = {
80 GL_BLEND,
81 GL_CULL_FACE,
82 GL_DEPTH_TEST,
83 GL_DITHER,
84 GL_POLYGON_OFFSET_FILL,
85 GL_SAMPLE_ALPHA_TO_COVERAGE,
86 GL_SAMPLE_COVERAGE,
87 GL_SCISSOR_TEST,
88 GL_STENCIL_TEST,
91 static const GLenum valid_capability_table_es3[] = {
92 GL_RASTERIZER_DISCARD,
95 static const GLenum valid_cmp_function_table[] = {
96 GL_NEVER,
97 GL_LESS,
98 GL_EQUAL,
99 GL_LEQUAL,
100 GL_GREATER,
101 GL_NOTEQUAL,
102 GL_GEQUAL,
103 GL_ALWAYS,
106 static const GLenum valid_draw_mode_table[] = {
107 GL_POINTS,
108 GL_LINE_STRIP,
109 GL_LINE_LOOP,
110 GL_LINES,
111 GL_TRIANGLE_STRIP,
112 GL_TRIANGLE_FAN,
113 GL_TRIANGLES,
116 static const GLenum valid_dst_blend_factor_table[] = {
117 GL_ZERO,
118 GL_ONE,
119 GL_SRC_COLOR,
120 GL_ONE_MINUS_SRC_COLOR,
121 GL_DST_COLOR,
122 GL_ONE_MINUS_DST_COLOR,
123 GL_SRC_ALPHA,
124 GL_ONE_MINUS_SRC_ALPHA,
125 GL_DST_ALPHA,
126 GL_ONE_MINUS_DST_ALPHA,
127 GL_CONSTANT_COLOR,
128 GL_ONE_MINUS_CONSTANT_COLOR,
129 GL_CONSTANT_ALPHA,
130 GL_ONE_MINUS_CONSTANT_ALPHA,
133 static const GLenum valid_equation_table[] = {
134 GL_FUNC_ADD,
135 GL_FUNC_SUBTRACT,
136 GL_FUNC_REVERSE_SUBTRACT,
139 static const GLenum valid_face_mode_table[] = {
140 GL_CW,
141 GL_CCW,
144 static const GLenum valid_face_type_table[] = {
145 GL_FRONT,
146 GL_BACK,
147 GL_FRONT_AND_BACK,
150 static const GLenum valid_frame_buffer_parameter_table[] = {
151 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
152 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
153 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
154 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
157 static const GLenum valid_frame_buffer_target_table[] = {
158 GL_FRAMEBUFFER,
161 static const GLenum valid_g_l_state_table[] = {
162 GL_ACTIVE_TEXTURE,
163 GL_ALIASED_LINE_WIDTH_RANGE,
164 GL_ALIASED_POINT_SIZE_RANGE,
165 GL_ALPHA_BITS,
166 GL_ARRAY_BUFFER_BINDING,
167 GL_BLUE_BITS,
168 GL_COMPRESSED_TEXTURE_FORMATS,
169 GL_CURRENT_PROGRAM,
170 GL_DEPTH_BITS,
171 GL_DEPTH_RANGE,
172 GL_ELEMENT_ARRAY_BUFFER_BINDING,
173 GL_FRAMEBUFFER_BINDING,
174 GL_GENERATE_MIPMAP_HINT,
175 GL_GREEN_BITS,
176 GL_IMPLEMENTATION_COLOR_READ_FORMAT,
177 GL_IMPLEMENTATION_COLOR_READ_TYPE,
178 GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
179 GL_MAX_CUBE_MAP_TEXTURE_SIZE,
180 GL_MAX_FRAGMENT_UNIFORM_VECTORS,
181 GL_MAX_RENDERBUFFER_SIZE,
182 GL_MAX_TEXTURE_IMAGE_UNITS,
183 GL_MAX_TEXTURE_SIZE,
184 GL_MAX_VARYING_VECTORS,
185 GL_MAX_VERTEX_ATTRIBS,
186 GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS,
187 GL_MAX_VERTEX_UNIFORM_VECTORS,
188 GL_MAX_VIEWPORT_DIMS,
189 GL_NUM_COMPRESSED_TEXTURE_FORMATS,
190 GL_NUM_SHADER_BINARY_FORMATS,
191 GL_PACK_ALIGNMENT,
192 GL_RED_BITS,
193 GL_RENDERBUFFER_BINDING,
194 GL_SAMPLE_BUFFERS,
195 GL_SAMPLE_COVERAGE_INVERT,
196 GL_SAMPLE_COVERAGE_VALUE,
197 GL_SAMPLES,
198 GL_SCISSOR_BOX,
199 GL_SHADER_BINARY_FORMATS,
200 GL_SHADER_COMPILER,
201 GL_SUBPIXEL_BITS,
202 GL_STENCIL_BITS,
203 GL_TEXTURE_BINDING_2D,
204 GL_TEXTURE_BINDING_CUBE_MAP,
205 GL_UNPACK_ALIGNMENT,
206 GL_UNPACK_FLIP_Y_CHROMIUM,
207 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
208 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
209 GL_BIND_GENERATES_RESOURCE_CHROMIUM,
210 GL_VERTEX_ARRAY_BINDING_OES,
211 GL_VIEWPORT,
212 GL_BLEND_COLOR,
213 GL_BLEND_EQUATION_RGB,
214 GL_BLEND_EQUATION_ALPHA,
215 GL_BLEND_SRC_RGB,
216 GL_BLEND_DST_RGB,
217 GL_BLEND_SRC_ALPHA,
218 GL_BLEND_DST_ALPHA,
219 GL_COLOR_CLEAR_VALUE,
220 GL_DEPTH_CLEAR_VALUE,
221 GL_STENCIL_CLEAR_VALUE,
222 GL_COLOR_WRITEMASK,
223 GL_CULL_FACE_MODE,
224 GL_DEPTH_FUNC,
225 GL_DEPTH_WRITEMASK,
226 GL_FRONT_FACE,
227 GL_LINE_WIDTH,
228 GL_POLYGON_OFFSET_FACTOR,
229 GL_POLYGON_OFFSET_UNITS,
230 GL_STENCIL_FUNC,
231 GL_STENCIL_REF,
232 GL_STENCIL_VALUE_MASK,
233 GL_STENCIL_BACK_FUNC,
234 GL_STENCIL_BACK_REF,
235 GL_STENCIL_BACK_VALUE_MASK,
236 GL_STENCIL_WRITEMASK,
237 GL_STENCIL_BACK_WRITEMASK,
238 GL_STENCIL_FAIL,
239 GL_STENCIL_PASS_DEPTH_FAIL,
240 GL_STENCIL_PASS_DEPTH_PASS,
241 GL_STENCIL_BACK_FAIL,
242 GL_STENCIL_BACK_PASS_DEPTH_FAIL,
243 GL_STENCIL_BACK_PASS_DEPTH_PASS,
244 GL_BLEND,
245 GL_CULL_FACE,
246 GL_DEPTH_TEST,
247 GL_DITHER,
248 GL_POLYGON_OFFSET_FILL,
249 GL_SAMPLE_ALPHA_TO_COVERAGE,
250 GL_SAMPLE_COVERAGE,
251 GL_SCISSOR_TEST,
252 GL_STENCIL_TEST,
253 GL_RASTERIZER_DISCARD,
256 static const GLenum valid_get_max_index_type_table[] = {
257 GL_UNSIGNED_BYTE,
258 GL_UNSIGNED_SHORT,
259 GL_UNSIGNED_INT,
262 static const GLenum valid_get_tex_param_target_table[] = {
263 GL_TEXTURE_2D,
264 GL_TEXTURE_CUBE_MAP,
267 static const GLenum valid_hint_mode_table[] = {
268 GL_FASTEST,
269 GL_NICEST,
270 GL_DONT_CARE,
273 static const GLenum valid_hint_target_table[] = {
274 GL_GENERATE_MIPMAP_HINT,
277 static const GLenum valid_image_internal_format_table[] = {
278 GL_RGB,
279 GL_RGBA,
282 static const GLenum valid_image_usage_table[] = {
283 GL_MAP_CHROMIUM,
284 GL_SCANOUT_CHROMIUM,
287 static const GLenum valid_index_type_table[] = {
288 GL_UNSIGNED_BYTE,
289 GL_UNSIGNED_SHORT,
292 static const GLenum valid_indexed_buffer_target_table[] = {
293 GL_TRANSFORM_FEEDBACK_BUFFER,
294 GL_UNIFORM_BUFFER,
297 static const GLenum valid_map_buffer_access_table[] = {
298 GL_MAP_READ_BIT,
299 GL_MAP_WRITE_BIT,
300 GL_MAP_INVALIDATE_RANGE_BIT,
301 GL_MAP_INVALIDATE_BUFFER_BIT,
302 GL_MAP_FLUSH_EXPLICIT_BIT,
303 GL_MAP_UNSYNCHRONIZED_BIT,
306 static const GLenum valid_matrix_mode_table[] = {
307 GL_PATH_PROJECTION_CHROMIUM,
308 GL_PATH_MODELVIEW_CHROMIUM,
311 static const GLenum valid_pixel_store_table[] = {
312 GL_PACK_ALIGNMENT,
313 GL_UNPACK_ALIGNMENT,
314 GL_UNPACK_FLIP_Y_CHROMIUM,
315 GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
316 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
319 static const GLint valid_pixel_store_alignment_table[] = {
326 static const GLenum valid_pixel_type_table[] = {
327 GL_UNSIGNED_BYTE,
328 GL_UNSIGNED_SHORT_5_6_5,
329 GL_UNSIGNED_SHORT_4_4_4_4,
330 GL_UNSIGNED_SHORT_5_5_5_1,
333 static const GLenum valid_pixel_type_table_es3[] = {
334 GL_BYTE,
335 GL_UNSIGNED_SHORT,
336 GL_SHORT,
337 GL_UNSIGNED_INT,
338 GL_INT,
339 GL_HALF_FLOAT,
340 GL_FLOAT,
341 GL_UNSIGNED_INT_2_10_10_10_REV,
342 GL_UNSIGNED_INT_10F_11F_11F_REV,
343 GL_UNSIGNED_INT_5_9_9_9_REV,
344 GL_UNSIGNED_INT_24_8,
345 GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
348 static const GLenum valid_program_parameter_table[] = {
349 GL_DELETE_STATUS,
350 GL_LINK_STATUS,
351 GL_VALIDATE_STATUS,
352 GL_INFO_LOG_LENGTH,
353 GL_ATTACHED_SHADERS,
354 GL_ACTIVE_ATTRIBUTES,
355 GL_ACTIVE_ATTRIBUTE_MAX_LENGTH,
356 GL_ACTIVE_UNIFORMS,
357 GL_ACTIVE_UNIFORM_MAX_LENGTH,
360 static const GLenum valid_query_object_parameter_table[] = {
361 GL_QUERY_RESULT_EXT,
362 GL_QUERY_RESULT_AVAILABLE_EXT,
365 static const GLenum valid_query_parameter_table[] = {
366 GL_CURRENT_QUERY_EXT,
369 static const GLenum valid_query_target_table[] = {
370 GL_ANY_SAMPLES_PASSED_EXT,
371 GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
372 GL_COMMANDS_ISSUED_CHROMIUM,
373 GL_LATENCY_QUERY_CHROMIUM,
374 GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
375 GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
376 GL_COMMANDS_COMPLETED_CHROMIUM,
379 static const GLenum valid_read_pixel_format_table[] = {
380 GL_ALPHA,
381 GL_RGB,
382 GL_RGBA,
385 static const GLenum valid_read_pixel_type_table[] = {
386 GL_UNSIGNED_BYTE,
387 GL_UNSIGNED_SHORT_5_6_5,
388 GL_UNSIGNED_SHORT_4_4_4_4,
389 GL_UNSIGNED_SHORT_5_5_5_1,
392 static const GLenum valid_render_buffer_format_table[] = {
393 GL_RGBA4,
394 GL_RGB565,
395 GL_RGB5_A1,
396 GL_DEPTH_COMPONENT16,
397 GL_STENCIL_INDEX8,
400 static const GLenum valid_render_buffer_parameter_table[] = {
401 GL_RENDERBUFFER_RED_SIZE,
402 GL_RENDERBUFFER_GREEN_SIZE,
403 GL_RENDERBUFFER_BLUE_SIZE,
404 GL_RENDERBUFFER_ALPHA_SIZE,
405 GL_RENDERBUFFER_DEPTH_SIZE,
406 GL_RENDERBUFFER_STENCIL_SIZE,
407 GL_RENDERBUFFER_WIDTH,
408 GL_RENDERBUFFER_HEIGHT,
409 GL_RENDERBUFFER_INTERNAL_FORMAT,
412 static const GLenum valid_render_buffer_target_table[] = {
413 GL_RENDERBUFFER,
416 static const GLenum valid_reset_status_table[] = {
417 GL_GUILTY_CONTEXT_RESET_ARB,
418 GL_INNOCENT_CONTEXT_RESET_ARB,
419 GL_UNKNOWN_CONTEXT_RESET_ARB,
422 static const GLenum valid_sampler_parameter_table[] = {
423 GL_TEXTURE_MAG_FILTER,
424 GL_TEXTURE_MIN_FILTER,
425 GL_TEXTURE_MIN_LOD,
426 GL_TEXTURE_MAX_LOD,
427 GL_TEXTURE_WRAP_S,
428 GL_TEXTURE_WRAP_T,
429 GL_TEXTURE_WRAP_R,
430 GL_TEXTURE_COMPARE_MODE,
431 GL_TEXTURE_COMPARE_FUNC,
434 static const GLenum valid_shader_parameter_table[] = {
435 GL_SHADER_TYPE,
436 GL_DELETE_STATUS,
437 GL_COMPILE_STATUS,
438 GL_INFO_LOG_LENGTH,
439 GL_SHADER_SOURCE_LENGTH,
440 GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
443 static const GLenum valid_shader_precision_table[] = {
444 GL_LOW_FLOAT,
445 GL_MEDIUM_FLOAT,
446 GL_HIGH_FLOAT,
447 GL_LOW_INT,
448 GL_MEDIUM_INT,
449 GL_HIGH_INT,
452 static const GLenum valid_shader_type_table[] = {
453 GL_VERTEX_SHADER,
454 GL_FRAGMENT_SHADER,
457 static const GLenum valid_src_blend_factor_table[] = {
458 GL_ZERO,
459 GL_ONE,
460 GL_SRC_COLOR,
461 GL_ONE_MINUS_SRC_COLOR,
462 GL_DST_COLOR,
463 GL_ONE_MINUS_DST_COLOR,
464 GL_SRC_ALPHA,
465 GL_ONE_MINUS_SRC_ALPHA,
466 GL_DST_ALPHA,
467 GL_ONE_MINUS_DST_ALPHA,
468 GL_CONSTANT_COLOR,
469 GL_ONE_MINUS_CONSTANT_COLOR,
470 GL_CONSTANT_ALPHA,
471 GL_ONE_MINUS_CONSTANT_ALPHA,
472 GL_SRC_ALPHA_SATURATE,
475 static const GLenum valid_stencil_op_table[] = {
476 GL_KEEP,
477 GL_ZERO,
478 GL_REPLACE,
479 GL_INCR,
480 GL_INCR_WRAP,
481 GL_DECR,
482 GL_DECR_WRAP,
483 GL_INVERT,
486 static const GLenum valid_string_type_table[] = {
487 GL_VENDOR,
488 GL_RENDERER,
489 GL_VERSION,
490 GL_SHADING_LANGUAGE_VERSION,
491 GL_EXTENSIONS,
494 static const GLenum valid_subscription_target_table[] = {
495 GL_MOUSE_POSITION_CHROMIUM,
498 static const GLbitfield valid_sync_flush_flags_table[] = {
499 GL_SYNC_FLUSH_COMMANDS_BIT,
503 static const GLenum valid_sync_parameter_table[] = {
504 GL_SYNC_STATUS,
505 GL_OBJECT_TYPE,
506 GL_SYNC_CONDITION,
507 GL_SYNC_FLAGS,
510 static const GLenum valid_texture_3_d_target_table[] = {
511 GL_TEXTURE_3D,
512 GL_TEXTURE_2D_ARRAY,
515 static const GLenum valid_texture_bind_target_table[] = {
516 GL_TEXTURE_2D,
517 GL_TEXTURE_CUBE_MAP,
520 static const GLenum valid_texture_bind_target_table_es3[] = {
521 GL_TEXTURE_3D,
522 GL_TEXTURE_2D_ARRAY,
525 static const GLenum valid_texture_format_table[] = {
526 GL_ALPHA,
527 GL_LUMINANCE,
528 GL_LUMINANCE_ALPHA,
529 GL_RGB,
530 GL_RGBA,
533 static const GLenum valid_texture_format_table_es3[] = {
534 GL_RED,
535 GL_RED_INTEGER,
536 GL_RG,
537 GL_RG_INTEGER,
538 GL_RGB_INTEGER,
539 GL_RGBA_INTEGER,
540 GL_DEPTH_COMPONENT,
541 GL_DEPTH_STENCIL,
544 static const GLenum valid_texture_internal_format_table[] = {
545 GL_ALPHA,
546 GL_LUMINANCE,
547 GL_LUMINANCE_ALPHA,
548 GL_RGB,
549 GL_RGBA,
552 static const GLenum valid_texture_internal_format_table_es3[] = {
553 GL_R8,
554 GL_R8_SNORM,
555 GL_R16F,
556 GL_R32F,
557 GL_R8UI,
558 GL_R8I,
559 GL_R16UI,
560 GL_R16I,
561 GL_R32UI,
562 GL_R32I,
563 GL_RG8,
564 GL_RG8_SNORM,
565 GL_RG16F,
566 GL_RG32F,
567 GL_RG8UI,
568 GL_RG8I,
569 GL_RG16UI,
570 GL_RG16I,
571 GL_RG32UI,
572 GL_RG32I,
573 GL_RGB8,
574 GL_SRGB8,
575 GL_RGB565,
576 GL_RGB8_SNORM,
577 GL_R11F_G11F_B10F,
578 GL_RGB9_E5,
579 GL_RGB16F,
580 GL_RGB32F,
581 GL_RGB8UI,
582 GL_RGB8I,
583 GL_RGB16UI,
584 GL_RGB16I,
585 GL_RGB32UI,
586 GL_RGB32I,
587 GL_RGBA8,
588 GL_SRGB8_ALPHA8,
589 GL_RGBA8_SNORM,
590 GL_RGB5_A1,
591 GL_RGBA4,
592 GL_RGB10_A2,
593 GL_RGBA16F,
594 GL_RGBA32F,
595 GL_RGBA8UI,
596 GL_RGBA8I,
597 GL_RGB10_A2UI,
598 GL_RGBA16UI,
599 GL_RGBA16I,
600 GL_RGBA32UI,
601 GL_RGBA32I,
602 GL_DEPTH_COMPONENT16,
603 GL_DEPTH_COMPONENT24,
604 GL_DEPTH_COMPONENT32F,
605 GL_DEPTH24_STENCIL8,
606 GL_DEPTH32F_STENCIL8,
609 static const GLenum valid_texture_internal_format_storage_table[] = {
610 GL_RGB565,
611 GL_RGBA4,
612 GL_RGB5_A1,
613 GL_ALPHA8_EXT,
614 GL_LUMINANCE8_EXT,
615 GL_LUMINANCE8_ALPHA8_EXT,
616 GL_RGB8_OES,
617 GL_RGBA8_OES,
620 static const GLenum valid_texture_internal_format_storage_table_es3[] = {
621 GL_R8,
622 GL_R8_SNORM,
623 GL_R16F,
624 GL_R32F,
625 GL_R8UI,
626 GL_R8I,
627 GL_R16UI,
628 GL_R16I,
629 GL_R32UI,
630 GL_R32I,
631 GL_RG8,
632 GL_RG8_SNORM,
633 GL_RG16F,
634 GL_RG32F,
635 GL_RG8UI,
636 GL_RG8I,
637 GL_RG16UI,
638 GL_RG16I,
639 GL_RG32UI,
640 GL_RG32I,
641 GL_SRGB8,
642 GL_RGB8_SNORM,
643 GL_R11F_G11F_B10F,
644 GL_RGB9_E5,
645 GL_RGB16F,
646 GL_RGB32F,
647 GL_RGB8UI,
648 GL_RGB8I,
649 GL_RGB16UI,
650 GL_RGB16I,
651 GL_RGB32UI,
652 GL_RGB32I,
653 GL_SRGB8_ALPHA8,
654 GL_RGBA8_SNORM,
655 GL_RGB10_A2,
656 GL_RGBA16F,
657 GL_RGBA32F,
658 GL_RGBA8UI,
659 GL_RGBA8I,
660 GL_RGB10_A2UI,
661 GL_RGBA16UI,
662 GL_RGBA16I,
663 GL_RGBA32UI,
664 GL_RGBA32I,
665 GL_DEPTH_COMPONENT16,
666 GL_DEPTH_COMPONENT24,
667 GL_DEPTH_COMPONENT32F,
668 GL_DEPTH24_STENCIL8,
669 GL_DEPTH32F_STENCIL8,
670 GL_COMPRESSED_R11_EAC,
671 GL_COMPRESSED_SIGNED_R11_EAC,
672 GL_COMPRESSED_RG11_EAC,
673 GL_COMPRESSED_SIGNED_RG11_EAC,
674 GL_COMPRESSED_RGB8_ETC2,
675 GL_COMPRESSED_SRGB8_ETC2,
676 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
677 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
678 GL_COMPRESSED_RGBA8_ETC2_EAC,
679 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
682 static const GLenum deprecated_texture_internal_format_storage_table_es3[] = {
683 GL_ALPHA8_EXT,
684 GL_LUMINANCE8_EXT,
685 GL_LUMINANCE8_ALPHA8_EXT,
686 GL_ALPHA16F_EXT,
687 GL_LUMINANCE16F_EXT,
688 GL_LUMINANCE_ALPHA16F_EXT,
689 GL_ALPHA32F_EXT,
690 GL_LUMINANCE32F_EXT,
691 GL_LUMINANCE_ALPHA32F_EXT,
694 static const GLenum valid_texture_mag_filter_mode_table[] = {
695 GL_NEAREST,
696 GL_LINEAR,
699 static const GLenum valid_texture_min_filter_mode_table[] = {
700 GL_NEAREST,
701 GL_LINEAR,
702 GL_NEAREST_MIPMAP_NEAREST,
703 GL_LINEAR_MIPMAP_NEAREST,
704 GL_NEAREST_MIPMAP_LINEAR,
705 GL_LINEAR_MIPMAP_LINEAR,
708 static const GLenum valid_texture_parameter_table[] = {
709 GL_TEXTURE_MAG_FILTER,
710 GL_TEXTURE_MIN_FILTER,
711 GL_TEXTURE_POOL_CHROMIUM,
712 GL_TEXTURE_WRAP_S,
713 GL_TEXTURE_WRAP_T,
716 static const GLenum valid_texture_pool_table[] = {
717 GL_TEXTURE_POOL_MANAGED_CHROMIUM,
718 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
721 static const GLenum valid_texture_target_table[] = {
722 GL_TEXTURE_2D,
723 GL_TEXTURE_CUBE_MAP_POSITIVE_X,
724 GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
725 GL_TEXTURE_CUBE_MAP_POSITIVE_Y,
726 GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
727 GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
728 GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
731 static const GLenum valid_texture_usage_table[] = {
732 GL_NONE,
733 GL_FRAMEBUFFER_ATTACHMENT_ANGLE,
736 static const GLenum valid_texture_wrap_mode_table[] = {
737 GL_CLAMP_TO_EDGE,
738 GL_MIRRORED_REPEAT,
739 GL_REPEAT,
742 static const GLenum valid_transform_feedback_bind_target_table[] = {
743 GL_TRANSFORM_FEEDBACK,
746 static const GLenum valid_transform_feedback_primitive_mode_table[] = {
747 GL_POINTS,
748 GL_LINES,
749 GL_TRIANGLES,
752 static const GLenum valid_uniform_block_parameter_table[] = {
753 GL_UNIFORM_BLOCK_BINDING,
754 GL_UNIFORM_BLOCK_DATA_SIZE,
755 GL_UNIFORM_BLOCK_NAME_LENGTH,
756 GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS,
757 GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES,
758 GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
759 GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
762 static const GLenum valid_uniform_parameter_table[] = {
763 GL_UNIFORM_SIZE,
764 GL_UNIFORM_TYPE,
765 GL_UNIFORM_NAME_LENGTH,
766 GL_UNIFORM_BLOCK_INDEX,
767 GL_UNIFORM_OFFSET,
768 GL_UNIFORM_ARRAY_STRIDE,
769 GL_UNIFORM_MATRIX_STRIDE,
770 GL_UNIFORM_IS_ROW_MAJOR,
773 static const GLenum valid_value_buffer_target_table[] = {
774 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
777 static const GLint valid_vertex_attrib_size_table[] = {
784 static const GLenum valid_vertex_attrib_type_table[] = {
785 GL_BYTE,
786 GL_UNSIGNED_BYTE,
787 GL_SHORT,
788 GL_UNSIGNED_SHORT,
789 GL_FLOAT,
792 static const GLenum valid_vertex_attribute_table[] = {
793 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED,
794 GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
795 GL_VERTEX_ATTRIB_ARRAY_ENABLED,
796 GL_VERTEX_ATTRIB_ARRAY_SIZE,
797 GL_VERTEX_ATTRIB_ARRAY_STRIDE,
798 GL_VERTEX_ATTRIB_ARRAY_TYPE,
799 GL_CURRENT_VERTEX_ATTRIB,
802 static const GLenum valid_vertex_pointer_table[] = {
803 GL_VERTEX_ATTRIB_ARRAY_POINTER,
806 Validators::Validators()
807 : attachment(valid_attachment_table, arraysize(valid_attachment_table)),
808 backbuffer_attachment(valid_backbuffer_attachment_table,
809 arraysize(valid_backbuffer_attachment_table)),
810 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)),
811 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)),
812 buffer_parameter(valid_buffer_parameter_table,
813 arraysize(valid_buffer_parameter_table)),
814 buffer_target(valid_buffer_target_table,
815 arraysize(valid_buffer_target_table)),
816 buffer_usage(valid_buffer_usage_table,
817 arraysize(valid_buffer_usage_table)),
818 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)),
819 bufferfv(valid_bufferfv_table, arraysize(valid_bufferfv_table)),
820 bufferiv(valid_bufferiv_table, arraysize(valid_bufferiv_table)),
821 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)),
822 capability(valid_capability_table, arraysize(valid_capability_table)),
823 cmp_function(valid_cmp_function_table,
824 arraysize(valid_cmp_function_table)),
825 compressed_texture_format(),
826 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)),
827 dst_blend_factor(valid_dst_blend_factor_table,
828 arraysize(valid_dst_blend_factor_table)),
829 equation(valid_equation_table, arraysize(valid_equation_table)),
830 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)),
831 face_type(valid_face_type_table, arraysize(valid_face_type_table)),
832 frame_buffer_parameter(valid_frame_buffer_parameter_table,
833 arraysize(valid_frame_buffer_parameter_table)),
834 frame_buffer_target(valid_frame_buffer_target_table,
835 arraysize(valid_frame_buffer_target_table)),
836 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)),
837 get_max_index_type(valid_get_max_index_type_table,
838 arraysize(valid_get_max_index_type_table)),
839 get_tex_param_target(valid_get_tex_param_target_table,
840 arraysize(valid_get_tex_param_target_table)),
841 hint_mode(valid_hint_mode_table, arraysize(valid_hint_mode_table)),
842 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)),
843 image_internal_format(valid_image_internal_format_table,
844 arraysize(valid_image_internal_format_table)),
845 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)),
846 index_type(valid_index_type_table, arraysize(valid_index_type_table)),
847 indexed_buffer_target(valid_indexed_buffer_target_table,
848 arraysize(valid_indexed_buffer_target_table)),
849 map_buffer_access(valid_map_buffer_access_table,
850 arraysize(valid_map_buffer_access_table)),
851 matrix_mode(valid_matrix_mode_table, arraysize(valid_matrix_mode_table)),
852 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)),
853 pixel_store_alignment(valid_pixel_store_alignment_table,
854 arraysize(valid_pixel_store_alignment_table)),
855 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)),
856 program_parameter(valid_program_parameter_table,
857 arraysize(valid_program_parameter_table)),
858 query_object_parameter(valid_query_object_parameter_table,
859 arraysize(valid_query_object_parameter_table)),
860 query_parameter(valid_query_parameter_table,
861 arraysize(valid_query_parameter_table)),
862 query_target(valid_query_target_table,
863 arraysize(valid_query_target_table)),
864 read_pixel_format(valid_read_pixel_format_table,
865 arraysize(valid_read_pixel_format_table)),
866 read_pixel_type(valid_read_pixel_type_table,
867 arraysize(valid_read_pixel_type_table)),
868 render_buffer_format(valid_render_buffer_format_table,
869 arraysize(valid_render_buffer_format_table)),
870 render_buffer_parameter(valid_render_buffer_parameter_table,
871 arraysize(valid_render_buffer_parameter_table)),
872 render_buffer_target(valid_render_buffer_target_table,
873 arraysize(valid_render_buffer_target_table)),
874 reset_status(valid_reset_status_table,
875 arraysize(valid_reset_status_table)),
876 sampler_parameter(valid_sampler_parameter_table,
877 arraysize(valid_sampler_parameter_table)),
878 shader_binary_format(),
879 shader_parameter(valid_shader_parameter_table,
880 arraysize(valid_shader_parameter_table)),
881 shader_precision(valid_shader_precision_table,
882 arraysize(valid_shader_precision_table)),
883 shader_type(valid_shader_type_table, arraysize(valid_shader_type_table)),
884 src_blend_factor(valid_src_blend_factor_table,
885 arraysize(valid_src_blend_factor_table)),
886 stencil_op(valid_stencil_op_table, arraysize(valid_stencil_op_table)),
887 string_type(valid_string_type_table, arraysize(valid_string_type_table)),
888 subscription_target(valid_subscription_target_table,
889 arraysize(valid_subscription_target_table)),
890 sync_flush_flags(valid_sync_flush_flags_table,
891 arraysize(valid_sync_flush_flags_table)),
892 sync_parameter(valid_sync_parameter_table,
893 arraysize(valid_sync_parameter_table)),
894 texture_3_d_target(valid_texture_3_d_target_table,
895 arraysize(valid_texture_3_d_target_table)),
896 texture_bind_target(valid_texture_bind_target_table,
897 arraysize(valid_texture_bind_target_table)),
898 texture_format(valid_texture_format_table,
899 arraysize(valid_texture_format_table)),
900 texture_internal_format(valid_texture_internal_format_table,
901 arraysize(valid_texture_internal_format_table)),
902 texture_internal_format_storage(
903 valid_texture_internal_format_storage_table,
904 arraysize(valid_texture_internal_format_storage_table)),
905 texture_mag_filter_mode(valid_texture_mag_filter_mode_table,
906 arraysize(valid_texture_mag_filter_mode_table)),
907 texture_min_filter_mode(valid_texture_min_filter_mode_table,
908 arraysize(valid_texture_min_filter_mode_table)),
909 texture_parameter(valid_texture_parameter_table,
910 arraysize(valid_texture_parameter_table)),
911 texture_pool(valid_texture_pool_table,
912 arraysize(valid_texture_pool_table)),
913 texture_target(valid_texture_target_table,
914 arraysize(valid_texture_target_table)),
915 texture_usage(valid_texture_usage_table,
916 arraysize(valid_texture_usage_table)),
917 texture_wrap_mode(valid_texture_wrap_mode_table,
918 arraysize(valid_texture_wrap_mode_table)),
919 transform_feedback_bind_target(
920 valid_transform_feedback_bind_target_table,
921 arraysize(valid_transform_feedback_bind_target_table)),
922 transform_feedback_primitive_mode(
923 valid_transform_feedback_primitive_mode_table,
924 arraysize(valid_transform_feedback_primitive_mode_table)),
925 uniform_block_parameter(valid_uniform_block_parameter_table,
926 arraysize(valid_uniform_block_parameter_table)),
927 uniform_parameter(valid_uniform_parameter_table,
928 arraysize(valid_uniform_parameter_table)),
929 value_buffer_target(valid_value_buffer_target_table,
930 arraysize(valid_value_buffer_target_table)),
931 vertex_attrib_size(valid_vertex_attrib_size_table,
932 arraysize(valid_vertex_attrib_size_table)),
933 vertex_attrib_type(valid_vertex_attrib_type_table,
934 arraysize(valid_vertex_attrib_type_table)),
935 vertex_attribute(valid_vertex_attribute_table,
936 arraysize(valid_vertex_attribute_table)),
937 vertex_pointer(valid_vertex_pointer_table,
938 arraysize(valid_vertex_pointer_table)) {
941 void Validators::UpdateValuesES3() {
942 buffer_target.AddValues(valid_buffer_target_table_es3,
943 arraysize(valid_buffer_target_table_es3));
944 capability.AddValues(valid_capability_table_es3,
945 arraysize(valid_capability_table_es3));
946 pixel_type.AddValues(valid_pixel_type_table_es3,
947 arraysize(valid_pixel_type_table_es3));
948 texture_bind_target.AddValues(valid_texture_bind_target_table_es3,
949 arraysize(valid_texture_bind_target_table_es3));
950 texture_format.AddValues(valid_texture_format_table_es3,
951 arraysize(valid_texture_format_table_es3));
952 texture_internal_format.AddValues(
953 valid_texture_internal_format_table_es3,
954 arraysize(valid_texture_internal_format_table_es3));
955 texture_internal_format_storage.RemoveValues(
956 deprecated_texture_internal_format_storage_table_es3,
957 arraysize(deprecated_texture_internal_format_storage_table_es3));
958 texture_internal_format_storage.AddValues(
959 valid_texture_internal_format_storage_table_es3,
960 arraysize(valid_texture_internal_format_storage_table_es3));
963 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGEN_H_