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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/BUILD.gn » ('j') | 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 4869 matching lines...) Expand 10 before | Expand all | Expand 10 after
4880 return GLES2Util::GetQualifiedEnumString(string_table, 4880 return GLES2Util::GetQualifiedEnumString(string_table,
4881 arraysize(string_table), value); 4881 arraysize(string_table), value);
4882 } 4882 }
4883 4883
4884 std::string GLES2Util::GetStringPixelType(uint32_t value) { 4884 std::string GLES2Util::GetStringPixelType(uint32_t value) {
4885 static const EnumToString string_table[] = { 4885 static const EnumToString string_table[] = {
4886 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, 4886 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4887 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"}, 4887 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
4888 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"}, 4888 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
4889 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"}, 4889 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
4890 {GL_BYTE, "GL_BYTE"},
4891 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4892 {GL_SHORT, "GL_SHORT"},
4893 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4894 {GL_INT, "GL_INT"},
4895 {GL_HALF_FLOAT, "GL_HALF_FLOAT"},
4896 {GL_FLOAT, "GL_FLOAT"},
4897 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4898 {GL_UNSIGNED_INT_10F_11F_11F_REV, "GL_UNSIGNED_INT_10F_11F_11F_REV"},
4899 {GL_UNSIGNED_INT_5_9_9_9_REV, "GL_UNSIGNED_INT_5_9_9_9_REV"},
4900 {GL_UNSIGNED_INT_24_8, "GL_UNSIGNED_INT_24_8"},
4901 {GL_FLOAT_32_UNSIGNED_INT_24_8_REV, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV"},
4890 }; 4902 };
4891 return GLES2Util::GetQualifiedEnumString(string_table, 4903 return GLES2Util::GetQualifiedEnumString(string_table,
4892 arraysize(string_table), value); 4904 arraysize(string_table), value);
4893 } 4905 }
4894 4906
4895 std::string GLES2Util::GetStringProgramParameter(uint32_t value) { 4907 std::string GLES2Util::GetStringProgramParameter(uint32_t value) {
4896 static const EnumToString string_table[] = { 4908 static const EnumToString string_table[] = {
4897 {GL_DELETE_STATUS, "GL_DELETE_STATUS"}, 4909 {GL_DELETE_STATUS, "GL_DELETE_STATUS"},
4898 {GL_LINK_STATUS, "GL_LINK_STATUS"}, 4910 {GL_LINK_STATUS, "GL_LINK_STATUS"},
4899 {GL_VALIDATE_STATUS, "GL_VALIDATE_STATUS"}, 4911 {GL_VALIDATE_STATUS, "GL_VALIDATE_STATUS"},
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
5145 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"}, 5157 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5146 }; 5158 };
5147 return GLES2Util::GetQualifiedEnumString(string_table, 5159 return GLES2Util::GetQualifiedEnumString(string_table,
5148 arraysize(string_table), value); 5160 arraysize(string_table), value);
5149 } 5161 }
5150 5162
5151 std::string GLES2Util::GetStringTextureBindTarget(uint32_t value) { 5163 std::string GLES2Util::GetStringTextureBindTarget(uint32_t value) {
5152 static const EnumToString string_table[] = { 5164 static const EnumToString string_table[] = {
5153 {GL_TEXTURE_2D, "GL_TEXTURE_2D"}, 5165 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
5154 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"}, 5166 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
5167 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
5168 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5155 }; 5169 };
5156 return GLES2Util::GetQualifiedEnumString(string_table, 5170 return GLES2Util::GetQualifiedEnumString(string_table,
5157 arraysize(string_table), value); 5171 arraysize(string_table), value);
5158 } 5172 }
5159 5173
5160 std::string GLES2Util::GetStringTextureFormat(uint32_t value) { 5174 std::string GLES2Util::GetStringTextureFormat(uint32_t value) {
5161 static const EnumToString string_table[] = { 5175 static const EnumToString string_table[] = {
5162 {GL_ALPHA, "GL_ALPHA"}, 5176 {GL_ALPHA, "GL_ALPHA"},
5163 {GL_LUMINANCE, "GL_LUMINANCE"}, 5177 {GL_LUMINANCE, "GL_LUMINANCE"},
5164 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"}, 5178 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
5165 {GL_RGB, "GL_RGB"}, 5179 {GL_RGB, "GL_RGB"},
5166 {GL_RGBA, "GL_RGBA"}, 5180 {GL_RGBA, "GL_RGBA"},
5181 {GL_RED, "GL_RED"},
5182 {GL_RED_INTEGER, "GL_RED_INTEGER"},
5183 {GL_RG, "GL_RG"},
5184 {GL_RG_INTEGER, "GL_RG_INTEGER"},
5185 {GL_RGB_INTEGER, "GL_RGB_INTEGER"},
5186 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"},
5187 {GL_DEPTH_COMPONENT, "GL_DEPTH_COMPONENT"},
5188 {GL_DEPTH_STENCIL, "GL_DEPTH_STENCIL"},
5167 }; 5189 };
5168 return GLES2Util::GetQualifiedEnumString(string_table, 5190 return GLES2Util::GetQualifiedEnumString(string_table,
5169 arraysize(string_table), value); 5191 arraysize(string_table), value);
5170 } 5192 }
5171 5193
5172 std::string GLES2Util::GetStringTextureInternalFormat(uint32_t value) { 5194 std::string GLES2Util::GetStringTextureInternalFormat(uint32_t value) {
5173 static const EnumToString string_table[] = { 5195 static const EnumToString string_table[] = {
5174 {GL_ALPHA, "GL_ALPHA"}, 5196 {GL_ALPHA, "GL_ALPHA"},
5175 {GL_LUMINANCE, "GL_LUMINANCE"}, 5197 {GL_LUMINANCE, "GL_LUMINANCE"},
5176 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"}, 5198 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
5177 {GL_RGB, "GL_RGB"}, 5199 {GL_RGB, "GL_RGB"},
5178 {GL_RGBA, "GL_RGBA"}, 5200 {GL_RGBA, "GL_RGBA"},
5201 {GL_R8, "GL_R8"},
5202 {GL_R8_SNORM, "GL_R8_SNORM"},
5203 {GL_R16F, "GL_R16F"},
5204 {GL_R32F, "GL_R32F"},
5205 {GL_R8UI, "GL_R8UI"},
5206 {GL_R8I, "GL_R8I"},
5207 {GL_R16UI, "GL_R16UI"},
5208 {GL_R16I, "GL_R16I"},
5209 {GL_R32UI, "GL_R32UI"},
5210 {GL_R32I, "GL_R32I"},
5211 {GL_RG8, "GL_RG8"},
5212 {GL_RG8_SNORM, "GL_RG8_SNORM"},
5213 {GL_RG16F, "GL_RG16F"},
5214 {GL_RG32F, "GL_RG32F"},
5215 {GL_RG8UI, "GL_RG8UI"},
5216 {GL_RG8I, "GL_RG8I"},
5217 {GL_RG16UI, "GL_RG16UI"},
5218 {GL_RG16I, "GL_RG16I"},
5219 {GL_RG32UI, "GL_RG32UI"},
5220 {GL_RG32I, "GL_RG32I"},
5221 {GL_RGB8, "GL_RGB8"},
5222 {GL_SRGB8, "GL_SRGB8"},
5223 {GL_RGB565, "GL_RGB565"},
5224 {GL_RGB8_SNORM, "GL_RGB8_SNORM"},
5225 {GL_R11F_G11F_B10F, "GL_R11F_G11F_B10F"},
5226 {GL_RGB9_E5, "GL_RGB9_E5"},
5227 {GL_RGB16F, "GL_RGB16F"},
5228 {GL_RGB32F, "GL_RGB32F"},
5229 {GL_RGB8UI, "GL_RGB8UI"},
5230 {GL_RGB8I, "GL_RGB8I"},
5231 {GL_RGB16UI, "GL_RGB16UI"},
5232 {GL_RGB16I, "GL_RGB16I"},
5233 {GL_RGB32UI, "GL_RGB32UI"},
5234 {GL_RGB32I, "GL_RGB32I"},
5235 {GL_RGBA8, "GL_RGBA8"},
5236 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"},
5237 {GL_RGBA8_SNORM, "GL_RGBA8_SNORM"},
5238 {GL_RGB5_A1, "GL_RGB5_A1"},
5239 {GL_RGBA4, "GL_RGBA4"},
5240 {GL_RGB10_A2, "GL_RGB10_A2"},
5241 {GL_RGBA16F, "GL_RGBA16F"},
5242 {GL_RGBA32F, "GL_RGBA32F"},
5243 {GL_RGBA8UI, "GL_RGBA8UI"},
5244 {GL_RGBA8I, "GL_RGBA8I"},
5245 {GL_RGB10_A2UI, "GL_RGB10_A2UI"},
5246 {GL_RGBA16UI, "GL_RGBA16UI"},
5247 {GL_RGBA16I, "GL_RGBA16I"},
5248 {GL_RGBA32UI, "GL_RGBA32UI"},
5249 {GL_RGBA32I, "GL_RGBA32I"},
5250 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
5251 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"},
5252 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
5253 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
5254 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
5179 }; 5255 };
5180 return GLES2Util::GetQualifiedEnumString(string_table, 5256 return GLES2Util::GetQualifiedEnumString(string_table,
5181 arraysize(string_table), value); 5257 arraysize(string_table), value);
5182 } 5258 }
5183 5259
5184 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) { 5260 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) {
5185 static const EnumToString string_table[] = { 5261 static const EnumToString string_table[] = {
5186 {GL_RGB565, "GL_RGB565"}, 5262 {GL_RGB565, "GL_RGB565"},
5187 {GL_RGBA4, "GL_RGBA4"}, 5263 {GL_RGBA4, "GL_RGBA4"},
5188 {GL_RGB5_A1, "GL_RGB5_A1"}, 5264 {GL_RGB5_A1, "GL_RGB5_A1"},
5189 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"}, 5265 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"},
5190 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"}, 5266 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"},
5191 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"}, 5267 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"},
5192 {GL_RGB8_OES, "GL_RGB8_OES"}, 5268 {GL_RGB8_OES, "GL_RGB8_OES"},
5193 {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"},
5194 }; 5332 };
5195 return GLES2Util::GetQualifiedEnumString(string_table, 5333 return GLES2Util::GetQualifiedEnumString(string_table,
5196 arraysize(string_table), value); 5334 arraysize(string_table), value);
5197 } 5335 }
5198 5336
5199 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) { 5337 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) {
5200 static const EnumToString string_table[] = { 5338 static const EnumToString string_table[] = {
5201 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"}, 5339 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
5202 }; 5340 };
5203 return GLES2Util::GetQualifiedEnumString(string_table, 5341 return GLES2Util::GetQualifiedEnumString(string_table,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
5360 5498
5361 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { 5499 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5362 static const EnumToString string_table[] = { 5500 static const EnumToString string_table[] = {
5363 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, 5501 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5364 }; 5502 };
5365 return GLES2Util::GetQualifiedEnumString(string_table, 5503 return GLES2Util::GetQualifiedEnumString(string_table,
5366 arraysize(string_table), value); 5504 arraysize(string_table), value);
5367 } 5505 }
5368 5506
5369 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 5507 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698