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

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

Issue 1007523002: Update ES3 enums for texture parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years, 9 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 5249 matching lines...) Expand 10 before | Expand all | Expand 10 after
5260 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) { 5260 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) {
5261 static const EnumToString string_table[] = { 5261 static const EnumToString string_table[] = {
5262 {GL_RGB565, "GL_RGB565"}, 5262 {GL_RGB565, "GL_RGB565"},
5263 {GL_RGBA4, "GL_RGBA4"}, 5263 {GL_RGBA4, "GL_RGBA4"},
5264 {GL_RGB5_A1, "GL_RGB5_A1"}, 5264 {GL_RGB5_A1, "GL_RGB5_A1"},
5265 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"}, 5265 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"},
5266 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"}, 5266 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"},
5267 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"}, 5267 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"},
5268 {GL_RGB8_OES, "GL_RGB8_OES"}, 5268 {GL_RGB8_OES, "GL_RGB8_OES"},
5269 {GL_RGBA8_OES, "GL_RGBA8_OES"}, 5269 {GL_RGBA8_OES, "GL_RGBA8_OES"},
5270 {GL_R8, "GL_R8"},
5271 {GL_R8_SNORM, "GL_R8_SNORM"},
5272 {GL_R16F, "GL_R16F"},
5273 {GL_R32F, "GL_R32F"},
5274 {GL_R8UI, "GL_R8UI"},
5275 {GL_R8I, "GL_R8I"},
5276 {GL_R16UI, "GL_R16UI"},
5277 {GL_R16I, "GL_R16I"},
5278 {GL_R32UI, "GL_R32UI"},
5279 {GL_R32I, "GL_R32I"},
5280 {GL_RG8, "GL_RG8"},
5281 {GL_RG8_SNORM, "GL_RG8_SNORM"},
5282 {GL_RG16F, "GL_RG16F"},
5283 {GL_RG32F, "GL_RG32F"},
5284 {GL_RG8UI, "GL_RG8UI"},
5285 {GL_RG8I, "GL_RG8I"},
5286 {GL_RG16UI, "GL_RG16UI"},
5287 {GL_RG16I, "GL_RG16I"},
5288 {GL_RG32UI, "GL_RG32UI"},
5289 {GL_RG32I, "GL_RG32I"},
5290 {GL_SRGB8, "GL_SRGB8"},
5291 {GL_RGB8_SNORM, "GL_RGB8_SNORM"},
5292 {GL_R11F_G11F_B10F, "GL_R11F_G11F_B10F"},
5293 {GL_RGB9_E5, "GL_RGB9_E5"},
5294 {GL_RGB16F, "GL_RGB16F"},
5295 {GL_RGB32F, "GL_RGB32F"},
5296 {GL_RGB8UI, "GL_RGB8UI"},
5297 {GL_RGB8I, "GL_RGB8I"},
5298 {GL_RGB16UI, "GL_RGB16UI"},
5299 {GL_RGB16I, "GL_RGB16I"},
5300 {GL_RGB32UI, "GL_RGB32UI"},
5301 {GL_RGB32I, "GL_RGB32I"},
5302 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"},
5303 {GL_RGBA8_SNORM, "GL_RGBA8_SNORM"},
5304 {GL_RGB10_A2, "GL_RGB10_A2"},
5305 {GL_RGBA16F, "GL_RGBA16F"},
5306 {GL_RGBA32F, "GL_RGBA32F"},
5307 {GL_RGBA8UI, "GL_RGBA8UI"},
5308 {GL_RGBA8I, "GL_RGBA8I"},
5309 {GL_RGB10_A2UI, "GL_RGB10_A2UI"},
5310 {GL_RGBA16UI, "GL_RGBA16UI"},
5311 {GL_RGBA16I, "GL_RGBA16I"},
5312 {GL_RGBA32UI, "GL_RGBA32UI"},
5313 {GL_RGBA32I, "GL_RGBA32I"},
5314 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
5315 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"},
5316 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
5317 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
5318 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
5319 {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"},
5320 {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"},
5321 {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"},
5322 {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"},
5323 {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"},
5324 {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"},
5325 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
5326 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
5327 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
5328 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
5329 {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
5330 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
5331 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
5270 }; 5332 };
5271 return GLES2Util::GetQualifiedEnumString(string_table, 5333 return GLES2Util::GetQualifiedEnumString(string_table,
5272 arraysize(string_table), value); 5334 arraysize(string_table), value);
5273 } 5335 }
5274 5336
5275 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) { 5337 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) {
5276 static const EnumToString string_table[] = { 5338 static const EnumToString string_table[] = {
5277 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, 5339 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
5278 }; 5340 };
5279 return GLES2Util::GetQualifiedEnumString(string_table, 5341 return GLES2Util::GetQualifiedEnumString(string_table,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
5436 5498
5437 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5499 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5438 static const EnumToString string_table[] = { 5500 static const EnumToString string_table[] = {
5439 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5501 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5440 }; 5502 };
5441 return GLES2Util::GetQualifiedEnumString(string_table, 5503 return GLES2Util::GetQualifiedEnumString(string_table,
5442 arraysize(string_table), value); 5504 arraysize(string_table), value);
5443 } 5505 }
5444 5506
5445 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5507 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698