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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 921023002: Add glGetActiveUniformsiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Created 5 years, 10 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
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 5259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5270 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"}, 5270 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"},
5271 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, 5271 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
5272 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"}, 5272 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"},
5273 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, 5273 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
5274 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"}, 5274 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"},
5275 }; 5275 };
5276 return GLES2Util::GetQualifiedEnumString(string_table, 5276 return GLES2Util::GetQualifiedEnumString(string_table,
5277 arraysize(string_table), value); 5277 arraysize(string_table), value);
5278 } 5278 }
5279 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
5280 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) { 5295 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) {
5281 static const EnumToString string_table[] = { 5296 static const EnumToString string_table[] = {
5282 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, 5297 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
5283 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"}, 5298 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
5284 }; 5299 };
5285 return GLES2Util::GetQualifiedEnumString(string_table, 5300 return GLES2Util::GetQualifiedEnumString(string_table,
5286 arraysize(string_table), value); 5301 arraysize(string_table), value);
5287 } 5302 }
5288 5303
5289 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) { 5304 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) {
(...skipping 25 matching lines...) Expand all
5315 5330
5316 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5331 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5317 static const EnumToString string_table[] = { 5332 static const EnumToString string_table[] = {
5318 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5333 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5319 }; 5334 };
5320 return GLES2Util::GetQualifiedEnumString(string_table, 5335 return GLES2Util::GetQualifiedEnumString(string_table,
5321 arraysize(string_table), value); 5336 arraysize(string_table), value);
5322 } 5337 }
5323 5338
5324 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5339 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698