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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 {0x9298, "GL_LIGHTEN_NV", }, | 422 {0x9298, "GL_LIGHTEN_NV", }, |
423 {0x8CD7, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", }, | 423 {0x8CD7, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT", }, |
424 {0x9112, "GL_OBJECT_TYPE_APPLE", }, | 424 {0x9112, "GL_OBJECT_TYPE_APPLE", }, |
425 {0x8038, "GL_POLYGON_OFFSET_FACTOR", }, | 425 {0x8038, "GL_POLYGON_OFFSET_FACTOR", }, |
426 {0x851A, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z", }, | 426 {0x851A, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z", }, |
427 {0x851C, "GL_MAX_CUBE_MAP_TEXTURE_SIZE", }, | 427 {0x851C, "GL_MAX_CUBE_MAP_TEXTURE_SIZE", }, |
428 {0x8CD9, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS", }, | 428 {0x8CD9, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS", }, |
429 {0x84CC, "GL_TEXTURE12", }, | 429 {0x84CC, "GL_TEXTURE12", }, |
430 {0x0BA2, "GL_VIEWPORT", }, | 430 {0x0BA2, "GL_VIEWPORT", }, |
431 {0x84CA, "GL_TEXTURE10", }, | 431 {0x84CA, "GL_TEXTURE10", }, |
| 432 {0x0BA0, "GL_MATRIX_MODE", }, |
432 {0x84CF, "GL_TEXTURE15", }, | 433 {0x84CF, "GL_TEXTURE15", }, |
433 {0x84CE, "GL_TEXTURE14", }, | 434 {0x84CE, "GL_TEXTURE14", }, |
434 {0x84CD, "GL_TEXTURE13", }, | 435 {0x84CD, "GL_TEXTURE13", }, |
435 {0x9115, "GL_SYNC_FLAGS_APPLE", }, | 436 {0x9115, "GL_SYNC_FLAGS_APPLE", }, |
436 {0x9286, "GL_SRC_NV", }, | 437 {0x9286, "GL_SRC_NV", }, |
437 {0x83F3, "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE", }, | 438 {0x83F3, "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE", }, |
438 {0x83F2, "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE", }, | 439 {0x83F2, "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE", }, |
439 {0x83F1, "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT", }, | 440 {0x83F1, "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT", }, |
440 {0x9114, "GL_SYNC_STATUS_APPLE", }, | 441 {0x9114, "GL_SYNC_STATUS_APPLE", }, |
441 {0x8C0A, "GL_SGX_BINARY_IMG", }, | 442 {0x8C0A, "GL_SGX_BINARY_IMG", }, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 {0x8C46, "GL_SLUMINANCE_NV", }, | 577 {0x8C46, "GL_SLUMINANCE_NV", }, |
577 {0x93E1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES", }, | 578 {0x93E1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES", }, |
578 {0x93E0, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES", }, | 579 {0x93E0, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES", }, |
579 {0x93E3, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES", }, | 580 {0x93E3, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES", }, |
580 {0x93E2, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES", }, | 581 {0x93E2, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES", }, |
581 {0x93E5, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES", }, | 582 {0x93E5, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES", }, |
582 {0x93E4, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES", }, | 583 {0x93E4, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES", }, |
583 {0x93E7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES", }, | 584 {0x93E7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES", }, |
584 {0x93E6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES", }, | 585 {0x93E6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES", }, |
585 {0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", }, | 586 {0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", }, |
| 587 {0x1700, "GL_MODELVIEW", }, |
586 {0x85BB, "GL_UNSIGNED_SHORT_8_8_REV_APPLE", }, | 588 {0x85BB, "GL_UNSIGNED_SHORT_8_8_REV_APPLE", }, |
587 {0x8D61, "GL_HALF_FLOAT_OES", }, | 589 {0x8D61, "GL_HALF_FLOAT_OES", }, |
588 {0x8D62, "GL_RGB565", }, | 590 {0x8D62, "GL_RGB565", }, |
589 {0x8D64, "GL_ETC1_RGB8_OES", }, | 591 {0x8D64, "GL_ETC1_RGB8_OES", }, |
590 {0x8D65, "GL_TEXTURE_EXTERNAL_OES", }, | 592 {0x8D65, "GL_TEXTURE_EXTERNAL_OES", }, |
591 {0x8D66, "GL_SAMPLER_EXTERNAL_OES", }, | 593 {0x8D66, "GL_SAMPLER_EXTERNAL_OES", }, |
592 {0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", }, | 594 {0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", }, |
593 {0x04000000, "GL_MULTISAMPLE_BUFFER_BIT2_QCOM", }, | 595 {0x04000000, "GL_MULTISAMPLE_BUFFER_BIT2_QCOM", }, |
594 {0x8CEE, "GL_COLOR_ATTACHMENT14_EXT", }, | 596 {0x8CEE, "GL_COLOR_ATTACHMENT14_EXT", }, |
| 597 {0x1701, "GL_PROJECTION", }, |
595 {0x2800, "GL_TEXTURE_MAG_FILTER", }, | 598 {0x2800, "GL_TEXTURE_MAG_FILTER", }, |
596 {0x2801, "GL_TEXTURE_MIN_FILTER", }, | 599 {0x2801, "GL_TEXTURE_MIN_FILTER", }, |
597 {0x2802, "GL_TEXTURE_WRAP_S", }, | 600 {0x2802, "GL_TEXTURE_WRAP_S", }, |
598 {0x2803, "GL_TEXTURE_WRAP_T", }, | 601 {0x2803, "GL_TEXTURE_WRAP_T", }, |
599 {0x2703, "GL_LINEAR_MIPMAP_LINEAR", }, | 602 {0x2703, "GL_LINEAR_MIPMAP_LINEAR", }, |
600 {0x8B98, "GL_PALETTE8_RGBA4_OES", }, | 603 {0x8B98, "GL_PALETTE8_RGBA4_OES", }, |
601 {0x84F3, "GL_FENCE_STATUS_NV", }, | 604 {0x84F3, "GL_FENCE_STATUS_NV", }, |
602 {0x2702, "GL_NEAREST_MIPMAP_LINEAR", }, | 605 {0x2702, "GL_NEAREST_MIPMAP_LINEAR", }, |
603 {0x1F03, "GL_EXTENSIONS", }, | 606 {0x1F03, "GL_EXTENSIONS", }, |
604 {0x1F02, "GL_VERSION", }, | 607 {0x1F02, "GL_VERSION", }, |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 } | 1096 } |
1094 | 1097 |
1095 std::string GLES2Util::GetStringIndexType(uint32 value) { | 1098 std::string GLES2Util::GetStringIndexType(uint32 value) { |
1096 static const EnumToString string_table[] = { | 1099 static const EnumToString string_table[] = { |
1097 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, | 1100 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, |
1098 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"}, }; | 1101 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"}, }; |
1099 return GLES2Util::GetQualifiedEnumString( | 1102 return GLES2Util::GetQualifiedEnumString( |
1100 string_table, arraysize(string_table), value); | 1103 string_table, arraysize(string_table), value); |
1101 } | 1104 } |
1102 | 1105 |
| 1106 std::string GLES2Util::GetStringMatrixMode(uint32 value) { |
| 1107 static const EnumToString string_table[] = {{GL_PROJECTION, "GL_PROJECTION"}, |
| 1108 {GL_MODELVIEW, "GL_MODELVIEW"}, }; |
| 1109 return GLES2Util::GetQualifiedEnumString( |
| 1110 string_table, arraysize(string_table), value); |
| 1111 } |
| 1112 |
1103 std::string GLES2Util::GetStringPixelStore(uint32 value) { | 1113 std::string GLES2Util::GetStringPixelStore(uint32 value) { |
1104 static const EnumToString string_table[] = { | 1114 static const EnumToString string_table[] = { |
1105 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"}, | 1115 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"}, |
1106 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"}, | 1116 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"}, |
1107 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"}, | 1117 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"}, |
1108 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, | 1118 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, |
1109 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"}, | 1119 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"}, |
1110 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, | 1120 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, |
1111 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"}, }; | 1121 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"}, }; |
1112 return GLES2Util::GetQualifiedEnumString( | 1122 return GLES2Util::GetQualifiedEnumString( |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 } | 1458 } |
1449 | 1459 |
1450 std::string GLES2Util::GetStringVertexPointer(uint32 value) { | 1460 std::string GLES2Util::GetStringVertexPointer(uint32 value) { |
1451 static const EnumToString string_table[] = { | 1461 static const EnumToString string_table[] = { |
1452 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, }; | 1462 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, }; |
1453 return GLES2Util::GetQualifiedEnumString( | 1463 return GLES2Util::GetQualifiedEnumString( |
1454 string_table, arraysize(string_table), value); | 1464 string_table, arraysize(string_table), value); |
1455 } | 1465 } |
1456 | 1466 |
1457 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 1467 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
OLD | NEW |