| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 }; | 964 }; |
| 965 | 965 |
| 966 static const GLenum valid_texture_bind_target_table[] = { | 966 static const GLenum valid_texture_bind_target_table[] = { |
| 967 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, | 967 GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, |
| 968 }; | 968 }; |
| 969 | 969 |
| 970 static const GLenum valid_texture_bind_target_table_es3[] = { | 970 static const GLenum valid_texture_bind_target_table_es3[] = { |
| 971 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY, | 971 GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY, |
| 972 }; | 972 }; |
| 973 | 973 |
| 974 bool Validators::TextureBufferUsageValidator::IsValid( |
| 975 const GLenum value) const { |
| 976 switch (value) { |
| 977 case GL_NONE: |
| 978 case GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM: |
| 979 return true; |
| 980 } |
| 981 return false; |
| 982 }; |
| 983 |
| 974 bool Validators::TextureCompareFuncValidator::IsValid( | 984 bool Validators::TextureCompareFuncValidator::IsValid( |
| 975 const GLenum value) const { | 985 const GLenum value) const { |
| 976 switch (value) { | 986 switch (value) { |
| 977 case GL_LEQUAL: | 987 case GL_LEQUAL: |
| 978 case GL_GEQUAL: | 988 case GL_GEQUAL: |
| 979 case GL_LESS: | 989 case GL_LESS: |
| 980 case GL_GREATER: | 990 case GL_GREATER: |
| 981 case GL_EQUAL: | 991 case GL_EQUAL: |
| 982 case GL_NOTEQUAL: | 992 case GL_NOTEQUAL: |
| 983 case GL_ALWAYS: | 993 case GL_ALWAYS: |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 case GL_NEAREST_MIPMAP_NEAREST: | 1167 case GL_NEAREST_MIPMAP_NEAREST: |
| 1158 case GL_LINEAR_MIPMAP_NEAREST: | 1168 case GL_LINEAR_MIPMAP_NEAREST: |
| 1159 case GL_NEAREST_MIPMAP_LINEAR: | 1169 case GL_NEAREST_MIPMAP_LINEAR: |
| 1160 case GL_LINEAR_MIPMAP_LINEAR: | 1170 case GL_LINEAR_MIPMAP_LINEAR: |
| 1161 return true; | 1171 return true; |
| 1162 } | 1172 } |
| 1163 return false; | 1173 return false; |
| 1164 }; | 1174 }; |
| 1165 | 1175 |
| 1166 static const GLenum valid_texture_parameter_table[] = { | 1176 static const GLenum valid_texture_parameter_table[] = { |
| 1167 GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, | 1177 GL_TEXTURE_MAG_FILTER, |
| 1178 GL_TEXTURE_MIN_FILTER, |
| 1179 GL_TEXTURE_WRAP_S, |
| 1168 GL_TEXTURE_WRAP_T, | 1180 GL_TEXTURE_WRAP_T, |
| 1181 GL_TEXTURE_BUFFER_USAGE_CHROMIUM, |
| 1169 }; | 1182 }; |
| 1170 | 1183 |
| 1171 static const GLenum valid_texture_parameter_table_es3[] = { | 1184 static const GLenum valid_texture_parameter_table_es3[] = { |
| 1172 GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_COMPARE_FUNC, | 1185 GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_COMPARE_FUNC, |
| 1173 GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_IMMUTABLE_FORMAT, | 1186 GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_IMMUTABLE_FORMAT, |
| 1174 GL_TEXTURE_IMMUTABLE_LEVELS, GL_TEXTURE_MAX_LEVEL, | 1187 GL_TEXTURE_IMMUTABLE_LEVELS, GL_TEXTURE_MAX_LEVEL, |
| 1175 GL_TEXTURE_MAX_LOD, GL_TEXTURE_MIN_LOD, | 1188 GL_TEXTURE_MAX_LOD, GL_TEXTURE_MIN_LOD, |
| 1176 GL_TEXTURE_WRAP_R, | 1189 GL_TEXTURE_WRAP_R, |
| 1177 }; | 1190 }; |
| 1178 | 1191 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); | 1544 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ETC2); |
| 1532 texture_internal_format_storage.AddValue( | 1545 texture_internal_format_storage.AddValue( |
| 1533 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1546 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1534 texture_internal_format_storage.AddValue( | 1547 texture_internal_format_storage.AddValue( |
| 1535 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); | 1548 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2); |
| 1536 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); | 1549 texture_internal_format_storage.AddValue(GL_COMPRESSED_RGBA8_ETC2_EAC); |
| 1537 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); | 1550 texture_internal_format_storage.AddValue(GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC); |
| 1538 } | 1551 } |
| 1539 | 1552 |
| 1540 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1553 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |