Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h

Issue 2025673003: command_buffer: expose SRC_ALPHA_SATURATE when on GLES 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proper fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 static const GLenum valid_dst_blend_factor_table[] = { 192 static const GLenum valid_dst_blend_factor_table[] = {
193 GL_ZERO, GL_ONE, 193 GL_ZERO, GL_ONE,
194 GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, 194 GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR,
195 GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, 195 GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR,
196 GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 196 GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA,
197 GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, 197 GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA,
198 GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, 198 GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR,
199 GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, 199 GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA,
200 }; 200 };
201 201
202 static const GLenum valid_dst_blend_factor_table_es3[] = {
203 GL_SRC_ALPHA_SATURATE,
204 };
205
202 static const GLenum valid_equation_table[] = { 206 static const GLenum valid_equation_table[] = {
203 GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, 207 GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT,
204 }; 208 };
205 209
206 static const GLenum valid_equation_table_es3[] = { 210 static const GLenum valid_equation_table_es3[] = {
207 GL_MIN, GL_MAX, 211 GL_MIN, GL_MAX,
208 }; 212 };
209 213
210 bool Validators::FaceModeValidator::IsValid(const GLenum value) const { 214 bool Validators::FaceModeValidator::IsValid(const GLenum value) const {
211 switch (value) { 215 switch (value) {
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 attachment.AddValues(valid_attachment_table_es3, 1451 attachment.AddValues(valid_attachment_table_es3,
1448 arraysize(valid_attachment_table_es3)); 1452 arraysize(valid_attachment_table_es3));
1449 buffer_parameter.SetIsES3(true); 1453 buffer_parameter.SetIsES3(true);
1450 buffer_target.SetIsES3(true); 1454 buffer_target.SetIsES3(true);
1451 buffer_usage.SetIsES3(true); 1455 buffer_usage.SetIsES3(true);
1452 capability.AddValues(valid_capability_table_es3, 1456 capability.AddValues(valid_capability_table_es3,
1453 arraysize(valid_capability_table_es3)); 1457 arraysize(valid_capability_table_es3));
1454 compressed_texture_format.AddValues( 1458 compressed_texture_format.AddValues(
1455 valid_compressed_texture_format_table_es3, 1459 valid_compressed_texture_format_table_es3,
1456 arraysize(valid_compressed_texture_format_table_es3)); 1460 arraysize(valid_compressed_texture_format_table_es3));
1461 dst_blend_factor.AddValues(valid_dst_blend_factor_table_es3,
1462 arraysize(valid_dst_blend_factor_table_es3));
1457 equation.AddValues(valid_equation_table_es3, 1463 equation.AddValues(valid_equation_table_es3,
1458 arraysize(valid_equation_table_es3)); 1464 arraysize(valid_equation_table_es3));
1459 frame_buffer_parameter.AddValues( 1465 frame_buffer_parameter.AddValues(
1460 valid_frame_buffer_parameter_table_es3, 1466 valid_frame_buffer_parameter_table_es3,
1461 arraysize(valid_frame_buffer_parameter_table_es3)); 1467 arraysize(valid_frame_buffer_parameter_table_es3));
1462 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3, 1468 frame_buffer_target.AddValues(valid_frame_buffer_target_table_es3,
1463 arraysize(valid_frame_buffer_target_table_es3)); 1469 arraysize(valid_frame_buffer_target_table_es3));
1464 g_l_state.AddValues(valid_g_l_state_table_es3, 1470 g_l_state.AddValues(valid_g_l_state_table_es3,
1465 arraysize(valid_g_l_state_table_es3)); 1471 arraysize(valid_g_l_state_table_es3));
1466 get_tex_param_target.AddValues( 1472 get_tex_param_target.AddValues(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 texture_stencil_renderable_internal_format.AddValues( 1512 texture_stencil_renderable_internal_format.AddValues(
1507 valid_texture_stencil_renderable_internal_format_table_es3, 1513 valid_texture_stencil_renderable_internal_format_table_es3,
1508 arraysize(valid_texture_stencil_renderable_internal_format_table_es3)); 1514 arraysize(valid_texture_stencil_renderable_internal_format_table_es3));
1509 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, 1515 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3,
1510 arraysize(valid_vertex_attrib_type_table_es3)); 1516 arraysize(valid_vertex_attrib_type_table_es3));
1511 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, 1517 vertex_attribute.AddValues(valid_vertex_attribute_table_es3,
1512 arraysize(valid_vertex_attribute_table_es3)); 1518 arraysize(valid_vertex_attribute_table_es3));
1513 } 1519 }
1514 1520
1515 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_ 1521 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE N_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698