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 5242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5253 std::string GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value) { | 5253 std::string GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value) { |
5254 static const EnumToString string_table[] = { | 5254 static const EnumToString string_table[] = { |
5255 {GL_POINTS, "GL_POINTS"}, | 5255 {GL_POINTS, "GL_POINTS"}, |
5256 {GL_LINES, "GL_LINES"}, | 5256 {GL_LINES, "GL_LINES"}, |
5257 {GL_TRIANGLES, "GL_TRIANGLES"}, | 5257 {GL_TRIANGLES, "GL_TRIANGLES"}, |
5258 }; | 5258 }; |
5259 return GLES2Util::GetQualifiedEnumString(string_table, | 5259 return GLES2Util::GetQualifiedEnumString(string_table, |
5260 arraysize(string_table), value); | 5260 arraysize(string_table), value); |
5261 } | 5261 } |
5262 | 5262 |
| 5263 std::string GLES2Util::GetStringUniformBlockParameter(uint32_t value) { |
| 5264 static const EnumToString string_table[] = { |
| 5265 {GL_UNIFORM_BLOCK_BINDING, "GL_UNIFORM_BLOCK_BINDING"}, |
| 5266 {GL_UNIFORM_BLOCK_DATA_SIZE, "GL_UNIFORM_BLOCK_DATA_SIZE"}, |
| 5267 {GL_UNIFORM_BLOCK_NAME_LENGTH, "GL_UNIFORM_BLOCK_NAME_LENGTH"}, |
| 5268 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS"}, |
| 5269 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, |
| 5270 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"}, |
| 5271 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, |
| 5272 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"}, |
| 5273 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, |
| 5274 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"}, |
| 5275 }; |
| 5276 return GLES2Util::GetQualifiedEnumString(string_table, |
| 5277 arraysize(string_table), value); |
| 5278 } |
| 5279 |
| 5280 std::string GLES2Util::GetStringUniformParameter(uint32_t value) { |
| 5281 static const EnumToString string_table[] = { |
| 5282 {GL_UNIFORM_SIZE, "GL_UNIFORM_SIZE"}, |
| 5283 {GL_UNIFORM_TYPE, "GL_UNIFORM_TYPE"}, |
| 5284 {GL_UNIFORM_NAME_LENGTH, "GL_UNIFORM_NAME_LENGTH"}, |
| 5285 {GL_UNIFORM_BLOCK_INDEX, "GL_UNIFORM_BLOCK_INDEX"}, |
| 5286 {GL_UNIFORM_OFFSET, "GL_UNIFORM_OFFSET"}, |
| 5287 {GL_UNIFORM_ARRAY_STRIDE, "GL_UNIFORM_ARRAY_STRIDE"}, |
| 5288 {GL_UNIFORM_MATRIX_STRIDE, "GL_UNIFORM_MATRIX_STRIDE"}, |
| 5289 {GL_UNIFORM_IS_ROW_MAJOR, "GL_UNIFORM_IS_ROW_MAJOR"}, |
| 5290 }; |
| 5291 return GLES2Util::GetQualifiedEnumString(string_table, |
| 5292 arraysize(string_table), value); |
| 5293 } |
| 5294 |
5263 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) { | 5295 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) { |
5264 static const EnumToString string_table[] = { | 5296 static const EnumToString string_table[] = { |
5265 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, | 5297 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, |
5266 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"}, | 5298 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"}, |
5267 }; | 5299 }; |
5268 return GLES2Util::GetQualifiedEnumString(string_table, | 5300 return GLES2Util::GetQualifiedEnumString(string_table, |
5269 arraysize(string_table), value); | 5301 arraysize(string_table), value); |
5270 } | 5302 } |
5271 | 5303 |
5272 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) { | 5304 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) { |
(...skipping 25 matching lines...) Expand all Loading... |
5298 | 5330 |
5299 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 5331 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
5300 static const EnumToString string_table[] = { | 5332 static const EnumToString string_table[] = { |
5301 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 5333 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
5302 }; | 5334 }; |
5303 return GLES2Util::GetQualifiedEnumString(string_table, | 5335 return GLES2Util::GetQualifiedEnumString(string_table, |
5304 arraysize(string_table), value); | 5336 arraysize(string_table), value); |
5305 } | 5337 } |
5306 | 5338 |
5307 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 5339 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
OLD | NEW |