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
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
[] = {
17 GL_STENCIL_ATTACHMENT
,
20 static const GLenum valid_backbuffer_attachment_table
[] = {
26 static const GLenum valid_blit_filter_table
[] = {
31 static const GLenum valid_buffer_mode_table
[] = {
32 GL_INTERLEAVED_ATTRIBS
,
36 static const GLenum valid_buffer_parameter_table
[] = {
41 static const GLenum valid_buffer_target_table
[] = {
43 GL_ELEMENT_ARRAY_BUFFER
,
46 static const GLenum valid_buffer_target_table_es3
[] = {
50 GL_PIXEL_UNPACK_BUFFER
,
51 GL_TRANSFORM_FEEDBACK_BUFFER
,
55 static const GLenum valid_buffer_usage_table
[] = {
61 static const GLenum valid_bufferfi_table
[] = {
65 static const GLenum valid_bufferfv_table
[] = {
70 static const GLenum valid_bufferiv_table
[] = {
75 static const GLenum valid_bufferuiv_table
[] = {
79 static const GLenum valid_capability_table
[] = {
84 GL_POLYGON_OFFSET_FILL
,
85 GL_SAMPLE_ALPHA_TO_COVERAGE
,
91 static const GLenum valid_capability_table_es3
[] = {
92 GL_RASTERIZER_DISCARD
,
95 static const GLenum valid_cmp_function_table
[] = {
106 static const GLenum valid_draw_mode_table
[] = {
116 static const GLenum valid_dst_blend_factor_table
[] = {
120 GL_ONE_MINUS_SRC_COLOR
,
122 GL_ONE_MINUS_DST_COLOR
,
124 GL_ONE_MINUS_SRC_ALPHA
,
126 GL_ONE_MINUS_DST_ALPHA
,
128 GL_ONE_MINUS_CONSTANT_COLOR
,
130 GL_ONE_MINUS_CONSTANT_ALPHA
,
133 static const GLenum valid_equation_table
[] = {
136 GL_FUNC_REVERSE_SUBTRACT
,
139 static const GLenum valid_face_mode_table
[] = {
144 static const GLenum valid_face_type_table
[] = {
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
[] = {
161 static const GLenum valid_g_l_state_table
[] = {
163 GL_ALIASED_LINE_WIDTH_RANGE
,
164 GL_ALIASED_POINT_SIZE_RANGE
,
166 GL_ARRAY_BUFFER_BINDING
,
168 GL_COMPRESSED_TEXTURE_FORMATS
,
172 GL_ELEMENT_ARRAY_BUFFER_BINDING
,
173 GL_FRAMEBUFFER_BINDING
,
174 GL_GENERATE_MIPMAP_HINT
,
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
,
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
,
193 GL_RENDERBUFFER_BINDING
,
195 GL_SAMPLE_COVERAGE_INVERT
,
196 GL_SAMPLE_COVERAGE_VALUE
,
199 GL_SHADER_BINARY_FORMATS
,
203 GL_TEXTURE_BINDING_2D
,
204 GL_TEXTURE_BINDING_CUBE_MAP
,
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
,
213 GL_BLEND_EQUATION_RGB
,
214 GL_BLEND_EQUATION_ALPHA
,
219 GL_COLOR_CLEAR_VALUE
,
220 GL_DEPTH_CLEAR_VALUE
,
221 GL_STENCIL_CLEAR_VALUE
,
228 GL_POLYGON_OFFSET_FACTOR
,
229 GL_POLYGON_OFFSET_UNITS
,
232 GL_STENCIL_VALUE_MASK
,
233 GL_STENCIL_BACK_FUNC
,
235 GL_STENCIL_BACK_VALUE_MASK
,
236 GL_STENCIL_WRITEMASK
,
237 GL_STENCIL_BACK_WRITEMASK
,
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
,
248 GL_POLYGON_OFFSET_FILL
,
249 GL_SAMPLE_ALPHA_TO_COVERAGE
,
253 GL_RASTERIZER_DISCARD
,
256 static const GLenum valid_get_max_index_type_table
[] = {
262 static const GLenum valid_get_tex_param_target_table
[] = {
267 static const GLenum valid_hint_mode_table
[] = {
273 static const GLenum valid_hint_target_table
[] = {
274 GL_GENERATE_MIPMAP_HINT
,
277 static const GLenum valid_image_internal_format_table
[] = {
282 static const GLenum valid_image_usage_table
[] = {
287 static const GLenum valid_index_type_table
[] = {
292 static const GLenum valid_indexed_buffer_target_table
[] = {
293 GL_TRANSFORM_FEEDBACK_BUFFER
,
297 static const GLenum valid_map_buffer_access_table
[] = {
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
[] = {
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
[] = {
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
[] = {
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
[] = {
354 GL_ACTIVE_ATTRIBUTES
,
355 GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
,
357 GL_ACTIVE_UNIFORM_MAX_LENGTH
,
360 static const GLenum valid_query_object_parameter_table
[] = {
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
[] = {
385 static const GLenum valid_read_pixel_type_table
[] = {
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
[] = {
396 GL_DEPTH_COMPONENT16
,
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
[] = {
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
,
430 GL_TEXTURE_COMPARE_MODE
,
431 GL_TEXTURE_COMPARE_FUNC
,
434 static const GLenum valid_shader_parameter_table
[] = {
439 GL_SHADER_SOURCE_LENGTH
,
440 GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
,
443 static const GLenum valid_shader_precision_table
[] = {
452 static const GLenum valid_shader_type_table
[] = {
457 static const GLenum valid_src_blend_factor_table
[] = {
461 GL_ONE_MINUS_SRC_COLOR
,
463 GL_ONE_MINUS_DST_COLOR
,
465 GL_ONE_MINUS_SRC_ALPHA
,
467 GL_ONE_MINUS_DST_ALPHA
,
469 GL_ONE_MINUS_CONSTANT_COLOR
,
471 GL_ONE_MINUS_CONSTANT_ALPHA
,
472 GL_SRC_ALPHA_SATURATE
,
475 static const GLenum valid_stencil_op_table
[] = {
486 static const GLenum valid_string_type_table
[] = {
490 GL_SHADING_LANGUAGE_VERSION
,
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
[] = {
510 static const GLenum valid_texture_3_d_target_table
[] = {
515 static const GLenum valid_texture_bind_target_table
[] = {
520 static const GLenum valid_texture_bind_target_table_es3
[] = {
525 static const GLenum valid_texture_format_table
[] = {
533 static const GLenum valid_texture_format_table_es3
[] = {
544 static const GLenum valid_texture_internal_format_table
[] = {
552 static const GLenum valid_texture_internal_format_table_es3
[] = {
602 GL_DEPTH_COMPONENT16
,
603 GL_DEPTH_COMPONENT24
,
604 GL_DEPTH_COMPONENT32F
,
606 GL_DEPTH32F_STENCIL8
,
609 static const GLenum valid_texture_internal_format_storage_table
[] = {
615 GL_LUMINANCE8_ALPHA8_EXT
,
620 static const GLenum valid_texture_internal_format_storage_table_es3
[] = {
665 GL_DEPTH_COMPONENT16
,
666 GL_DEPTH_COMPONENT24
,
667 GL_DEPTH_COMPONENT32F
,
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
[] = {
685 GL_LUMINANCE8_ALPHA8_EXT
,
688 GL_LUMINANCE_ALPHA16F_EXT
,
691 GL_LUMINANCE_ALPHA32F_EXT
,
694 static const GLenum valid_texture_mag_filter_mode_table
[] = {
699 static const GLenum valid_texture_min_filter_mode_table
[] = {
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
,
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
[] = {
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
[] = {
733 GL_FRAMEBUFFER_ATTACHMENT_ANGLE
,
736 static const GLenum valid_texture_wrap_mode_table
[] = {
742 static const GLenum valid_transform_feedback_bind_target_table
[] = {
743 GL_TRANSFORM_FEEDBACK
,
746 static const GLenum valid_transform_feedback_primitive_mode_table
[] = {
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
[] = {
765 GL_UNIFORM_NAME_LENGTH
,
766 GL_UNIFORM_BLOCK_INDEX
,
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
[] = {
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_