// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is auto-generated from // gpu/command_buffer/build_gles2_cmd_buffer.py // It's formatted by clang-format using chromium coding style: // clang-format -i -style=chromium filename // DO NOT EDIT! #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_AUTOGEN_H_ #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_AUTOGEN_H_ ValueValidator attachment; class BackbufferAttachmentValidator { public: bool IsValid(const GLenum value) const; }; BackbufferAttachmentValidator backbuffer_attachment; class BlitFilterValidator { public: bool IsValid(const GLenum value) const; }; BlitFilterValidator blit_filter; class BufferModeValidator { public: bool IsValid(const GLenum value) const; }; BufferModeValidator buffer_mode; class BufferParameterValidator { public: bool IsValid(const GLenum value) const; BufferParameterValidator(); void SetIsES3(bool is_es3) { is_es3_ = is_es3; } private: bool is_es3_; }; BufferParameterValidator buffer_parameter; class BufferParameter64Validator { public: bool IsValid(const GLenum value) const; }; BufferParameter64Validator buffer_parameter_64; class BufferTargetValidator { public: bool IsValid(const GLenum value) const; BufferTargetValidator(); void SetIsES3(bool is_es3) { is_es3_ = is_es3; } private: bool is_es3_; }; BufferTargetValidator buffer_target; class BufferUsageValidator { public: bool IsValid(const GLenum value) const; BufferUsageValidator(); void SetIsES3(bool is_es3) { is_es3_ = is_es3; } private: bool is_es3_; }; BufferUsageValidator buffer_usage; ValueValidator bufferfi; class BufferfvValidator { public: bool IsValid(const GLenum value) const; }; BufferfvValidator bufferfv; class BufferivValidator { public: bool IsValid(const GLenum value) const; }; BufferivValidator bufferiv; ValueValidator bufferuiv; ValueValidator capability; class CmpFunctionValidator { public: bool IsValid(const GLenum value) const; }; CmpFunctionValidator cmp_function; ValueValidator compressed_texture_format; ValueValidator coverage_modulation_components; class DrawModeValidator { public: bool IsValid(const GLenum value) const; }; DrawModeValidator draw_mode; ValueValidator dst_blend_factor; ValueValidator equation; class FaceModeValidator { public: bool IsValid(const GLenum value) const; }; FaceModeValidator face_mode; class FaceTypeValidator { public: bool IsValid(const GLenum value) const; }; FaceTypeValidator face_type; ValueValidator frame_buffer_parameter; ValueValidator frame_buffer_target; ValueValidator g_l_state; class GetMaxIndexTypeValidator { public: bool IsValid(const GLenum value) const; }; GetMaxIndexTypeValidator get_max_index_type; ValueValidator get_tex_param_target; class HintModeValidator { public: bool IsValid(const GLenum value) const; }; HintModeValidator hint_mode; ValueValidator hint_target; ValueValidator image_internal_format; ValueValidator image_usage; ValueValidator index_type; class IndexedBufferTargetValidator { public: bool IsValid(const GLenum value) const; }; IndexedBufferTargetValidator indexed_buffer_target; class IndexedGLStateValidator { public: bool IsValid(const GLenum value) const; }; IndexedGLStateValidator indexed_g_l_state; class InternalFormatParameterValidator { public: bool IsValid(const GLenum value) const; }; InternalFormatParameterValidator internal_format_parameter; class MapBufferAccessValidator { public: bool IsValid(const GLenum value) const; }; MapBufferAccessValidator map_buffer_access; class MatrixModeValidator { public: bool IsValid(const GLenum value) const; }; MatrixModeValidator matrix_mode; class PathCoordTypeValidator { public: bool IsValid(const GLenum value) const; }; PathCoordTypeValidator path_coord_type; class PathCoverModeValidator { public: bool IsValid(const GLenum value) const; }; PathCoverModeValidator path_cover_mode; class PathFillModeValidator { public: bool IsValid(const GLenum value) const; }; PathFillModeValidator path_fill_mode; class PathFragmentInputGenModeValidator { public: bool IsValid(const GLenum value) const; }; PathFragmentInputGenModeValidator path_fragment_input_gen_mode; class PathInstancedCoverModeValidator { public: bool IsValid(const GLenum value) const; }; PathInstancedCoverModeValidator path_instanced_cover_mode; class PathNameTypeValidator { public: bool IsValid(const GLenum value) const; }; PathNameTypeValidator path_name_type; class PathParameterValidator { public: bool IsValid(const GLenum value) const; }; PathParameterValidator path_parameter; class PathParameterCapValuesValidator { public: bool IsValid(const GLint value) const; }; PathParameterCapValuesValidator path_parameter_cap_values; class PathParameterJoinValuesValidator { public: bool IsValid(const GLint value) const; }; PathParameterJoinValuesValidator path_parameter_join_values; class PathTransformTypeValidator { public: bool IsValid(const GLenum value) const; }; PathTransformTypeValidator path_transform_type; ValueValidator pixel_store; class PixelStoreAlignmentValidator { public: bool IsValid(const GLint value) const; }; PixelStoreAlignmentValidator pixel_store_alignment; ValueValidator pixel_type; class ProgramParameterValidator { public: bool IsValid(const GLenum value) const; ProgramParameterValidator(); void SetIsES3(bool is_es3) { is_es3_ = is_es3; } private: bool is_es3_; }; ProgramParameterValidator program_parameter; class QueryObjectParameterValidator { public: bool IsValid(const GLenum value) const; }; QueryObjectParameterValidator query_object_parameter; class QueryTargetValidator { public: bool IsValid(const GLenum value) const; }; QueryTargetValidator query_target; class ReadBufferValidator { public: bool IsValid(const GLenum value) const; }; ReadBufferValidator read_buffer; ValueValidator read_pixel_format; ValueValidator read_pixel_type; ValueValidator render_buffer_format; ValueValidator render_buffer_parameter; ValueValidator render_buffer_target; class ResetStatusValidator { public: bool IsValid(const GLenum value) const; }; ResetStatusValidator reset_status; class SamplerParameterValidator { public: bool IsValid(const GLenum value) const; }; SamplerParameterValidator sampler_parameter; ValueValidator shader_binary_format; class ShaderParameterValidator { public: bool IsValid(const GLenum value) const; }; ShaderParameterValidator shader_parameter; class ShaderPrecisionValidator { public: bool IsValid(const GLenum value) const; }; ShaderPrecisionValidator shader_precision; class ShaderTypeValidator { public: bool IsValid(const GLenum value) const; }; ShaderTypeValidator shader_type; ValueValidator src_blend_factor; class StencilOpValidator { public: bool IsValid(const GLenum value) const; }; StencilOpValidator stencil_op; class StringTypeValidator { public: bool IsValid(const GLenum value) const; }; StringTypeValidator string_type; ValueValidator subscription_target; ValueValidator sync_flush_flags; class SyncParameterValidator { public: bool IsValid(const GLenum value) const; }; SyncParameterValidator sync_parameter; class Texture3DTargetValidator { public: bool IsValid(const GLenum value) const; }; Texture3DTargetValidator texture_3_d_target; ValueValidator texture_bind_target; class TextureCompareFuncValidator { public: bool IsValid(const GLenum value) const; }; TextureCompareFuncValidator texture_compare_func; ValueValidator texture_compare_mode; ValueValidator texture_format; ValueValidator texture_internal_format; ValueValidator texture_internal_format_storage; class TextureMagFilterModeValidator { public: bool IsValid(const GLenum value) const; }; TextureMagFilterModeValidator texture_mag_filter_mode; class TextureMinFilterModeValidator { public: bool IsValid(const GLenum value) const; }; TextureMinFilterModeValidator texture_min_filter_mode; ValueValidator texture_parameter; ValueValidator texture_target; class TextureUsageValidator { public: bool IsValid(const GLenum value) const; }; TextureUsageValidator texture_usage; class TextureWrapModeValidator { public: bool IsValid(const GLenum value) const; }; TextureWrapModeValidator texture_wrap_mode; ValueValidator transform_feedback_bind_target; class TransformFeedbackPrimitiveModeValidator { public: bool IsValid(const GLenum value) const; }; TransformFeedbackPrimitiveModeValidator transform_feedback_primitive_mode; class UniformBlockParameterValidator { public: bool IsValid(const GLenum value) const; }; UniformBlockParameterValidator uniform_block_parameter; class UniformParameterValidator { public: bool IsValid(const GLenum value) const; }; UniformParameterValidator uniform_parameter; ValueValidator value_buffer_target; class VertexAttribITypeValidator { public: bool IsValid(const GLenum value) const; }; VertexAttribITypeValidator vertex_attrib_i_type; ValueValidator vertex_attrib_type; ValueValidator vertex_attribute; ValueValidator vertex_pointer; #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_AUTOGEN_H_