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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 bool Validators::FaceTypeValidator::IsValid(const GLenum value) const { | 231 bool Validators::FaceTypeValidator::IsValid(const GLenum value) const { |
232 switch (value) { | 232 switch (value) { |
233 case GL_FRONT: | 233 case GL_FRONT: |
234 case GL_BACK: | 234 case GL_BACK: |
235 case GL_FRONT_AND_BACK: | 235 case GL_FRONT_AND_BACK: |
236 return true; | 236 return true; |
237 } | 237 } |
238 return false; | 238 return false; |
239 }; | 239 }; |
240 | 240 |
241 static const GLenum valid_frame_buffer_parameter_table[] = { | 241 static const GLenum valid_framebuffer_parameter_table[] = { |
242 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, | 242 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, |
243 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, | 243 GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, |
244 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, | 244 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, |
245 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, | 245 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE, |
246 }; | 246 }; |
247 | 247 |
248 static const GLenum valid_frame_buffer_parameter_table_es3[] = { | 248 static const GLenum valid_framebuffer_parameter_table_es3[] = { |
249 GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, | 249 GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, |
250 GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, | 250 GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, |
251 GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, | 251 GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, |
252 GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, | 252 GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, |
253 GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, | 253 GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, |
254 GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, | 254 GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, |
255 GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, | 255 GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, |
256 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, | 256 GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, |
257 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER, | 257 GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER, |
258 }; | 258 }; |
259 | 259 |
260 static const GLenum valid_frame_buffer_target_table[] = { | 260 static const GLenum valid_framebuffer_target_table[] = { |
261 GL_FRAMEBUFFER, | 261 GL_FRAMEBUFFER, |
262 }; | 262 }; |
263 | 263 |
264 static const GLenum valid_frame_buffer_target_table_es3[] = { | 264 static const GLenum valid_framebuffer_target_table_es3[] = { |
265 GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, | 265 GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, |
266 }; | 266 }; |
267 | 267 |
268 static const GLenum valid_g_l_state_table[] = { | 268 static const GLenum valid_g_l_state_table[] = { |
269 GL_ACTIVE_TEXTURE, | 269 GL_ACTIVE_TEXTURE, |
270 GL_ALIASED_LINE_WIDTH_RANGE, | 270 GL_ALIASED_LINE_WIDTH_RANGE, |
271 GL_ALIASED_POINT_SIZE_RANGE, | 271 GL_ALIASED_POINT_SIZE_RANGE, |
272 GL_ALPHA_BITS, | 272 GL_ALPHA_BITS, |
273 GL_ARRAY_BUFFER_BINDING, | 273 GL_ARRAY_BUFFER_BINDING, |
274 GL_BLUE_BITS, | 274 GL_BLUE_BITS, |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)), | 1382 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)), |
1383 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)), | 1383 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)), |
1384 capability(valid_capability_table, arraysize(valid_capability_table)), | 1384 capability(valid_capability_table, arraysize(valid_capability_table)), |
1385 compressed_texture_format(), | 1385 compressed_texture_format(), |
1386 coverage_modulation_components( | 1386 coverage_modulation_components( |
1387 valid_coverage_modulation_components_table, | 1387 valid_coverage_modulation_components_table, |
1388 arraysize(valid_coverage_modulation_components_table)), | 1388 arraysize(valid_coverage_modulation_components_table)), |
1389 dst_blend_factor(valid_dst_blend_factor_table, | 1389 dst_blend_factor(valid_dst_blend_factor_table, |
1390 arraysize(valid_dst_blend_factor_table)), | 1390 arraysize(valid_dst_blend_factor_table)), |
1391 equation(valid_equation_table, arraysize(valid_equation_table)), | 1391 equation(valid_equation_table, arraysize(valid_equation_table)), |
1392 frame_buffer_parameter(valid_frame_buffer_parameter_table, | 1392 framebuffer_parameter(valid_framebuffer_parameter_table, |
1393 arraysize(valid_frame_buffer_parameter_table)), | 1393 arraysize(valid_framebuffer_parameter_table)), |
1394 frame_buffer_target(valid_frame_buffer_target_table, | 1394 framebuffer_target(valid_framebuffer_target_table, |
1395 arraysize(valid_frame_buffer_target_table)), | 1395 arraysize(valid_framebuffer_target_table)), |
1396 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), | 1396 g_l_state(valid_g_l_state_table, arraysize(valid_g_l_state_table)), |
1397 get_tex_param_target(valid_get_tex_param_target_table, | 1397 get_tex_param_target(valid_get_tex_param_target_table, |
1398 arraysize(valid_get_tex_param_target_table)), | 1398 arraysize(valid_get_tex_param_target_table)), |
1399 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)), | 1399 hint_target(valid_hint_target_table, arraysize(valid_hint_target_table)), |
1400 image_internal_format(valid_image_internal_format_table, | 1400 image_internal_format(valid_image_internal_format_table, |
1401 arraysize(valid_image_internal_format_table)), | 1401 arraysize(valid_image_internal_format_table)), |
1402 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)), | 1402 image_usage(valid_image_usage_table, arraysize(valid_image_usage_table)), |
1403 index_type(valid_index_type_table, arraysize(valid_index_type_table)), | 1403 index_type(valid_index_type_table, arraysize(valid_index_type_table)), |
1404 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), | 1404 pixel_store(valid_pixel_store_table, arraysize(valid_pixel_store_table)), |
1405 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), | 1405 pixel_type(valid_pixel_type_table, arraysize(valid_pixel_type_table)), |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 buffer_usage.SetIsES3(true); | 1467 buffer_usage.SetIsES3(true); |
1468 capability.AddValues(valid_capability_table_es3, | 1468 capability.AddValues(valid_capability_table_es3, |
1469 arraysize(valid_capability_table_es3)); | 1469 arraysize(valid_capability_table_es3)); |
1470 compressed_texture_format.AddValues( | 1470 compressed_texture_format.AddValues( |
1471 valid_compressed_texture_format_table_es3, | 1471 valid_compressed_texture_format_table_es3, |
1472 arraysize(valid_compressed_texture_format_table_es3)); | 1472 arraysize(valid_compressed_texture_format_table_es3)); |
1473 dst_blend_factor.AddValues(valid_dst_blend_factor_table_es3, | 1473 dst_blend_factor.AddValues(valid_dst_blend_factor_table_es3, |
1474 arraysize(valid_dst_blend_factor_table_es3)); | 1474 arraysize(valid_dst_blend_factor_table_es3)); |
1475 equation.AddValues(valid_equation_table_es3, | 1475 equation.AddValues(valid_equation_table_es3, |
1476 arraysize(valid_equation_table_es3)); | 1476 arraysize(valid_equation_table_es3)); |
1477 frame_buffer_parameter.AddValues( | 1477 framebuffer_parameter.AddValues( |
1478 valid_frame_buffer_parameter_table_es3, | 1478 valid_framebuffer_parameter_table_es3, |
1479 arraysize(valid_frame_buffer_parameter_table_es3)); | 1479 arraysize(valid_framebuffer_parameter_table_es3)); |
1480 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3, | 1480 framebuffer_target.AddValues(valid_framebuffer_target_table_es3, |
1481 arraysize(valid_frame_buffer_target_table_es3)); | 1481 arraysize(valid_framebuffer_target_table_es3)); |
1482 g_l_state.AddValues(valid_g_l_state_table_es3, | 1482 g_l_state.AddValues(valid_g_l_state_table_es3, |
1483 arraysize(valid_g_l_state_table_es3)); | 1483 arraysize(valid_g_l_state_table_es3)); |
1484 get_tex_param_target.AddValues( | 1484 get_tex_param_target.AddValues( |
1485 valid_get_tex_param_target_table_es3, | 1485 valid_get_tex_param_target_table_es3, |
1486 arraysize(valid_get_tex_param_target_table_es3)); | 1486 arraysize(valid_get_tex_param_target_table_es3)); |
1487 hint_target.AddValues(valid_hint_target_table_es3, | 1487 hint_target.AddValues(valid_hint_target_table_es3, |
1488 arraysize(valid_hint_target_table_es3)); | 1488 arraysize(valid_hint_target_table_es3)); |
1489 index_type.AddValues(valid_index_type_table_es3, | 1489 index_type.AddValues(valid_index_type_table_es3, |
1490 arraysize(valid_index_type_table_es3)); | 1490 arraysize(valid_index_type_table_es3)); |
1491 pixel_store.AddValues(valid_pixel_store_table_es3, | 1491 pixel_store.AddValues(valid_pixel_store_table_es3, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 texture_stencil_renderable_internal_format.AddValues( | 1524 texture_stencil_renderable_internal_format.AddValues( |
1525 valid_texture_stencil_renderable_internal_format_table_es3, | 1525 valid_texture_stencil_renderable_internal_format_table_es3, |
1526 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); | 1526 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); |
1527 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, | 1527 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, |
1528 arraysize(valid_vertex_attrib_type_table_es3)); | 1528 arraysize(valid_vertex_attrib_type_table_es3)); |
1529 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, | 1529 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, |
1530 arraysize(valid_vertex_attribute_table_es3)); | 1530 arraysize(valid_vertex_attribute_table_es3)); |
1531 } | 1531 } |
1532 | 1532 |
1533 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1533 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
OLD | NEW |