| 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 4753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4764 {GL_TEXTURE_IMMUTABLE_LEVELS, "GL_TEXTURE_IMMUTABLE_LEVELS"}, | 4764 {GL_TEXTURE_IMMUTABLE_LEVELS, "GL_TEXTURE_IMMUTABLE_LEVELS"}, |
| 4765 {GL_TEXTURE_MAX_LEVEL, "GL_TEXTURE_MAX_LEVEL"}, | 4765 {GL_TEXTURE_MAX_LEVEL, "GL_TEXTURE_MAX_LEVEL"}, |
| 4766 {GL_TEXTURE_MAX_LOD, "GL_TEXTURE_MAX_LOD"}, | 4766 {GL_TEXTURE_MAX_LOD, "GL_TEXTURE_MAX_LOD"}, |
| 4767 {GL_TEXTURE_MIN_LOD, "GL_TEXTURE_MIN_LOD"}, | 4767 {GL_TEXTURE_MIN_LOD, "GL_TEXTURE_MIN_LOD"}, |
| 4768 {GL_TEXTURE_WRAP_R, "GL_TEXTURE_WRAP_R"}, | 4768 {GL_TEXTURE_WRAP_R, "GL_TEXTURE_WRAP_R"}, |
| 4769 }; | 4769 }; |
| 4770 return GLES2Util::GetQualifiedEnumString(string_table, | 4770 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4771 arraysize(string_table), value); | 4771 arraysize(string_table), value); |
| 4772 } | 4772 } |
| 4773 | 4773 |
| 4774 std::string GLES2Util::GetStringTextureSizedColorRenderableInternalFormat( |
| 4775 uint32_t value) { |
| 4776 static const EnumToString string_table[] = { |
| 4777 {GL_R8, "GL_R8"}, |
| 4778 {GL_R8UI, "GL_R8UI"}, |
| 4779 {GL_R8I, "GL_R8I"}, |
| 4780 {GL_R16UI, "GL_R16UI"}, |
| 4781 {GL_R16I, "GL_R16I"}, |
| 4782 {GL_R32UI, "GL_R32UI"}, |
| 4783 {GL_R32I, "GL_R32I"}, |
| 4784 {GL_RG8, "GL_RG8"}, |
| 4785 {GL_RG8UI, "GL_RG8UI"}, |
| 4786 {GL_RG8I, "GL_RG8I"}, |
| 4787 {GL_RG16UI, "GL_RG16UI"}, |
| 4788 {GL_RG16I, "GL_RG16I"}, |
| 4789 {GL_RG32UI, "GL_RG32UI"}, |
| 4790 {GL_RG32I, "GL_RG32I"}, |
| 4791 {GL_RGB8, "GL_RGB8"}, |
| 4792 {GL_RGB565, "GL_RGB565"}, |
| 4793 {GL_RGBA8, "GL_RGBA8"}, |
| 4794 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"}, |
| 4795 {GL_RGB5_A1, "GL_RGB5_A1"}, |
| 4796 {GL_RGBA4, "GL_RGBA4"}, |
| 4797 {GL_RGB10_A2, "GL_RGB10_A2"}, |
| 4798 {GL_RGBA8UI, "GL_RGBA8UI"}, |
| 4799 {GL_RGBA8I, "GL_RGBA8I"}, |
| 4800 {GL_RGB10_A2UI, "GL_RGB10_A2UI"}, |
| 4801 {GL_RGBA16UI, "GL_RGBA16UI"}, |
| 4802 {GL_RGBA16I, "GL_RGBA16I"}, |
| 4803 {GL_RGBA32UI, "GL_RGBA32UI"}, |
| 4804 {GL_RGBA32I, "GL_RGBA32I"}, |
| 4805 }; |
| 4806 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4807 arraysize(string_table), value); |
| 4808 } |
| 4809 |
| 4810 std::string GLES2Util::GetStringTextureSizedTextureFilterableInternalFormat( |
| 4811 uint32_t value) { |
| 4812 static const EnumToString string_table[] = { |
| 4813 {GL_R8, "GL_R8"}, |
| 4814 {GL_R8_SNORM, "GL_R8_SNORM"}, |
| 4815 {GL_R16F, "GL_R16F"}, |
| 4816 {GL_RG8, "GL_RG8"}, |
| 4817 {GL_RG8_SNORM, "GL_RG8_SNORM"}, |
| 4818 {GL_RG16F, "GL_RG16F"}, |
| 4819 {GL_RGB8, "GL_RGB8"}, |
| 4820 {GL_SRGB8, "GL_SRGB8"}, |
| 4821 {GL_RGB565, "GL_RGB565"}, |
| 4822 {GL_RGB8_SNORM, "GL_RGB8_SNORM"}, |
| 4823 {GL_R11F_G11F_B10F, "GL_R11F_G11F_B10F"}, |
| 4824 {GL_RGB9_E5, "GL_RGB9_E5"}, |
| 4825 {GL_RGB16F, "GL_RGB16F"}, |
| 4826 {GL_RGBA8, "GL_RGBA8"}, |
| 4827 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"}, |
| 4828 {GL_RGBA8_SNORM, "GL_RGBA8_SNORM"}, |
| 4829 {GL_RGB5_A1, "GL_RGB5_A1"}, |
| 4830 {GL_RGBA4, "GL_RGBA4"}, |
| 4831 {GL_RGB10_A2, "GL_RGB10_A2"}, |
| 4832 {GL_RGBA16F, "GL_RGBA16F"}, |
| 4833 }; |
| 4834 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4835 arraysize(string_table), value); |
| 4836 } |
| 4837 |
| 4774 std::string GLES2Util::GetStringTextureTarget(uint32_t value) { | 4838 std::string GLES2Util::GetStringTextureTarget(uint32_t value) { |
| 4775 static const EnumToString string_table[] = { | 4839 static const EnumToString string_table[] = { |
| 4776 {GL_TEXTURE_2D, "GL_TEXTURE_2D"}, | 4840 {GL_TEXTURE_2D, "GL_TEXTURE_2D"}, |
| 4777 {GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"}, | 4841 {GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"}, |
| 4778 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"}, | 4842 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"}, |
| 4779 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"}, | 4843 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"}, |
| 4780 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"}, | 4844 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"}, |
| 4781 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"}, | 4845 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"}, |
| 4782 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"}, | 4846 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"}, |
| 4783 }; | 4847 }; |
| 4784 return GLES2Util::GetQualifiedEnumString(string_table, | 4848 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4785 arraysize(string_table), value); | 4849 arraysize(string_table), value); |
| 4786 } | 4850 } |
| 4787 | 4851 |
| 4852 std::string GLES2Util::GetStringTextureUnsizedInternalFormat(uint32_t value) { |
| 4853 static const EnumToString string_table[] = { |
| 4854 {GL_ALPHA, "GL_ALPHA"}, |
| 4855 {GL_LUMINANCE, "GL_LUMINANCE"}, |
| 4856 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"}, |
| 4857 {GL_RGB, "GL_RGB"}, |
| 4858 {GL_RGBA, "GL_RGBA"}, |
| 4859 }; |
| 4860 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4861 arraysize(string_table), value); |
| 4862 } |
| 4863 |
| 4788 std::string GLES2Util::GetStringTextureUsage(uint32_t value) { | 4864 std::string GLES2Util::GetStringTextureUsage(uint32_t value) { |
| 4789 static const EnumToString string_table[] = { | 4865 static const EnumToString string_table[] = { |
| 4790 {GL_NONE, "GL_NONE"}, | 4866 {GL_NONE, "GL_NONE"}, |
| 4791 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"}, | 4867 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"}, |
| 4792 }; | 4868 }; |
| 4793 return GLES2Util::GetQualifiedEnumString(string_table, | 4869 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4794 arraysize(string_table), value); | 4870 arraysize(string_table), value); |
| 4795 } | 4871 } |
| 4796 | 4872 |
| 4797 std::string GLES2Util::GetStringTextureWrapMode(uint32_t value) { | 4873 std::string GLES2Util::GetStringTextureWrapMode(uint32_t value) { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4909 | 4985 |
| 4910 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 4986 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
| 4911 static const EnumToString string_table[] = { | 4987 static const EnumToString string_table[] = { |
| 4912 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 4988 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
| 4913 }; | 4989 }; |
| 4914 return GLES2Util::GetQualifiedEnumString(string_table, | 4990 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4915 arraysize(string_table), value); | 4991 arraysize(string_table), value); |
| 4916 } | 4992 } |
| 4917 | 4993 |
| 4918 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 4994 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| OLD | NEW |