1e5c31af7Sopenharmony_ci/* WARNING: This is auto-generated file. Do not modify, since changes will
2e5c31af7Sopenharmony_ci * be lost! Modify the generating script instead.
3e5c31af7Sopenharmony_ci *
4e5c31af7Sopenharmony_ci * Generated from Khronos GL API description (gl.xml) revision d8371b44919d61c02e60f446a4b5461fda910f71.
5e5c31af7Sopenharmony_ci */
6e5c31af7Sopenharmony_ci
7e5c31af7Sopenharmony_ciconst char* getErrorName (int value)
8e5c31af7Sopenharmony_ci{
9e5c31af7Sopenharmony_ci	switch (value)
10e5c31af7Sopenharmony_ci	{
11e5c31af7Sopenharmony_ci		case GL_NO_ERROR:						return "GL_NO_ERROR";
12e5c31af7Sopenharmony_ci		case GL_INVALID_ENUM:					return "GL_INVALID_ENUM";
13e5c31af7Sopenharmony_ci		case GL_INVALID_VALUE:					return "GL_INVALID_VALUE";
14e5c31af7Sopenharmony_ci		case GL_INVALID_OPERATION:				return "GL_INVALID_OPERATION";
15e5c31af7Sopenharmony_ci		case GL_OUT_OF_MEMORY:					return "GL_OUT_OF_MEMORY";
16e5c31af7Sopenharmony_ci		case GL_INVALID_FRAMEBUFFER_OPERATION:	return "GL_INVALID_FRAMEBUFFER_OPERATION";
17e5c31af7Sopenharmony_ci		case GL_CONTEXT_LOST:					return "GL_CONTEXT_LOST";
18e5c31af7Sopenharmony_ci		default:								return DE_NULL;
19e5c31af7Sopenharmony_ci	}
20e5c31af7Sopenharmony_ci}
21e5c31af7Sopenharmony_ci
22e5c31af7Sopenharmony_ciconst char* getTypeName (int value)
23e5c31af7Sopenharmony_ci{
24e5c31af7Sopenharmony_ci	switch (value)
25e5c31af7Sopenharmony_ci	{
26e5c31af7Sopenharmony_ci		case GL_BYTE:							return "GL_BYTE";
27e5c31af7Sopenharmony_ci		case GL_UNSIGNED_BYTE:					return "GL_UNSIGNED_BYTE";
28e5c31af7Sopenharmony_ci		case GL_SHORT:							return "GL_SHORT";
29e5c31af7Sopenharmony_ci		case GL_UNSIGNED_SHORT:					return "GL_UNSIGNED_SHORT";
30e5c31af7Sopenharmony_ci		case GL_INT:							return "GL_INT";
31e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT:					return "GL_UNSIGNED_INT";
32e5c31af7Sopenharmony_ci		case GL_FLOAT:							return "GL_FLOAT";
33e5c31af7Sopenharmony_ci		case GL_FIXED:							return "GL_FIXED";
34e5c31af7Sopenharmony_ci		case GL_UNSIGNED_SHORT_5_6_5:			return "GL_UNSIGNED_SHORT_5_6_5";
35e5c31af7Sopenharmony_ci		case GL_UNSIGNED_SHORT_4_4_4_4:			return "GL_UNSIGNED_SHORT_4_4_4_4";
36e5c31af7Sopenharmony_ci		case GL_UNSIGNED_SHORT_5_5_5_1:			return "GL_UNSIGNED_SHORT_5_5_5_1";
37e5c31af7Sopenharmony_ci		case GL_HALF_FLOAT:						return "GL_HALF_FLOAT";
38e5c31af7Sopenharmony_ci		case GL_INT_2_10_10_10_REV:				return "GL_INT_2_10_10_10_REV";
39e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_2_10_10_10_REV:	return "GL_UNSIGNED_INT_2_10_10_10_REV";
40e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_10F_11F_11F_REV:	return "GL_UNSIGNED_INT_10F_11F_11F_REV";
41e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_5_9_9_9_REV:		return "GL_UNSIGNED_INT_5_9_9_9_REV";
42e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_24_8:				return "GL_UNSIGNED_INT_24_8";
43e5c31af7Sopenharmony_ci		case GL_FLOAT_32_UNSIGNED_INT_24_8_REV:	return "GL_FLOAT_32_UNSIGNED_INT_24_8_REV";
44e5c31af7Sopenharmony_ci		case GL_SIGNED_NORMALIZED:				return "GL_SIGNED_NORMALIZED";
45e5c31af7Sopenharmony_ci		case GL_UNSIGNED_NORMALIZED:			return "GL_UNSIGNED_NORMALIZED";
46e5c31af7Sopenharmony_ci		case GL_HALF_FLOAT_OES:					return "GL_HALF_FLOAT_OES";
47e5c31af7Sopenharmony_ci		default:								return DE_NULL;
48e5c31af7Sopenharmony_ci	}
49e5c31af7Sopenharmony_ci}
50e5c31af7Sopenharmony_ci
51e5c31af7Sopenharmony_ciconst char* getParamQueryName (int value)
52e5c31af7Sopenharmony_ci{
53e5c31af7Sopenharmony_ci	switch (value)
54e5c31af7Sopenharmony_ci	{
55e5c31af7Sopenharmony_ci		case GL_LINE_WIDTH:							return "GL_LINE_WIDTH";
56e5c31af7Sopenharmony_ci		case GL_ALIASED_POINT_SIZE_RANGE:			return "GL_ALIASED_POINT_SIZE_RANGE";
57e5c31af7Sopenharmony_ci		case GL_ALIASED_LINE_WIDTH_RANGE:			return "GL_ALIASED_LINE_WIDTH_RANGE";
58e5c31af7Sopenharmony_ci		case GL_CULL_FACE_MODE:						return "GL_CULL_FACE_MODE";
59e5c31af7Sopenharmony_ci		case GL_FRONT_FACE:							return "GL_FRONT_FACE";
60e5c31af7Sopenharmony_ci		case GL_DEPTH_RANGE:						return "GL_DEPTH_RANGE";
61e5c31af7Sopenharmony_ci		case GL_DEPTH_WRITEMASK:					return "GL_DEPTH_WRITEMASK";
62e5c31af7Sopenharmony_ci		case GL_DEPTH_CLEAR_VALUE:					return "GL_DEPTH_CLEAR_VALUE";
63e5c31af7Sopenharmony_ci		case GL_DEPTH_FUNC:							return "GL_DEPTH_FUNC";
64e5c31af7Sopenharmony_ci		case GL_STENCIL_CLEAR_VALUE:				return "GL_STENCIL_CLEAR_VALUE";
65e5c31af7Sopenharmony_ci		case GL_STENCIL_FUNC:						return "GL_STENCIL_FUNC";
66e5c31af7Sopenharmony_ci		case GL_STENCIL_FAIL:						return "GL_STENCIL_FAIL";
67e5c31af7Sopenharmony_ci		case GL_STENCIL_PASS_DEPTH_FAIL:			return "GL_STENCIL_PASS_DEPTH_FAIL";
68e5c31af7Sopenharmony_ci		case GL_STENCIL_PASS_DEPTH_PASS:			return "GL_STENCIL_PASS_DEPTH_PASS";
69e5c31af7Sopenharmony_ci		case GL_STENCIL_REF:						return "GL_STENCIL_REF";
70e5c31af7Sopenharmony_ci		case GL_STENCIL_VALUE_MASK:					return "GL_STENCIL_VALUE_MASK";
71e5c31af7Sopenharmony_ci		case GL_STENCIL_WRITEMASK:					return "GL_STENCIL_WRITEMASK";
72e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_FUNC:					return "GL_STENCIL_BACK_FUNC";
73e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_FAIL:					return "GL_STENCIL_BACK_FAIL";
74e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_PASS_DEPTH_FAIL:		return "GL_STENCIL_BACK_PASS_DEPTH_FAIL";
75e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_PASS_DEPTH_PASS:		return "GL_STENCIL_BACK_PASS_DEPTH_PASS";
76e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_REF:					return "GL_STENCIL_BACK_REF";
77e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_VALUE_MASK:			return "GL_STENCIL_BACK_VALUE_MASK";
78e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_WRITEMASK:				return "GL_STENCIL_BACK_WRITEMASK";
79e5c31af7Sopenharmony_ci		case GL_VIEWPORT:							return "GL_VIEWPORT";
80e5c31af7Sopenharmony_ci		case GL_SCISSOR_BOX:						return "GL_SCISSOR_BOX";
81e5c31af7Sopenharmony_ci		case GL_SCISSOR_TEST:						return "GL_SCISSOR_TEST";
82e5c31af7Sopenharmony_ci		case GL_COLOR_CLEAR_VALUE:					return "GL_COLOR_CLEAR_VALUE";
83e5c31af7Sopenharmony_ci		case GL_COLOR_WRITEMASK:					return "GL_COLOR_WRITEMASK";
84e5c31af7Sopenharmony_ci		case GL_UNPACK_ALIGNMENT:					return "GL_UNPACK_ALIGNMENT";
85e5c31af7Sopenharmony_ci		case GL_PACK_ALIGNMENT:						return "GL_PACK_ALIGNMENT";
86e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_SIZE:					return "GL_MAX_TEXTURE_SIZE";
87e5c31af7Sopenharmony_ci		case GL_MAX_VIEWPORT_DIMS:					return "GL_MAX_VIEWPORT_DIMS";
88e5c31af7Sopenharmony_ci		case GL_SUBPIXEL_BITS:						return "GL_SUBPIXEL_BITS";
89e5c31af7Sopenharmony_ci		case GL_RED_BITS:							return "GL_RED_BITS";
90e5c31af7Sopenharmony_ci		case GL_GREEN_BITS:							return "GL_GREEN_BITS";
91e5c31af7Sopenharmony_ci		case GL_BLUE_BITS:							return "GL_BLUE_BITS";
92e5c31af7Sopenharmony_ci		case GL_ALPHA_BITS:							return "GL_ALPHA_BITS";
93e5c31af7Sopenharmony_ci		case GL_DEPTH_BITS:							return "GL_DEPTH_BITS";
94e5c31af7Sopenharmony_ci		case GL_STENCIL_BITS:						return "GL_STENCIL_BITS";
95e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_UNITS:				return "GL_POLYGON_OFFSET_UNITS";
96e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_FILL:				return "GL_POLYGON_OFFSET_FILL";
97e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_FACTOR:				return "GL_POLYGON_OFFSET_FACTOR";
98e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_2D:					return "GL_TEXTURE_BINDING_2D";
99e5c31af7Sopenharmony_ci		case GL_SAMPLE_BUFFERS:						return "GL_SAMPLE_BUFFERS";
100e5c31af7Sopenharmony_ci		case GL_SAMPLES:							return "GL_SAMPLES";
101e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE_VALUE:				return "GL_SAMPLE_COVERAGE_VALUE";
102e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE_INVERT:				return "GL_SAMPLE_COVERAGE_INVERT";
103e5c31af7Sopenharmony_ci		case GL_MAX_CUBE_MAP_TEXTURE_SIZE:			return "GL_MAX_CUBE_MAP_TEXTURE_SIZE";
104e5c31af7Sopenharmony_ci		case GL_MAX_RENDERBUFFER_SIZE:				return "GL_MAX_RENDERBUFFER_SIZE";
105e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATTRIBS:					return "GL_MAX_VERTEX_ATTRIBS";
106e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_UNIFORM_VECTORS:			return "GL_MAX_VERTEX_UNIFORM_VECTORS";
107e5c31af7Sopenharmony_ci		case GL_MAX_VARYING_VECTORS:				return "GL_MAX_VARYING_VECTORS";
108e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS:	return "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS";
109e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS:		return "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS";
110e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_IMAGE_UNITS:			return "GL_MAX_TEXTURE_IMAGE_UNITS";
111e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_UNIFORM_VECTORS:		return "GL_MAX_FRAGMENT_UNIFORM_VECTORS";
112e5c31af7Sopenharmony_ci		default:									return DE_NULL;
113e5c31af7Sopenharmony_ci	}
114e5c31af7Sopenharmony_ci}
115e5c31af7Sopenharmony_ci
116e5c31af7Sopenharmony_ciconst char* getProgramParamName (int value)
117e5c31af7Sopenharmony_ci{
118e5c31af7Sopenharmony_ci	switch (value)
119e5c31af7Sopenharmony_ci	{
120e5c31af7Sopenharmony_ci		case GL_ACTIVE_ATTRIBUTES:						return "GL_ACTIVE_ATTRIBUTES";
121e5c31af7Sopenharmony_ci		case GL_ACTIVE_ATTRIBUTE_MAX_LENGTH:			return "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH";
122e5c31af7Sopenharmony_ci		case GL_ACTIVE_UNIFORMS:						return "GL_ACTIVE_UNIFORMS";
123e5c31af7Sopenharmony_ci		case GL_ACTIVE_UNIFORM_BLOCKS:					return "GL_ACTIVE_UNIFORM_BLOCKS";
124e5c31af7Sopenharmony_ci		case GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH:	return "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH";
125e5c31af7Sopenharmony_ci		case GL_ACTIVE_UNIFORM_MAX_LENGTH:				return "GL_ACTIVE_UNIFORM_MAX_LENGTH";
126e5c31af7Sopenharmony_ci		case GL_ATTACHED_SHADERS:						return "GL_ATTACHED_SHADERS";
127e5c31af7Sopenharmony_ci		case GL_DELETE_STATUS:							return "GL_DELETE_STATUS";
128e5c31af7Sopenharmony_ci		case GL_INFO_LOG_LENGTH:						return "GL_INFO_LOG_LENGTH";
129e5c31af7Sopenharmony_ci		case GL_LINK_STATUS:							return "GL_LINK_STATUS";
130e5c31af7Sopenharmony_ci		case GL_PROGRAM_BINARY_RETRIEVABLE_HINT:		return "GL_PROGRAM_BINARY_RETRIEVABLE_HINT";
131e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER_MODE:			return "GL_TRANSFORM_FEEDBACK_BUFFER_MODE";
132e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_VARYINGS:			return "GL_TRANSFORM_FEEDBACK_VARYINGS";
133e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH:	return "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH";
134e5c31af7Sopenharmony_ci		case GL_VALIDATE_STATUS:						return "GL_VALIDATE_STATUS";
135e5c31af7Sopenharmony_ci		case GL_GEOMETRY_INPUT_TYPE:					return "GL_GEOMETRY_INPUT_TYPE";
136e5c31af7Sopenharmony_ci		case GL_GEOMETRY_OUTPUT_TYPE:					return "GL_GEOMETRY_OUTPUT_TYPE";
137e5c31af7Sopenharmony_ci		case GL_GEOMETRY_VERTICES_OUT:					return "GL_GEOMETRY_VERTICES_OUT";
138e5c31af7Sopenharmony_ci		case GL_GEOMETRY_SHADER_INVOCATIONS:			return "GL_GEOMETRY_SHADER_INVOCATIONS";
139e5c31af7Sopenharmony_ci		case GL_PROGRAM_SEPARABLE:						return "GL_PROGRAM_SEPARABLE";
140e5c31af7Sopenharmony_ci		case GL_COMPUTE_WORK_GROUP_SIZE:				return "GL_COMPUTE_WORK_GROUP_SIZE";
141e5c31af7Sopenharmony_ci		case GL_ACTIVE_ATOMIC_COUNTER_BUFFERS:			return "GL_ACTIVE_ATOMIC_COUNTER_BUFFERS";
142e5c31af7Sopenharmony_ci		case GL_TESS_CONTROL_OUTPUT_VERTICES:			return "GL_TESS_CONTROL_OUTPUT_VERTICES";
143e5c31af7Sopenharmony_ci		case GL_TESS_GEN_MODE:							return "GL_TESS_GEN_MODE";
144e5c31af7Sopenharmony_ci		case GL_TESS_GEN_SPACING:						return "GL_TESS_GEN_SPACING";
145e5c31af7Sopenharmony_ci		case GL_TESS_GEN_VERTEX_ORDER:					return "GL_TESS_GEN_VERTEX_ORDER";
146e5c31af7Sopenharmony_ci		case GL_TESS_GEN_POINT_MODE:					return "GL_TESS_GEN_POINT_MODE";
147e5c31af7Sopenharmony_ci		default:										return DE_NULL;
148e5c31af7Sopenharmony_ci	}
149e5c31af7Sopenharmony_ci}
150e5c31af7Sopenharmony_ci
151e5c31af7Sopenharmony_ciconst char* getUniformParamName (int value)
152e5c31af7Sopenharmony_ci{
153e5c31af7Sopenharmony_ci	switch (value)
154e5c31af7Sopenharmony_ci	{
155e5c31af7Sopenharmony_ci		case GL_UNIFORM_TYPE:			return "GL_UNIFORM_TYPE";
156e5c31af7Sopenharmony_ci		case GL_UNIFORM_SIZE:			return "GL_UNIFORM_SIZE";
157e5c31af7Sopenharmony_ci		case GL_UNIFORM_NAME_LENGTH:	return "GL_UNIFORM_NAME_LENGTH";
158e5c31af7Sopenharmony_ci		case GL_UNIFORM_BLOCK_INDEX:	return "GL_UNIFORM_BLOCK_INDEX";
159e5c31af7Sopenharmony_ci		case GL_UNIFORM_OFFSET:			return "GL_UNIFORM_OFFSET";
160e5c31af7Sopenharmony_ci		case GL_UNIFORM_ARRAY_STRIDE:	return "GL_UNIFORM_ARRAY_STRIDE";
161e5c31af7Sopenharmony_ci		case GL_UNIFORM_MATRIX_STRIDE:	return "GL_UNIFORM_MATRIX_STRIDE";
162e5c31af7Sopenharmony_ci		case GL_UNIFORM_IS_ROW_MAJOR:	return "GL_UNIFORM_IS_ROW_MAJOR";
163e5c31af7Sopenharmony_ci		default:						return DE_NULL;
164e5c31af7Sopenharmony_ci	}
165e5c31af7Sopenharmony_ci}
166e5c31af7Sopenharmony_ci
167e5c31af7Sopenharmony_ciconst char* getFramebufferAttachmentName (int value)
168e5c31af7Sopenharmony_ci{
169e5c31af7Sopenharmony_ci	switch (value)
170e5c31af7Sopenharmony_ci	{
171e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT0:			return "GL_COLOR_ATTACHMENT0";
172e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT1:			return "GL_COLOR_ATTACHMENT1";
173e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT2:			return "GL_COLOR_ATTACHMENT2";
174e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT3:			return "GL_COLOR_ATTACHMENT3";
175e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT4:			return "GL_COLOR_ATTACHMENT4";
176e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT5:			return "GL_COLOR_ATTACHMENT5";
177e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT6:			return "GL_COLOR_ATTACHMENT6";
178e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT7:			return "GL_COLOR_ATTACHMENT7";
179e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT8:			return "GL_COLOR_ATTACHMENT8";
180e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT9:			return "GL_COLOR_ATTACHMENT9";
181e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT10:			return "GL_COLOR_ATTACHMENT10";
182e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT11:			return "GL_COLOR_ATTACHMENT11";
183e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT12:			return "GL_COLOR_ATTACHMENT12";
184e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT13:			return "GL_COLOR_ATTACHMENT13";
185e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT14:			return "GL_COLOR_ATTACHMENT14";
186e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT15:			return "GL_COLOR_ATTACHMENT15";
187e5c31af7Sopenharmony_ci		case GL_DEPTH_ATTACHMENT:			return "GL_DEPTH_ATTACHMENT";
188e5c31af7Sopenharmony_ci		case GL_STENCIL_ATTACHMENT:			return "GL_STENCIL_ATTACHMENT";
189e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL_ATTACHMENT:	return "GL_DEPTH_STENCIL_ATTACHMENT";
190e5c31af7Sopenharmony_ci		case GL_BACK:						return "GL_BACK";
191e5c31af7Sopenharmony_ci		case GL_FRONT_LEFT:					return "GL_FRONT_LEFT";
192e5c31af7Sopenharmony_ci		case GL_FRONT_RIGHT:				return "GL_FRONT_RIGHT";
193e5c31af7Sopenharmony_ci		case GL_BACK_LEFT:					return "GL_BACK_LEFT";
194e5c31af7Sopenharmony_ci		case GL_BACK_RIGHT:					return "GL_BACK_RIGHT";
195e5c31af7Sopenharmony_ci		case GL_DEPTH:						return "GL_DEPTH";
196e5c31af7Sopenharmony_ci		case GL_STENCIL:					return "GL_STENCIL";
197e5c31af7Sopenharmony_ci		default:							return DE_NULL;
198e5c31af7Sopenharmony_ci	}
199e5c31af7Sopenharmony_ci}
200e5c31af7Sopenharmony_ci
201e5c31af7Sopenharmony_ciconst char* getFramebufferAttachmentParameterName (int value)
202e5c31af7Sopenharmony_ci{
203e5c31af7Sopenharmony_ci	switch (value)
204e5c31af7Sopenharmony_ci	{
205e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:				return "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE";
206e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:				return "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME";
207e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:			return "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL";
208e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:	return "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE";
209e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:			return "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER";
210e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:			return "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE";
211e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:			return "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING";
212e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE:				return "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE";
213e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:				return "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE";
214e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:				return "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE";
215e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:				return "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE";
216e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:				return "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE";
217e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:			return "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE";
218e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_ATTACHMENT_LAYERED:					return "GL_FRAMEBUFFER_ATTACHMENT_LAYERED";
219e5c31af7Sopenharmony_ci		default:												return DE_NULL;
220e5c31af7Sopenharmony_ci	}
221e5c31af7Sopenharmony_ci}
222e5c31af7Sopenharmony_ci
223e5c31af7Sopenharmony_ciconst char* getFramebufferTargetName (int value)
224e5c31af7Sopenharmony_ci{
225e5c31af7Sopenharmony_ci	switch (value)
226e5c31af7Sopenharmony_ci	{
227e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER:		return "GL_FRAMEBUFFER";
228e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER:		return "GL_RENDERBUFFER";
229e5c31af7Sopenharmony_ci		case GL_DRAW_FRAMEBUFFER:	return "GL_DRAW_FRAMEBUFFER";
230e5c31af7Sopenharmony_ci		case GL_READ_FRAMEBUFFER:	return "GL_READ_FRAMEBUFFER";
231e5c31af7Sopenharmony_ci		default:					return DE_NULL;
232e5c31af7Sopenharmony_ci	}
233e5c31af7Sopenharmony_ci}
234e5c31af7Sopenharmony_ci
235e5c31af7Sopenharmony_ciconst char* getFramebufferStatusName (int value)
236e5c31af7Sopenharmony_ci{
237e5c31af7Sopenharmony_ci	switch (value)
238e5c31af7Sopenharmony_ci	{
239e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_COMPLETE:						return "GL_FRAMEBUFFER_COMPLETE";
240e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:			return "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT";
241e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:	return "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";
242e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS:			return "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS";
243e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_UNSUPPORTED:					return "GL_FRAMEBUFFER_UNSUPPORTED";
244e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:			return "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE";
245e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS:		return "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS";
246e5c31af7Sopenharmony_ci		default:											return DE_NULL;
247e5c31af7Sopenharmony_ci	}
248e5c31af7Sopenharmony_ci}
249e5c31af7Sopenharmony_ci
250e5c31af7Sopenharmony_ciconst char* getFramebufferAttachmentTypeName (int value)
251e5c31af7Sopenharmony_ci{
252e5c31af7Sopenharmony_ci	switch (value)
253e5c31af7Sopenharmony_ci	{
254e5c31af7Sopenharmony_ci		case GL_NONE:					return "GL_NONE";
255e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT:	return "GL_FRAMEBUFFER_DEFAULT";
256e5c31af7Sopenharmony_ci		case GL_TEXTURE:				return "GL_TEXTURE";
257e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER:			return "GL_RENDERBUFFER";
258e5c31af7Sopenharmony_ci		default:						return DE_NULL;
259e5c31af7Sopenharmony_ci	}
260e5c31af7Sopenharmony_ci}
261e5c31af7Sopenharmony_ci
262e5c31af7Sopenharmony_ciconst char* getFramebufferColorEncodingName (int value)
263e5c31af7Sopenharmony_ci{
264e5c31af7Sopenharmony_ci	switch (value)
265e5c31af7Sopenharmony_ci	{
266e5c31af7Sopenharmony_ci		case GL_LINEAR:	return "GL_LINEAR";
267e5c31af7Sopenharmony_ci		case GL_SRGB:	return "GL_SRGB";
268e5c31af7Sopenharmony_ci		default:		return DE_NULL;
269e5c31af7Sopenharmony_ci	}
270e5c31af7Sopenharmony_ci}
271e5c31af7Sopenharmony_ci
272e5c31af7Sopenharmony_ciconst char* getFramebufferParameterName (int value)
273e5c31af7Sopenharmony_ci{
274e5c31af7Sopenharmony_ci	switch (value)
275e5c31af7Sopenharmony_ci	{
276e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT_WIDTH:					return "GL_FRAMEBUFFER_DEFAULT_WIDTH";
277e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT_HEIGHT:					return "GL_FRAMEBUFFER_DEFAULT_HEIGHT";
278e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT_SAMPLES:				return "GL_FRAMEBUFFER_DEFAULT_SAMPLES";
279e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS:	return "GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS";
280e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_DEFAULT_LAYERS:					return "GL_FRAMEBUFFER_DEFAULT_LAYERS";
281e5c31af7Sopenharmony_ci		default:											return DE_NULL;
282e5c31af7Sopenharmony_ci	}
283e5c31af7Sopenharmony_ci}
284e5c31af7Sopenharmony_ci
285e5c31af7Sopenharmony_ciconst char* getRenderbufferParameterName (int value)
286e5c31af7Sopenharmony_ci{
287e5c31af7Sopenharmony_ci	switch (value)
288e5c31af7Sopenharmony_ci	{
289e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_WIDTH:				return "GL_RENDERBUFFER_WIDTH";
290e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_HEIGHT:			return "GL_RENDERBUFFER_HEIGHT";
291e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_INTERNAL_FORMAT:	return "GL_RENDERBUFFER_INTERNAL_FORMAT";
292e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_RED_SIZE:			return "GL_RENDERBUFFER_RED_SIZE";
293e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_GREEN_SIZE:		return "GL_RENDERBUFFER_GREEN_SIZE";
294e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_BLUE_SIZE:			return "GL_RENDERBUFFER_BLUE_SIZE";
295e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_ALPHA_SIZE:		return "GL_RENDERBUFFER_ALPHA_SIZE";
296e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_DEPTH_SIZE:		return "GL_RENDERBUFFER_DEPTH_SIZE";
297e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_STENCIL_SIZE:		return "GL_RENDERBUFFER_STENCIL_SIZE";
298e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_SAMPLES:			return "GL_RENDERBUFFER_SAMPLES";
299e5c31af7Sopenharmony_ci		default:								return DE_NULL;
300e5c31af7Sopenharmony_ci	}
301e5c31af7Sopenharmony_ci}
302e5c31af7Sopenharmony_ci
303e5c31af7Sopenharmony_ciconst char* getPrimitiveTypeName (int value)
304e5c31af7Sopenharmony_ci{
305e5c31af7Sopenharmony_ci	switch (value)
306e5c31af7Sopenharmony_ci	{
307e5c31af7Sopenharmony_ci		case GL_POINTS:						return "GL_POINTS";
308e5c31af7Sopenharmony_ci		case GL_LINES:						return "GL_LINES";
309e5c31af7Sopenharmony_ci		case GL_LINE_STRIP:					return "GL_LINE_STRIP";
310e5c31af7Sopenharmony_ci		case GL_LINE_LOOP:					return "GL_LINE_LOOP";
311e5c31af7Sopenharmony_ci		case GL_TRIANGLES:					return "GL_TRIANGLES";
312e5c31af7Sopenharmony_ci		case GL_TRIANGLE_STRIP:				return "GL_TRIANGLE_STRIP";
313e5c31af7Sopenharmony_ci		case GL_TRIANGLE_FAN:				return "GL_TRIANGLE_FAN";
314e5c31af7Sopenharmony_ci		case GL_LINES_ADJACENCY:			return "GL_LINES_ADJACENCY";
315e5c31af7Sopenharmony_ci		case GL_LINE_STRIP_ADJACENCY:		return "GL_LINE_STRIP_ADJACENCY";
316e5c31af7Sopenharmony_ci		case GL_TRIANGLES_ADJACENCY:		return "GL_TRIANGLES_ADJACENCY";
317e5c31af7Sopenharmony_ci		case GL_TRIANGLE_STRIP_ADJACENCY:	return "GL_TRIANGLE_STRIP_ADJACENCY";
318e5c31af7Sopenharmony_ci		default:							return DE_NULL;
319e5c31af7Sopenharmony_ci	}
320e5c31af7Sopenharmony_ci}
321e5c31af7Sopenharmony_ci
322e5c31af7Sopenharmony_ciconst char* getBlendFactorName (int value)
323e5c31af7Sopenharmony_ci{
324e5c31af7Sopenharmony_ci	switch (value)
325e5c31af7Sopenharmony_ci	{
326e5c31af7Sopenharmony_ci		case GL_ZERO:						return "GL_ZERO";
327e5c31af7Sopenharmony_ci		case GL_ONE:						return "GL_ONE";
328e5c31af7Sopenharmony_ci		case GL_SRC_ALPHA_SATURATE:			return "GL_SRC_ALPHA_SATURATE";
329e5c31af7Sopenharmony_ci		case GL_SRC_COLOR:					return "GL_SRC_COLOR";
330e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_SRC_COLOR:		return "GL_ONE_MINUS_SRC_COLOR";
331e5c31af7Sopenharmony_ci		case GL_SRC_ALPHA:					return "GL_SRC_ALPHA";
332e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_SRC_ALPHA:		return "GL_ONE_MINUS_SRC_ALPHA";
333e5c31af7Sopenharmony_ci		case GL_SRC1_COLOR:					return "GL_SRC1_COLOR";
334e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_SRC1_COLOR:		return "GL_ONE_MINUS_SRC1_COLOR";
335e5c31af7Sopenharmony_ci		case GL_SRC1_ALPHA:					return "GL_SRC1_ALPHA";
336e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_SRC1_ALPHA:		return "GL_ONE_MINUS_SRC1_ALPHA";
337e5c31af7Sopenharmony_ci		case GL_DST_COLOR:					return "GL_DST_COLOR";
338e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_DST_COLOR:		return "GL_ONE_MINUS_DST_COLOR";
339e5c31af7Sopenharmony_ci		case GL_DST_ALPHA:					return "GL_DST_ALPHA";
340e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_DST_ALPHA:		return "GL_ONE_MINUS_DST_ALPHA";
341e5c31af7Sopenharmony_ci		case GL_CONSTANT_COLOR:				return "GL_CONSTANT_COLOR";
342e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_CONSTANT_COLOR:	return "GL_ONE_MINUS_CONSTANT_COLOR";
343e5c31af7Sopenharmony_ci		case GL_CONSTANT_ALPHA:				return "GL_CONSTANT_ALPHA";
344e5c31af7Sopenharmony_ci		case GL_ONE_MINUS_CONSTANT_ALPHA:	return "GL_ONE_MINUS_CONSTANT_ALPHA";
345e5c31af7Sopenharmony_ci		default:							return DE_NULL;
346e5c31af7Sopenharmony_ci	}
347e5c31af7Sopenharmony_ci}
348e5c31af7Sopenharmony_ci
349e5c31af7Sopenharmony_ciconst char* getBlendEquationName (int value)
350e5c31af7Sopenharmony_ci{
351e5c31af7Sopenharmony_ci	switch (value)
352e5c31af7Sopenharmony_ci	{
353e5c31af7Sopenharmony_ci		case GL_FUNC_ADD:				return "GL_FUNC_ADD";
354e5c31af7Sopenharmony_ci		case GL_FUNC_SUBTRACT:			return "GL_FUNC_SUBTRACT";
355e5c31af7Sopenharmony_ci		case GL_FUNC_REVERSE_SUBTRACT:	return "GL_FUNC_REVERSE_SUBTRACT";
356e5c31af7Sopenharmony_ci		case GL_MIN:					return "GL_MIN";
357e5c31af7Sopenharmony_ci		case GL_MAX:					return "GL_MAX";
358e5c31af7Sopenharmony_ci		case GL_MULTIPLY_KHR:			return "GL_MULTIPLY_KHR";
359e5c31af7Sopenharmony_ci		case GL_SCREEN_KHR:				return "GL_SCREEN_KHR";
360e5c31af7Sopenharmony_ci		case GL_OVERLAY_KHR:			return "GL_OVERLAY_KHR";
361e5c31af7Sopenharmony_ci		case GL_DARKEN_KHR:				return "GL_DARKEN_KHR";
362e5c31af7Sopenharmony_ci		case GL_LIGHTEN_KHR:			return "GL_LIGHTEN_KHR";
363e5c31af7Sopenharmony_ci		case GL_COLORDODGE_KHR:			return "GL_COLORDODGE_KHR";
364e5c31af7Sopenharmony_ci		case GL_COLORBURN_KHR:			return "GL_COLORBURN_KHR";
365e5c31af7Sopenharmony_ci		case GL_HARDLIGHT_KHR:			return "GL_HARDLIGHT_KHR";
366e5c31af7Sopenharmony_ci		case GL_SOFTLIGHT_KHR:			return "GL_SOFTLIGHT_KHR";
367e5c31af7Sopenharmony_ci		case GL_DIFFERENCE_KHR:			return "GL_DIFFERENCE_KHR";
368e5c31af7Sopenharmony_ci		case GL_EXCLUSION_KHR:			return "GL_EXCLUSION_KHR";
369e5c31af7Sopenharmony_ci		case GL_HSL_HUE_KHR:			return "GL_HSL_HUE_KHR";
370e5c31af7Sopenharmony_ci		case GL_HSL_SATURATION_KHR:		return "GL_HSL_SATURATION_KHR";
371e5c31af7Sopenharmony_ci		case GL_HSL_COLOR_KHR:			return "GL_HSL_COLOR_KHR";
372e5c31af7Sopenharmony_ci		case GL_HSL_LUMINOSITY_KHR:		return "GL_HSL_LUMINOSITY_KHR";
373e5c31af7Sopenharmony_ci		default:						return DE_NULL;
374e5c31af7Sopenharmony_ci	}
375e5c31af7Sopenharmony_ci}
376e5c31af7Sopenharmony_ci
377e5c31af7Sopenharmony_ciconst char* getBufferTargetName (int value)
378e5c31af7Sopenharmony_ci{
379e5c31af7Sopenharmony_ci	switch (value)
380e5c31af7Sopenharmony_ci	{
381e5c31af7Sopenharmony_ci		case GL_ARRAY_BUFFER:				return "GL_ARRAY_BUFFER";
382e5c31af7Sopenharmony_ci		case GL_ELEMENT_ARRAY_BUFFER:		return "GL_ELEMENT_ARRAY_BUFFER";
383e5c31af7Sopenharmony_ci		case GL_COPY_READ_BUFFER:			return "GL_COPY_READ_BUFFER";
384e5c31af7Sopenharmony_ci		case GL_COPY_WRITE_BUFFER:			return "GL_COPY_WRITE_BUFFER";
385e5c31af7Sopenharmony_ci		case GL_PIXEL_PACK_BUFFER:			return "GL_PIXEL_PACK_BUFFER";
386e5c31af7Sopenharmony_ci		case GL_PIXEL_UNPACK_BUFFER:		return "GL_PIXEL_UNPACK_BUFFER";
387e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER:	return "GL_TRANSFORM_FEEDBACK_BUFFER";
388e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER:				return "GL_UNIFORM_BUFFER";
389e5c31af7Sopenharmony_ci		case GL_DRAW_INDIRECT_BUFFER:		return "GL_DRAW_INDIRECT_BUFFER";
390e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER:		return "GL_SHADER_STORAGE_BUFFER";
391e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER:				return "GL_TEXTURE_BUFFER";
392e5c31af7Sopenharmony_ci		case GL_DISPATCH_INDIRECT_BUFFER:	return "GL_DISPATCH_INDIRECT_BUFFER";
393e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER:		return "GL_ATOMIC_COUNTER_BUFFER";
394e5c31af7Sopenharmony_ci		default:							return DE_NULL;
395e5c31af7Sopenharmony_ci	}
396e5c31af7Sopenharmony_ci}
397e5c31af7Sopenharmony_ci
398e5c31af7Sopenharmony_ciconst char* getBufferBindingName (int value)
399e5c31af7Sopenharmony_ci{
400e5c31af7Sopenharmony_ci	switch (value)
401e5c31af7Sopenharmony_ci	{
402e5c31af7Sopenharmony_ci		case GL_ARRAY_BUFFER_BINDING:			return "GL_ARRAY_BUFFER_BINDING";
403e5c31af7Sopenharmony_ci		case GL_ELEMENT_ARRAY_BUFFER_BINDING:	return "GL_ELEMENT_ARRAY_BUFFER_BINDING";
404e5c31af7Sopenharmony_ci		default:								return DE_NULL;
405e5c31af7Sopenharmony_ci	}
406e5c31af7Sopenharmony_ci}
407e5c31af7Sopenharmony_ci
408e5c31af7Sopenharmony_ciconst char* getUsageName (int value)
409e5c31af7Sopenharmony_ci{
410e5c31af7Sopenharmony_ci	switch (value)
411e5c31af7Sopenharmony_ci	{
412e5c31af7Sopenharmony_ci		case GL_STREAM_DRAW:	return "GL_STREAM_DRAW";
413e5c31af7Sopenharmony_ci		case GL_STREAM_READ:	return "GL_STREAM_READ";
414e5c31af7Sopenharmony_ci		case GL_STREAM_COPY:	return "GL_STREAM_COPY";
415e5c31af7Sopenharmony_ci		case GL_STATIC_DRAW:	return "GL_STATIC_DRAW";
416e5c31af7Sopenharmony_ci		case GL_STATIC_READ:	return "GL_STATIC_READ";
417e5c31af7Sopenharmony_ci		case GL_STATIC_COPY:	return "GL_STATIC_COPY";
418e5c31af7Sopenharmony_ci		case GL_DYNAMIC_DRAW:	return "GL_DYNAMIC_DRAW";
419e5c31af7Sopenharmony_ci		case GL_DYNAMIC_READ:	return "GL_DYNAMIC_READ";
420e5c31af7Sopenharmony_ci		case GL_DYNAMIC_COPY:	return "GL_DYNAMIC_COPY";
421e5c31af7Sopenharmony_ci		default:				return DE_NULL;
422e5c31af7Sopenharmony_ci	}
423e5c31af7Sopenharmony_ci}
424e5c31af7Sopenharmony_ci
425e5c31af7Sopenharmony_ciconst char* getBufferQueryName (int value)
426e5c31af7Sopenharmony_ci{
427e5c31af7Sopenharmony_ci	switch (value)
428e5c31af7Sopenharmony_ci	{
429e5c31af7Sopenharmony_ci		case GL_BUFFER_SIZE:			return "GL_BUFFER_SIZE";
430e5c31af7Sopenharmony_ci		case GL_BUFFER_USAGE:			return "GL_BUFFER_USAGE";
431e5c31af7Sopenharmony_ci		case GL_BUFFER_ACCESS_FLAGS:	return "GL_BUFFER_ACCESS_FLAGS";
432e5c31af7Sopenharmony_ci		case GL_BUFFER_MAPPED:			return "GL_BUFFER_MAPPED";
433e5c31af7Sopenharmony_ci		case GL_BUFFER_MAP_OFFSET:		return "GL_BUFFER_MAP_OFFSET";
434e5c31af7Sopenharmony_ci		case GL_BUFFER_MAP_LENGTH:		return "GL_BUFFER_MAP_LENGTH";
435e5c31af7Sopenharmony_ci		default:						return DE_NULL;
436e5c31af7Sopenharmony_ci	}
437e5c31af7Sopenharmony_ci}
438e5c31af7Sopenharmony_ci
439e5c31af7Sopenharmony_ciconst char* getFaceName (int value)
440e5c31af7Sopenharmony_ci{
441e5c31af7Sopenharmony_ci	switch (value)
442e5c31af7Sopenharmony_ci	{
443e5c31af7Sopenharmony_ci		case GL_FRONT:			return "GL_FRONT";
444e5c31af7Sopenharmony_ci		case GL_BACK:			return "GL_BACK";
445e5c31af7Sopenharmony_ci		case GL_FRONT_AND_BACK:	return "GL_FRONT_AND_BACK";
446e5c31af7Sopenharmony_ci		default:				return DE_NULL;
447e5c31af7Sopenharmony_ci	}
448e5c31af7Sopenharmony_ci}
449e5c31af7Sopenharmony_ci
450e5c31af7Sopenharmony_ciconst char* getCompareFuncName (int value)
451e5c31af7Sopenharmony_ci{
452e5c31af7Sopenharmony_ci	switch (value)
453e5c31af7Sopenharmony_ci	{
454e5c31af7Sopenharmony_ci		case GL_NEVER:		return "GL_NEVER";
455e5c31af7Sopenharmony_ci		case GL_LESS:		return "GL_LESS";
456e5c31af7Sopenharmony_ci		case GL_LEQUAL:		return "GL_LEQUAL";
457e5c31af7Sopenharmony_ci		case GL_GREATER:	return "GL_GREATER";
458e5c31af7Sopenharmony_ci		case GL_EQUAL:		return "GL_EQUAL";
459e5c31af7Sopenharmony_ci		case GL_NOTEQUAL:	return "GL_NOTEQUAL";
460e5c31af7Sopenharmony_ci		case GL_GEQUAL:		return "GL_GEQUAL";
461e5c31af7Sopenharmony_ci		case GL_ALWAYS:		return "GL_ALWAYS";
462e5c31af7Sopenharmony_ci		default:			return DE_NULL;
463e5c31af7Sopenharmony_ci	}
464e5c31af7Sopenharmony_ci}
465e5c31af7Sopenharmony_ci
466e5c31af7Sopenharmony_ciconst char* getEnableCapName (int value)
467e5c31af7Sopenharmony_ci{
468e5c31af7Sopenharmony_ci	switch (value)
469e5c31af7Sopenharmony_ci	{
470e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D:						return "GL_TEXTURE_2D";
471e5c31af7Sopenharmony_ci		case GL_CULL_FACE:						return "GL_CULL_FACE";
472e5c31af7Sopenharmony_ci		case GL_BLEND:							return "GL_BLEND";
473e5c31af7Sopenharmony_ci		case GL_DITHER:							return "GL_DITHER";
474e5c31af7Sopenharmony_ci		case GL_STENCIL_TEST:					return "GL_STENCIL_TEST";
475e5c31af7Sopenharmony_ci		case GL_DEPTH_TEST:						return "GL_DEPTH_TEST";
476e5c31af7Sopenharmony_ci		case GL_SCISSOR_TEST:					return "GL_SCISSOR_TEST";
477e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_FILL:			return "GL_POLYGON_OFFSET_FILL";
478e5c31af7Sopenharmony_ci		case GL_SAMPLE_ALPHA_TO_COVERAGE:		return "GL_SAMPLE_ALPHA_TO_COVERAGE";
479e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE:				return "GL_SAMPLE_COVERAGE";
480e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART_FIXED_INDEX:	return "GL_PRIMITIVE_RESTART_FIXED_INDEX";
481e5c31af7Sopenharmony_ci		case GL_RASTERIZER_DISCARD:				return "GL_RASTERIZER_DISCARD";
482e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_SRGB:				return "GL_FRAMEBUFFER_SRGB";
483e5c31af7Sopenharmony_ci		case GL_SAMPLE_SHADING:					return "GL_SAMPLE_SHADING";
484e5c31af7Sopenharmony_ci		case GL_DEPTH_CLAMP:					return "GL_DEPTH_CLAMP";
485e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART:				return "GL_PRIMITIVE_RESTART";
486e5c31af7Sopenharmony_ci		case GL_SAMPLE_MASK:					return "GL_SAMPLE_MASK";
487e5c31af7Sopenharmony_ci		case GL_DEBUG_OUTPUT:					return "GL_DEBUG_OUTPUT";
488e5c31af7Sopenharmony_ci		case GL_DEBUG_OUTPUT_SYNCHRONOUS:		return "GL_DEBUG_OUTPUT_SYNCHRONOUS";
489e5c31af7Sopenharmony_ci		case GL_BLEND_ADVANCED_COHERENT_KHR:	return "GL_BLEND_ADVANCED_COHERENT_KHR";
490e5c31af7Sopenharmony_ci		default:								return DE_NULL;
491e5c31af7Sopenharmony_ci	}
492e5c31af7Sopenharmony_ci}
493e5c31af7Sopenharmony_ci
494e5c31af7Sopenharmony_ciconst char* getIndexedEnableCapName (int value)
495e5c31af7Sopenharmony_ci{
496e5c31af7Sopenharmony_ci	switch (value)
497e5c31af7Sopenharmony_ci	{
498e5c31af7Sopenharmony_ci		case GL_BLEND:	return "GL_BLEND";
499e5c31af7Sopenharmony_ci		default:		return DE_NULL;
500e5c31af7Sopenharmony_ci	}
501e5c31af7Sopenharmony_ci}
502e5c31af7Sopenharmony_ci
503e5c31af7Sopenharmony_ciconst char* getWindingName (int value)
504e5c31af7Sopenharmony_ci{
505e5c31af7Sopenharmony_ci	switch (value)
506e5c31af7Sopenharmony_ci	{
507e5c31af7Sopenharmony_ci		case GL_CW:		return "GL_CW";
508e5c31af7Sopenharmony_ci		case GL_CCW:	return "GL_CCW";
509e5c31af7Sopenharmony_ci		default:		return DE_NULL;
510e5c31af7Sopenharmony_ci	}
511e5c31af7Sopenharmony_ci}
512e5c31af7Sopenharmony_ci
513e5c31af7Sopenharmony_ciconst char* getHintModeName (int value)
514e5c31af7Sopenharmony_ci{
515e5c31af7Sopenharmony_ci	switch (value)
516e5c31af7Sopenharmony_ci	{
517e5c31af7Sopenharmony_ci		case GL_DONT_CARE:	return "GL_DONT_CARE";
518e5c31af7Sopenharmony_ci		case GL_FASTEST:	return "GL_FASTEST";
519e5c31af7Sopenharmony_ci		case GL_NICEST:		return "GL_NICEST";
520e5c31af7Sopenharmony_ci		default:			return DE_NULL;
521e5c31af7Sopenharmony_ci	}
522e5c31af7Sopenharmony_ci}
523e5c31af7Sopenharmony_ci
524e5c31af7Sopenharmony_ciconst char* getHintName (int value)
525e5c31af7Sopenharmony_ci{
526e5c31af7Sopenharmony_ci	switch (value)
527e5c31af7Sopenharmony_ci	{
528e5c31af7Sopenharmony_ci		case GL_GENERATE_MIPMAP_HINT:	return "GL_GENERATE_MIPMAP_HINT";
529e5c31af7Sopenharmony_ci		default:						return DE_NULL;
530e5c31af7Sopenharmony_ci	}
531e5c31af7Sopenharmony_ci}
532e5c31af7Sopenharmony_ci
533e5c31af7Sopenharmony_ciconst char* getStencilOpName (int value)
534e5c31af7Sopenharmony_ci{
535e5c31af7Sopenharmony_ci	switch (value)
536e5c31af7Sopenharmony_ci	{
537e5c31af7Sopenharmony_ci		case GL_ZERO:		return "GL_ZERO";
538e5c31af7Sopenharmony_ci		case GL_KEEP:		return "GL_KEEP";
539e5c31af7Sopenharmony_ci		case GL_REPLACE:	return "GL_REPLACE";
540e5c31af7Sopenharmony_ci		case GL_INCR:		return "GL_INCR";
541e5c31af7Sopenharmony_ci		case GL_DECR:		return "GL_DECR";
542e5c31af7Sopenharmony_ci		case GL_INVERT:		return "GL_INVERT";
543e5c31af7Sopenharmony_ci		case GL_INCR_WRAP:	return "GL_INCR_WRAP";
544e5c31af7Sopenharmony_ci		case GL_DECR_WRAP:	return "GL_DECR_WRAP";
545e5c31af7Sopenharmony_ci		default:			return DE_NULL;
546e5c31af7Sopenharmony_ci	}
547e5c31af7Sopenharmony_ci}
548e5c31af7Sopenharmony_ci
549e5c31af7Sopenharmony_ciconst char* getShaderTypeName (int value)
550e5c31af7Sopenharmony_ci{
551e5c31af7Sopenharmony_ci	switch (value)
552e5c31af7Sopenharmony_ci	{
553e5c31af7Sopenharmony_ci		case GL_VERTEX_SHADER:			return "GL_VERTEX_SHADER";
554e5c31af7Sopenharmony_ci		case GL_FRAGMENT_SHADER:		return "GL_FRAGMENT_SHADER";
555e5c31af7Sopenharmony_ci		case GL_COMPUTE_SHADER:			return "GL_COMPUTE_SHADER";
556e5c31af7Sopenharmony_ci		case GL_TESS_CONTROL_SHADER:	return "GL_TESS_CONTROL_SHADER";
557e5c31af7Sopenharmony_ci		case GL_TESS_EVALUATION_SHADER:	return "GL_TESS_EVALUATION_SHADER";
558e5c31af7Sopenharmony_ci		case GL_GEOMETRY_SHADER:		return "GL_GEOMETRY_SHADER";
559e5c31af7Sopenharmony_ci		default:						return DE_NULL;
560e5c31af7Sopenharmony_ci	}
561e5c31af7Sopenharmony_ci}
562e5c31af7Sopenharmony_ci
563e5c31af7Sopenharmony_ciconst char* getBufferName (int value)
564e5c31af7Sopenharmony_ci{
565e5c31af7Sopenharmony_ci	switch (value)
566e5c31af7Sopenharmony_ci	{
567e5c31af7Sopenharmony_ci		case GL_COLOR:			return "GL_COLOR";
568e5c31af7Sopenharmony_ci		case GL_DEPTH:			return "GL_DEPTH";
569e5c31af7Sopenharmony_ci		case GL_STENCIL:		return "GL_STENCIL";
570e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL:	return "GL_DEPTH_STENCIL";
571e5c31af7Sopenharmony_ci		default:				return DE_NULL;
572e5c31af7Sopenharmony_ci	}
573e5c31af7Sopenharmony_ci}
574e5c31af7Sopenharmony_ci
575e5c31af7Sopenharmony_ciconst char* getInvalidateAttachmentName (int value)
576e5c31af7Sopenharmony_ci{
577e5c31af7Sopenharmony_ci	switch (value)
578e5c31af7Sopenharmony_ci	{
579e5c31af7Sopenharmony_ci		case GL_COLOR:						return "GL_COLOR";
580e5c31af7Sopenharmony_ci		case GL_DEPTH:						return "GL_DEPTH";
581e5c31af7Sopenharmony_ci		case GL_STENCIL:					return "GL_STENCIL";
582e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT0:			return "GL_COLOR_ATTACHMENT0";
583e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT1:			return "GL_COLOR_ATTACHMENT1";
584e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT2:			return "GL_COLOR_ATTACHMENT2";
585e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT3:			return "GL_COLOR_ATTACHMENT3";
586e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT4:			return "GL_COLOR_ATTACHMENT4";
587e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT5:			return "GL_COLOR_ATTACHMENT5";
588e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT6:			return "GL_COLOR_ATTACHMENT6";
589e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT7:			return "GL_COLOR_ATTACHMENT7";
590e5c31af7Sopenharmony_ci		case GL_DEPTH_ATTACHMENT:			return "GL_DEPTH_ATTACHMENT";
591e5c31af7Sopenharmony_ci		case GL_STENCIL_ATTACHMENT:			return "GL_STENCIL_ATTACHMENT";
592e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL_ATTACHMENT:	return "GL_DEPTH_STENCIL_ATTACHMENT";
593e5c31af7Sopenharmony_ci		default:							return DE_NULL;
594e5c31af7Sopenharmony_ci	}
595e5c31af7Sopenharmony_ci}
596e5c31af7Sopenharmony_ci
597e5c31af7Sopenharmony_ciconst char* getDrawReadBufferName (int value)
598e5c31af7Sopenharmony_ci{
599e5c31af7Sopenharmony_ci	switch (value)
600e5c31af7Sopenharmony_ci	{
601e5c31af7Sopenharmony_ci		case GL_COLOR:						return "GL_COLOR";
602e5c31af7Sopenharmony_ci		case GL_DEPTH:						return "GL_DEPTH";
603e5c31af7Sopenharmony_ci		case GL_STENCIL:					return "GL_STENCIL";
604e5c31af7Sopenharmony_ci		case GL_BACK:						return "GL_BACK";
605e5c31af7Sopenharmony_ci		case GL_NONE:						return "GL_NONE";
606e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT0:			return "GL_COLOR_ATTACHMENT0";
607e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT1:			return "GL_COLOR_ATTACHMENT1";
608e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT2:			return "GL_COLOR_ATTACHMENT2";
609e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT3:			return "GL_COLOR_ATTACHMENT3";
610e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT4:			return "GL_COLOR_ATTACHMENT4";
611e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT5:			return "GL_COLOR_ATTACHMENT5";
612e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT6:			return "GL_COLOR_ATTACHMENT6";
613e5c31af7Sopenharmony_ci		case GL_COLOR_ATTACHMENT7:			return "GL_COLOR_ATTACHMENT7";
614e5c31af7Sopenharmony_ci		case GL_DEPTH_ATTACHMENT:			return "GL_DEPTH_ATTACHMENT";
615e5c31af7Sopenharmony_ci		case GL_STENCIL_ATTACHMENT:			return "GL_STENCIL_ATTACHMENT";
616e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL_ATTACHMENT:	return "GL_DEPTH_STENCIL_ATTACHMENT";
617e5c31af7Sopenharmony_ci		default:							return DE_NULL;
618e5c31af7Sopenharmony_ci	}
619e5c31af7Sopenharmony_ci}
620e5c31af7Sopenharmony_ci
621e5c31af7Sopenharmony_ciconst char* getTextureTargetName (int value)
622e5c31af7Sopenharmony_ci{
623e5c31af7Sopenharmony_ci	switch (value)
624e5c31af7Sopenharmony_ci	{
625e5c31af7Sopenharmony_ci		case GL_TEXTURE_1D:						return "GL_TEXTURE_1D";
626e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D:						return "GL_TEXTURE_2D";
627e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP:				return "GL_TEXTURE_CUBE_MAP";
628e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_X:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_X";
629e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_X";
630e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_Y";
631e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y";
632e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_Z";
633e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z";
634e5c31af7Sopenharmony_ci		case GL_TEXTURE_3D:						return "GL_TEXTURE_3D";
635e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_ARRAY:				return "GL_TEXTURE_2D_ARRAY";
636e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_MULTISAMPLE:			return "GL_TEXTURE_2D_MULTISAMPLE";
637e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:	return "GL_TEXTURE_2D_MULTISAMPLE_ARRAY";
638e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER:					return "GL_TEXTURE_BUFFER";
639e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_ARRAY:			return "GL_TEXTURE_CUBE_MAP_ARRAY";
640e5c31af7Sopenharmony_ci		default:								return DE_NULL;
641e5c31af7Sopenharmony_ci	}
642e5c31af7Sopenharmony_ci}
643e5c31af7Sopenharmony_ci
644e5c31af7Sopenharmony_ciconst char* getTextureParameterName (int value)
645e5c31af7Sopenharmony_ci{
646e5c31af7Sopenharmony_ci	switch (value)
647e5c31af7Sopenharmony_ci	{
648e5c31af7Sopenharmony_ci		case GL_TEXTURE_WRAP_S:				return "GL_TEXTURE_WRAP_S";
649e5c31af7Sopenharmony_ci		case GL_TEXTURE_WRAP_T:				return "GL_TEXTURE_WRAP_T";
650e5c31af7Sopenharmony_ci		case GL_TEXTURE_WRAP_R:				return "GL_TEXTURE_WRAP_R";
651e5c31af7Sopenharmony_ci		case GL_TEXTURE_BASE_LEVEL:			return "GL_TEXTURE_BASE_LEVEL";
652e5c31af7Sopenharmony_ci		case GL_TEXTURE_MAX_LEVEL:			return "GL_TEXTURE_MAX_LEVEL";
653e5c31af7Sopenharmony_ci		case GL_TEXTURE_COMPARE_MODE:		return "GL_TEXTURE_COMPARE_MODE";
654e5c31af7Sopenharmony_ci		case GL_TEXTURE_COMPARE_FUNC:		return "GL_TEXTURE_COMPARE_FUNC";
655e5c31af7Sopenharmony_ci		case GL_TEXTURE_MAX_LOD:			return "GL_TEXTURE_MAX_LOD";
656e5c31af7Sopenharmony_ci		case GL_TEXTURE_MIN_LOD:			return "GL_TEXTURE_MIN_LOD";
657e5c31af7Sopenharmony_ci		case GL_TEXTURE_SWIZZLE_R:			return "GL_TEXTURE_SWIZZLE_R";
658e5c31af7Sopenharmony_ci		case GL_TEXTURE_SWIZZLE_G:			return "GL_TEXTURE_SWIZZLE_G";
659e5c31af7Sopenharmony_ci		case GL_TEXTURE_SWIZZLE_B:			return "GL_TEXTURE_SWIZZLE_B";
660e5c31af7Sopenharmony_ci		case GL_TEXTURE_SWIZZLE_A:			return "GL_TEXTURE_SWIZZLE_A";
661e5c31af7Sopenharmony_ci		case GL_TEXTURE_MIN_FILTER:			return "GL_TEXTURE_MIN_FILTER";
662e5c31af7Sopenharmony_ci		case GL_TEXTURE_MAG_FILTER:			return "GL_TEXTURE_MAG_FILTER";
663e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL_TEXTURE_MODE:	return "GL_DEPTH_STENCIL_TEXTURE_MODE";
664e5c31af7Sopenharmony_ci		case GL_TEXTURE_SRGB_DECODE_EXT:	return "GL_TEXTURE_SRGB_DECODE_EXT";
665e5c31af7Sopenharmony_ci		case GL_TEXTURE_BORDER_COLOR:		return "GL_TEXTURE_BORDER_COLOR";
666e5c31af7Sopenharmony_ci		case GL_TEXTURE_IMMUTABLE_LEVELS:	return "GL_TEXTURE_IMMUTABLE_LEVELS";
667e5c31af7Sopenharmony_ci		case GL_TEXTURE_IMMUTABLE_FORMAT:	return "GL_TEXTURE_IMMUTABLE_FORMAT";
668e5c31af7Sopenharmony_ci		default:							return DE_NULL;
669e5c31af7Sopenharmony_ci	}
670e5c31af7Sopenharmony_ci}
671e5c31af7Sopenharmony_ci
672e5c31af7Sopenharmony_ciconst char* getTextureLevelParameterName (int value)
673e5c31af7Sopenharmony_ci{
674e5c31af7Sopenharmony_ci	switch (value)
675e5c31af7Sopenharmony_ci	{
676e5c31af7Sopenharmony_ci		case GL_TEXTURE_SAMPLES:					return "GL_TEXTURE_SAMPLES";
677e5c31af7Sopenharmony_ci		case GL_TEXTURE_FIXED_SAMPLE_LOCATIONS:		return "GL_TEXTURE_FIXED_SAMPLE_LOCATIONS";
678e5c31af7Sopenharmony_ci		case GL_TEXTURE_WIDTH:						return "GL_TEXTURE_WIDTH";
679e5c31af7Sopenharmony_ci		case GL_TEXTURE_HEIGHT:						return "GL_TEXTURE_HEIGHT";
680e5c31af7Sopenharmony_ci		case GL_TEXTURE_DEPTH:						return "GL_TEXTURE_DEPTH";
681e5c31af7Sopenharmony_ci		case GL_TEXTURE_INTERNAL_FORMAT:			return "GL_TEXTURE_INTERNAL_FORMAT";
682e5c31af7Sopenharmony_ci		case GL_TEXTURE_RED_SIZE:					return "GL_TEXTURE_RED_SIZE";
683e5c31af7Sopenharmony_ci		case GL_TEXTURE_GREEN_SIZE:					return "GL_TEXTURE_GREEN_SIZE";
684e5c31af7Sopenharmony_ci		case GL_TEXTURE_BLUE_SIZE:					return "GL_TEXTURE_BLUE_SIZE";
685e5c31af7Sopenharmony_ci		case GL_TEXTURE_ALPHA_SIZE:					return "GL_TEXTURE_ALPHA_SIZE";
686e5c31af7Sopenharmony_ci		case GL_TEXTURE_DEPTH_SIZE:					return "GL_TEXTURE_DEPTH_SIZE";
687e5c31af7Sopenharmony_ci		case GL_TEXTURE_STENCIL_SIZE:				return "GL_TEXTURE_STENCIL_SIZE";
688e5c31af7Sopenharmony_ci		case GL_TEXTURE_SHARED_SIZE:				return "GL_TEXTURE_SHARED_SIZE";
689e5c31af7Sopenharmony_ci		case GL_TEXTURE_RED_TYPE:					return "GL_TEXTURE_RED_TYPE";
690e5c31af7Sopenharmony_ci		case GL_TEXTURE_GREEN_TYPE:					return "GL_TEXTURE_GREEN_TYPE";
691e5c31af7Sopenharmony_ci		case GL_TEXTURE_BLUE_TYPE:					return "GL_TEXTURE_BLUE_TYPE";
692e5c31af7Sopenharmony_ci		case GL_TEXTURE_ALPHA_TYPE:					return "GL_TEXTURE_ALPHA_TYPE";
693e5c31af7Sopenharmony_ci		case GL_TEXTURE_DEPTH_TYPE:					return "GL_TEXTURE_DEPTH_TYPE";
694e5c31af7Sopenharmony_ci		case GL_TEXTURE_COMPRESSED:					return "GL_TEXTURE_COMPRESSED";
695e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER_DATA_STORE_BINDING:	return "GL_TEXTURE_BUFFER_DATA_STORE_BINDING";
696e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER_OFFSET:				return "GL_TEXTURE_BUFFER_OFFSET";
697e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER_SIZE:				return "GL_TEXTURE_BUFFER_SIZE";
698e5c31af7Sopenharmony_ci		default:									return DE_NULL;
699e5c31af7Sopenharmony_ci	}
700e5c31af7Sopenharmony_ci}
701e5c31af7Sopenharmony_ci
702e5c31af7Sopenharmony_ciconst char* getRepeatModeName (int value)
703e5c31af7Sopenharmony_ci{
704e5c31af7Sopenharmony_ci	switch (value)
705e5c31af7Sopenharmony_ci	{
706e5c31af7Sopenharmony_ci		case GL_REPEAT:				return "GL_REPEAT";
707e5c31af7Sopenharmony_ci		case GL_CLAMP_TO_EDGE:		return "GL_CLAMP_TO_EDGE";
708e5c31af7Sopenharmony_ci		case GL_MIRRORED_REPEAT:	return "GL_MIRRORED_REPEAT";
709e5c31af7Sopenharmony_ci		case GL_CLAMP_TO_BORDER:	return "GL_CLAMP_TO_BORDER";
710e5c31af7Sopenharmony_ci		default:					return DE_NULL;
711e5c31af7Sopenharmony_ci	}
712e5c31af7Sopenharmony_ci}
713e5c31af7Sopenharmony_ci
714e5c31af7Sopenharmony_ciconst char* getTextureFilterName (int value)
715e5c31af7Sopenharmony_ci{
716e5c31af7Sopenharmony_ci	switch (value)
717e5c31af7Sopenharmony_ci	{
718e5c31af7Sopenharmony_ci		case GL_NEAREST:				return "GL_NEAREST";
719e5c31af7Sopenharmony_ci		case GL_LINEAR:					return "GL_LINEAR";
720e5c31af7Sopenharmony_ci		case GL_NEAREST_MIPMAP_NEAREST:	return "GL_NEAREST_MIPMAP_NEAREST";
721e5c31af7Sopenharmony_ci		case GL_LINEAR_MIPMAP_NEAREST:	return "GL_LINEAR_MIPMAP_NEAREST";
722e5c31af7Sopenharmony_ci		case GL_NEAREST_MIPMAP_LINEAR:	return "GL_NEAREST_MIPMAP_LINEAR";
723e5c31af7Sopenharmony_ci		case GL_LINEAR_MIPMAP_LINEAR:	return "GL_LINEAR_MIPMAP_LINEAR";
724e5c31af7Sopenharmony_ci		default:						return DE_NULL;
725e5c31af7Sopenharmony_ci	}
726e5c31af7Sopenharmony_ci}
727e5c31af7Sopenharmony_ci
728e5c31af7Sopenharmony_ciconst char* getTextureWrapModeName (int value)
729e5c31af7Sopenharmony_ci{
730e5c31af7Sopenharmony_ci	switch (value)
731e5c31af7Sopenharmony_ci	{
732e5c31af7Sopenharmony_ci		case GL_REPEAT:				return "GL_REPEAT";
733e5c31af7Sopenharmony_ci		case GL_CLAMP_TO_EDGE:		return "GL_CLAMP_TO_EDGE";
734e5c31af7Sopenharmony_ci		case GL_MIRRORED_REPEAT:	return "GL_MIRRORED_REPEAT";
735e5c31af7Sopenharmony_ci		default:					return DE_NULL;
736e5c31af7Sopenharmony_ci	}
737e5c31af7Sopenharmony_ci}
738e5c31af7Sopenharmony_ci
739e5c31af7Sopenharmony_ciconst char* getTextureSwizzleName (int value)
740e5c31af7Sopenharmony_ci{
741e5c31af7Sopenharmony_ci	switch (value)
742e5c31af7Sopenharmony_ci	{
743e5c31af7Sopenharmony_ci		case GL_RED:	return "GL_RED";
744e5c31af7Sopenharmony_ci		case GL_GREEN:	return "GL_GREEN";
745e5c31af7Sopenharmony_ci		case GL_BLUE:	return "GL_BLUE";
746e5c31af7Sopenharmony_ci		case GL_ALPHA:	return "GL_ALPHA";
747e5c31af7Sopenharmony_ci		case GL_ZERO:	return "GL_ZERO";
748e5c31af7Sopenharmony_ci		case GL_ONE:	return "GL_ONE";
749e5c31af7Sopenharmony_ci		default:		return DE_NULL;
750e5c31af7Sopenharmony_ci	}
751e5c31af7Sopenharmony_ci}
752e5c31af7Sopenharmony_ci
753e5c31af7Sopenharmony_ciconst char* getTextureCompareModeName (int value)
754e5c31af7Sopenharmony_ci{
755e5c31af7Sopenharmony_ci	switch (value)
756e5c31af7Sopenharmony_ci	{
757e5c31af7Sopenharmony_ci		case GL_NONE:					return "GL_NONE";
758e5c31af7Sopenharmony_ci		case GL_COMPARE_REF_TO_TEXTURE:	return "GL_COMPARE_REF_TO_TEXTURE";
759e5c31af7Sopenharmony_ci		default:						return DE_NULL;
760e5c31af7Sopenharmony_ci	}
761e5c31af7Sopenharmony_ci}
762e5c31af7Sopenharmony_ci
763e5c31af7Sopenharmony_ciconst char* getCubeMapFaceName (int value)
764e5c31af7Sopenharmony_ci{
765e5c31af7Sopenharmony_ci	switch (value)
766e5c31af7Sopenharmony_ci	{
767e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_X:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_X";
768e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_X:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_X";
769e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_Y:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_Y";
770e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y";
771e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_POSITIVE_Z:	return "GL_TEXTURE_CUBE_MAP_POSITIVE_Z";
772e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:	return "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z";
773e5c31af7Sopenharmony_ci		default:								return DE_NULL;
774e5c31af7Sopenharmony_ci	}
775e5c31af7Sopenharmony_ci}
776e5c31af7Sopenharmony_ci
777e5c31af7Sopenharmony_ciconst char* getTextureDepthStencilModeName (int value)
778e5c31af7Sopenharmony_ci{
779e5c31af7Sopenharmony_ci	switch (value)
780e5c31af7Sopenharmony_ci	{
781e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT:	return "GL_DEPTH_COMPONENT";
782e5c31af7Sopenharmony_ci		case GL_STENCIL_INDEX:		return "GL_STENCIL_INDEX";
783e5c31af7Sopenharmony_ci		default:					return DE_NULL;
784e5c31af7Sopenharmony_ci	}
785e5c31af7Sopenharmony_ci}
786e5c31af7Sopenharmony_ci
787e5c31af7Sopenharmony_ciconst char* getPixelStoreParameterName (int value)
788e5c31af7Sopenharmony_ci{
789e5c31af7Sopenharmony_ci	switch (value)
790e5c31af7Sopenharmony_ci	{
791e5c31af7Sopenharmony_ci		case GL_UNPACK_ALIGNMENT:		return "GL_UNPACK_ALIGNMENT";
792e5c31af7Sopenharmony_ci		case GL_UNPACK_IMAGE_HEIGHT:	return "GL_UNPACK_IMAGE_HEIGHT";
793e5c31af7Sopenharmony_ci		case GL_UNPACK_ROW_LENGTH:		return "GL_UNPACK_ROW_LENGTH";
794e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_IMAGES:		return "GL_UNPACK_SKIP_IMAGES";
795e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_ROWS:		return "GL_UNPACK_SKIP_ROWS";
796e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_PIXELS:		return "GL_UNPACK_SKIP_PIXELS";
797e5c31af7Sopenharmony_ci		case GL_PACK_ROW_LENGTH:		return "GL_PACK_ROW_LENGTH";
798e5c31af7Sopenharmony_ci		case GL_PACK_SKIP_ROWS:			return "GL_PACK_SKIP_ROWS";
799e5c31af7Sopenharmony_ci		case GL_PACK_SKIP_PIXELS:		return "GL_PACK_SKIP_PIXELS";
800e5c31af7Sopenharmony_ci		default:						return DE_NULL;
801e5c31af7Sopenharmony_ci	}
802e5c31af7Sopenharmony_ci}
803e5c31af7Sopenharmony_ci
804e5c31af7Sopenharmony_ciconst char* getUncompressedTextureFormatName (int value)
805e5c31af7Sopenharmony_ci{
806e5c31af7Sopenharmony_ci	switch (value)
807e5c31af7Sopenharmony_ci	{
808e5c31af7Sopenharmony_ci		case GL_LUMINANCE:			return "GL_LUMINANCE";
809e5c31af7Sopenharmony_ci		case GL_LUMINANCE_ALPHA:	return "GL_LUMINANCE_ALPHA";
810e5c31af7Sopenharmony_ci		case GL_ALPHA:				return "GL_ALPHA";
811e5c31af7Sopenharmony_ci		case GL_RGB:				return "GL_RGB";
812e5c31af7Sopenharmony_ci		case GL_RGBA:				return "GL_RGBA";
813e5c31af7Sopenharmony_ci		case GL_RGBA4:				return "GL_RGBA4";
814e5c31af7Sopenharmony_ci		case GL_RGB5_A1:			return "GL_RGB5_A1";
815e5c31af7Sopenharmony_ci		case GL_RGB565:				return "GL_RGB565";
816e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT16:	return "GL_DEPTH_COMPONENT16";
817e5c31af7Sopenharmony_ci		case GL_STENCIL_INDEX8:		return "GL_STENCIL_INDEX8";
818e5c31af7Sopenharmony_ci		case GL_RG:					return "GL_RG";
819e5c31af7Sopenharmony_ci		case GL_RED:				return "GL_RED";
820e5c31af7Sopenharmony_ci		case GL_RGBA_INTEGER:		return "GL_RGBA_INTEGER";
821e5c31af7Sopenharmony_ci		case GL_RGB_INTEGER:		return "GL_RGB_INTEGER";
822e5c31af7Sopenharmony_ci		case GL_RG_INTEGER:			return "GL_RG_INTEGER";
823e5c31af7Sopenharmony_ci		case GL_RED_INTEGER:		return "GL_RED_INTEGER";
824e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT:	return "GL_DEPTH_COMPONENT";
825e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL:		return "GL_DEPTH_STENCIL";
826e5c31af7Sopenharmony_ci		case GL_RGBA32F:			return "GL_RGBA32F";
827e5c31af7Sopenharmony_ci		case GL_RGBA32I:			return "GL_RGBA32I";
828e5c31af7Sopenharmony_ci		case GL_RGBA32UI:			return "GL_RGBA32UI";
829e5c31af7Sopenharmony_ci		case GL_RGBA16:				return "GL_RGBA16";
830e5c31af7Sopenharmony_ci		case GL_RGBA16_SNORM:		return "GL_RGBA16_SNORM";
831e5c31af7Sopenharmony_ci		case GL_RGBA16F:			return "GL_RGBA16F";
832e5c31af7Sopenharmony_ci		case GL_RGBA16I:			return "GL_RGBA16I";
833e5c31af7Sopenharmony_ci		case GL_RGBA16UI:			return "GL_RGBA16UI";
834e5c31af7Sopenharmony_ci		case GL_RGBA8:				return "GL_RGBA8";
835e5c31af7Sopenharmony_ci		case GL_RGBA8I:				return "GL_RGBA8I";
836e5c31af7Sopenharmony_ci		case GL_RGBA8UI:			return "GL_RGBA8UI";
837e5c31af7Sopenharmony_ci		case GL_SRGB8_ALPHA8:		return "GL_SRGB8_ALPHA8";
838e5c31af7Sopenharmony_ci		case GL_RGB10_A2:			return "GL_RGB10_A2";
839e5c31af7Sopenharmony_ci		case GL_RGB10_A2UI:			return "GL_RGB10_A2UI";
840e5c31af7Sopenharmony_ci		case GL_RGBA8_SNORM:		return "GL_RGBA8_SNORM";
841e5c31af7Sopenharmony_ci		case GL_RGB8:				return "GL_RGB8";
842e5c31af7Sopenharmony_ci		case GL_R11F_G11F_B10F:		return "GL_R11F_G11F_B10F";
843e5c31af7Sopenharmony_ci		case GL_RGB32F:				return "GL_RGB32F";
844e5c31af7Sopenharmony_ci		case GL_RGB32I:				return "GL_RGB32I";
845e5c31af7Sopenharmony_ci		case GL_RGB32UI:			return "GL_RGB32UI";
846e5c31af7Sopenharmony_ci		case GL_RGB16:				return "GL_RGB16";
847e5c31af7Sopenharmony_ci		case GL_RGB16_SNORM:		return "GL_RGB16_SNORM";
848e5c31af7Sopenharmony_ci		case GL_RGB16F:				return "GL_RGB16F";
849e5c31af7Sopenharmony_ci		case GL_RGB16I:				return "GL_RGB16I";
850e5c31af7Sopenharmony_ci		case GL_RGB16UI:			return "GL_RGB16UI";
851e5c31af7Sopenharmony_ci		case GL_RGB8_SNORM:			return "GL_RGB8_SNORM";
852e5c31af7Sopenharmony_ci		case GL_RGB8I:				return "GL_RGB8I";
853e5c31af7Sopenharmony_ci		case GL_RGB8UI:				return "GL_RGB8UI";
854e5c31af7Sopenharmony_ci		case GL_SRGB8:				return "GL_SRGB8";
855e5c31af7Sopenharmony_ci		case GL_RGB9_E5:			return "GL_RGB9_E5";
856e5c31af7Sopenharmony_ci		case GL_RG32F:				return "GL_RG32F";
857e5c31af7Sopenharmony_ci		case GL_RG32I:				return "GL_RG32I";
858e5c31af7Sopenharmony_ci		case GL_RG32UI:				return "GL_RG32UI";
859e5c31af7Sopenharmony_ci		case GL_RG16:				return "GL_RG16";
860e5c31af7Sopenharmony_ci		case GL_RG16_SNORM:			return "GL_RG16_SNORM";
861e5c31af7Sopenharmony_ci		case GL_RG16F:				return "GL_RG16F";
862e5c31af7Sopenharmony_ci		case GL_RG16I:				return "GL_RG16I";
863e5c31af7Sopenharmony_ci		case GL_RG16UI:				return "GL_RG16UI";
864e5c31af7Sopenharmony_ci		case GL_RG8:				return "GL_RG8";
865e5c31af7Sopenharmony_ci		case GL_RG8I:				return "GL_RG8I";
866e5c31af7Sopenharmony_ci		case GL_RG8UI:				return "GL_RG8UI";
867e5c31af7Sopenharmony_ci		case GL_RG8_SNORM:			return "GL_RG8_SNORM";
868e5c31af7Sopenharmony_ci		case GL_R32F:				return "GL_R32F";
869e5c31af7Sopenharmony_ci		case GL_R32I:				return "GL_R32I";
870e5c31af7Sopenharmony_ci		case GL_R32UI:				return "GL_R32UI";
871e5c31af7Sopenharmony_ci		case GL_R16:				return "GL_R16";
872e5c31af7Sopenharmony_ci		case GL_R16_SNORM:			return "GL_R16_SNORM";
873e5c31af7Sopenharmony_ci		case GL_R16F:				return "GL_R16F";
874e5c31af7Sopenharmony_ci		case GL_R16I:				return "GL_R16I";
875e5c31af7Sopenharmony_ci		case GL_R16UI:				return "GL_R16UI";
876e5c31af7Sopenharmony_ci		case GL_R8:					return "GL_R8";
877e5c31af7Sopenharmony_ci		case GL_R8I:				return "GL_R8I";
878e5c31af7Sopenharmony_ci		case GL_R8UI:				return "GL_R8UI";
879e5c31af7Sopenharmony_ci		case GL_R8_SNORM:			return "GL_R8_SNORM";
880e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT32F:	return "GL_DEPTH_COMPONENT32F";
881e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT24:	return "GL_DEPTH_COMPONENT24";
882e5c31af7Sopenharmony_ci		case GL_DEPTH32F_STENCIL8:	return "GL_DEPTH32F_STENCIL8";
883e5c31af7Sopenharmony_ci		case GL_DEPTH24_STENCIL8:	return "GL_DEPTH24_STENCIL8";
884e5c31af7Sopenharmony_ci		case GL_RGB10:				return "GL_RGB10";
885e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT32:	return "GL_DEPTH_COMPONENT32";
886e5c31af7Sopenharmony_ci		case GL_SRGB:				return "GL_SRGB";
887e5c31af7Sopenharmony_ci		case GL_SRGB_ALPHA:			return "GL_SRGB_ALPHA";
888e5c31af7Sopenharmony_ci		case GL_SR8_EXT:			return "GL_SR8_EXT";
889e5c31af7Sopenharmony_ci		case GL_SRG8_EXT:			return "GL_SRG8_EXT";
890e5c31af7Sopenharmony_ci		case GL_BGRA:				return "GL_BGRA";
891e5c31af7Sopenharmony_ci		default:					return DE_NULL;
892e5c31af7Sopenharmony_ci	}
893e5c31af7Sopenharmony_ci}
894e5c31af7Sopenharmony_ci
895e5c31af7Sopenharmony_ciconst char* getCompressedTextureFormatName (int value)
896e5c31af7Sopenharmony_ci{
897e5c31af7Sopenharmony_ci	switch (value)
898e5c31af7Sopenharmony_ci	{
899e5c31af7Sopenharmony_ci		case GL_COMPRESSED_R11_EAC:							return "GL_COMPRESSED_R11_EAC";
900e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SIGNED_R11_EAC:					return "GL_COMPRESSED_SIGNED_R11_EAC";
901e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RG11_EAC:						return "GL_COMPRESSED_RG11_EAC";
902e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SIGNED_RG11_EAC:					return "GL_COMPRESSED_SIGNED_RG11_EAC";
903e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB8_ETC2:						return "GL_COMPRESSED_RGB8_ETC2";
904e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ETC2:						return "GL_COMPRESSED_SRGB8_ETC2";
905e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:	return "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2";
906e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:	return "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2";
907e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA8_ETC2_EAC:					return "GL_COMPRESSED_RGBA8_ETC2_EAC";
908e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:			return "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC";
909e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_4x4_KHR:				return "GL_COMPRESSED_RGBA_ASTC_4x4_KHR";
910e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_5x4_KHR:				return "GL_COMPRESSED_RGBA_ASTC_5x4_KHR";
911e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_5x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_5x5_KHR";
912e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_6x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_6x5_KHR";
913e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_6x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_6x6_KHR";
914e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x5_KHR";
915e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x6_KHR";
916e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x8_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x8_KHR";
917e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x5_KHR";
918e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x6_KHR";
919e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x8_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x8_KHR";
920e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x10_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x10_KHR";
921e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_12x10_KHR:				return "GL_COMPRESSED_RGBA_ASTC_12x10_KHR";
922e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_12x12_KHR:				return "GL_COMPRESSED_RGBA_ASTC_12x12_KHR";
923e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR";
924e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR";
925e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR";
926e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR";
927e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR";
928e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR";
929e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR";
930e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR";
931e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR";
932e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR";
933e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR";
934e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR";
935e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR";
936e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR";
937e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:				return "GL_COMPRESSED_RGB_S3TC_DXT1_EXT";
938e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT";
939e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT";
940e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT";
941e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG:			return "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG";
942e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG:			return "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG";
943e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:			return "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG";
944e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:			return "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG";
945e5c31af7Sopenharmony_ci		default:											return DE_NULL;
946e5c31af7Sopenharmony_ci	}
947e5c31af7Sopenharmony_ci}
948e5c31af7Sopenharmony_ci
949e5c31af7Sopenharmony_ciconst char* getShaderVarTypeName (int value)
950e5c31af7Sopenharmony_ci{
951e5c31af7Sopenharmony_ci	switch (value)
952e5c31af7Sopenharmony_ci	{
953e5c31af7Sopenharmony_ci		case GL_FLOAT:										return "GL_FLOAT";
954e5c31af7Sopenharmony_ci		case GL_FLOAT_VEC2:									return "GL_FLOAT_VEC2";
955e5c31af7Sopenharmony_ci		case GL_FLOAT_VEC3:									return "GL_FLOAT_VEC3";
956e5c31af7Sopenharmony_ci		case GL_FLOAT_VEC4:									return "GL_FLOAT_VEC4";
957e5c31af7Sopenharmony_ci		case GL_INT:										return "GL_INT";
958e5c31af7Sopenharmony_ci		case GL_INT_VEC2:									return "GL_INT_VEC2";
959e5c31af7Sopenharmony_ci		case GL_INT_VEC3:									return "GL_INT_VEC3";
960e5c31af7Sopenharmony_ci		case GL_INT_VEC4:									return "GL_INT_VEC4";
961e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT:								return "GL_UNSIGNED_INT";
962e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_VEC2:							return "GL_UNSIGNED_INT_VEC2";
963e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_VEC3:							return "GL_UNSIGNED_INT_VEC3";
964e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_VEC4:							return "GL_UNSIGNED_INT_VEC4";
965e5c31af7Sopenharmony_ci		case GL_BOOL:										return "GL_BOOL";
966e5c31af7Sopenharmony_ci		case GL_BOOL_VEC2:									return "GL_BOOL_VEC2";
967e5c31af7Sopenharmony_ci		case GL_BOOL_VEC3:									return "GL_BOOL_VEC3";
968e5c31af7Sopenharmony_ci		case GL_BOOL_VEC4:									return "GL_BOOL_VEC4";
969e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT2:									return "GL_FLOAT_MAT2";
970e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT3:									return "GL_FLOAT_MAT3";
971e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT4:									return "GL_FLOAT_MAT4";
972e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT2x3:								return "GL_FLOAT_MAT2x3";
973e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT2x4:								return "GL_FLOAT_MAT2x4";
974e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT3x2:								return "GL_FLOAT_MAT3x2";
975e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT3x4:								return "GL_FLOAT_MAT3x4";
976e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT4x2:								return "GL_FLOAT_MAT4x2";
977e5c31af7Sopenharmony_ci		case GL_FLOAT_MAT4x3:								return "GL_FLOAT_MAT4x3";
978e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D:									return "GL_SAMPLER_2D";
979e5c31af7Sopenharmony_ci		case GL_SAMPLER_3D:									return "GL_SAMPLER_3D";
980e5c31af7Sopenharmony_ci		case GL_SAMPLER_CUBE:								return "GL_SAMPLER_CUBE";
981e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D_SHADOW:							return "GL_SAMPLER_2D_SHADOW";
982e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D_ARRAY:							return "GL_SAMPLER_2D_ARRAY";
983e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D_ARRAY_SHADOW:					return "GL_SAMPLER_2D_ARRAY_SHADOW";
984e5c31af7Sopenharmony_ci		case GL_SAMPLER_CUBE_SHADOW:						return "GL_SAMPLER_CUBE_SHADOW";
985e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_2D:								return "GL_INT_SAMPLER_2D";
986e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_3D:								return "GL_INT_SAMPLER_3D";
987e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_CUBE:							return "GL_INT_SAMPLER_CUBE";
988e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_2D_ARRAY:						return "GL_INT_SAMPLER_2D_ARRAY";
989e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_2D:					return "GL_UNSIGNED_INT_SAMPLER_2D";
990e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_3D:					return "GL_UNSIGNED_INT_SAMPLER_3D";
991e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_CUBE:					return "GL_UNSIGNED_INT_SAMPLER_CUBE";
992e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_2D_ARRAY:				return "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY";
993e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D_MULTISAMPLE:						return "GL_SAMPLER_2D_MULTISAMPLE";
994e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_2D_MULTISAMPLE:					return "GL_INT_SAMPLER_2D_MULTISAMPLE";
995e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE:		return "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE";
996e5c31af7Sopenharmony_ci		case GL_IMAGE_2D:									return "GL_IMAGE_2D";
997e5c31af7Sopenharmony_ci		case GL_IMAGE_3D:									return "GL_IMAGE_3D";
998e5c31af7Sopenharmony_ci		case GL_IMAGE_CUBE:									return "GL_IMAGE_CUBE";
999e5c31af7Sopenharmony_ci		case GL_IMAGE_2D_ARRAY:								return "GL_IMAGE_2D_ARRAY";
1000e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_2D:								return "GL_INT_IMAGE_2D";
1001e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_3D:								return "GL_INT_IMAGE_3D";
1002e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_CUBE:								return "GL_INT_IMAGE_CUBE";
1003e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_2D_ARRAY:							return "GL_INT_IMAGE_2D_ARRAY";
1004e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_2D:						return "GL_UNSIGNED_INT_IMAGE_2D";
1005e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_3D:						return "GL_UNSIGNED_INT_IMAGE_3D";
1006e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_CUBE:					return "GL_UNSIGNED_INT_IMAGE_CUBE";
1007e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_2D_ARRAY:				return "GL_UNSIGNED_INT_IMAGE_2D_ARRAY";
1008e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_ATOMIC_COUNTER:				return "GL_UNSIGNED_INT_ATOMIC_COUNTER";
1009e5c31af7Sopenharmony_ci		case GL_SAMPLER_2D_MULTISAMPLE_ARRAY:				return "GL_SAMPLER_2D_MULTISAMPLE_ARRAY";
1010e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY:			return "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY";
1011e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY:	return "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY";
1012e5c31af7Sopenharmony_ci		case GL_SAMPLER_BUFFER:								return "GL_SAMPLER_BUFFER";
1013e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_BUFFER:							return "GL_INT_SAMPLER_BUFFER";
1014e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_BUFFER:				return "GL_UNSIGNED_INT_SAMPLER_BUFFER";
1015e5c31af7Sopenharmony_ci		case GL_IMAGE_BUFFER:								return "GL_IMAGE_BUFFER";
1016e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_BUFFER:							return "GL_INT_IMAGE_BUFFER";
1017e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_BUFFER:					return "GL_UNSIGNED_INT_IMAGE_BUFFER";
1018e5c31af7Sopenharmony_ci		case GL_SAMPLER_CUBE_MAP_ARRAY:						return "GL_SAMPLER_CUBE_MAP_ARRAY";
1019e5c31af7Sopenharmony_ci		case GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW:				return "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW";
1020e5c31af7Sopenharmony_ci		case GL_INT_SAMPLER_CUBE_MAP_ARRAY:					return "GL_INT_SAMPLER_CUBE_MAP_ARRAY";
1021e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY:		return "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY";
1022e5c31af7Sopenharmony_ci		case GL_IMAGE_CUBE_MAP_ARRAY:						return "GL_IMAGE_CUBE_MAP_ARRAY";
1023e5c31af7Sopenharmony_ci		case GL_INT_IMAGE_CUBE_MAP_ARRAY:					return "GL_INT_IMAGE_CUBE_MAP_ARRAY";
1024e5c31af7Sopenharmony_ci		case GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY:			return "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY";
1025e5c31af7Sopenharmony_ci		default:											return DE_NULL;
1026e5c31af7Sopenharmony_ci	}
1027e5c31af7Sopenharmony_ci}
1028e5c31af7Sopenharmony_ci
1029e5c31af7Sopenharmony_ciconst char* getShaderParamName (int value)
1030e5c31af7Sopenharmony_ci{
1031e5c31af7Sopenharmony_ci	switch (value)
1032e5c31af7Sopenharmony_ci	{
1033e5c31af7Sopenharmony_ci		case GL_SHADER_TYPE:			return "GL_SHADER_TYPE";
1034e5c31af7Sopenharmony_ci		case GL_DELETE_STATUS:			return "GL_DELETE_STATUS";
1035e5c31af7Sopenharmony_ci		case GL_COMPILE_STATUS:			return "GL_COMPILE_STATUS";
1036e5c31af7Sopenharmony_ci		case GL_INFO_LOG_LENGTH:		return "GL_INFO_LOG_LENGTH";
1037e5c31af7Sopenharmony_ci		case GL_SHADER_SOURCE_LENGTH:	return "GL_SHADER_SOURCE_LENGTH";
1038e5c31af7Sopenharmony_ci		default:						return DE_NULL;
1039e5c31af7Sopenharmony_ci	}
1040e5c31af7Sopenharmony_ci}
1041e5c31af7Sopenharmony_ci
1042e5c31af7Sopenharmony_ciconst char* getVertexAttribParameterNameName (int value)
1043e5c31af7Sopenharmony_ci{
1044e5c31af7Sopenharmony_ci	switch (value)
1045e5c31af7Sopenharmony_ci	{
1046e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:	return "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING";
1047e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_ENABLED:		return "GL_VERTEX_ATTRIB_ARRAY_ENABLED";
1048e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_SIZE:			return "GL_VERTEX_ATTRIB_ARRAY_SIZE";
1049e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_STRIDE:			return "GL_VERTEX_ATTRIB_ARRAY_STRIDE";
1050e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_TYPE:			return "GL_VERTEX_ATTRIB_ARRAY_TYPE";
1051e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED:		return "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED";
1052e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_INTEGER:		return "GL_VERTEX_ATTRIB_ARRAY_INTEGER";
1053e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_ARRAY_DIVISOR:		return "GL_VERTEX_ATTRIB_ARRAY_DIVISOR";
1054e5c31af7Sopenharmony_ci		case GL_CURRENT_VERTEX_ATTRIB:				return "GL_CURRENT_VERTEX_ATTRIB";
1055e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_BINDING:				return "GL_VERTEX_ATTRIB_BINDING";
1056e5c31af7Sopenharmony_ci		case GL_VERTEX_ATTRIB_RELATIVE_OFFSET:		return "GL_VERTEX_ATTRIB_RELATIVE_OFFSET";
1057e5c31af7Sopenharmony_ci		default:									return DE_NULL;
1058e5c31af7Sopenharmony_ci	}
1059e5c31af7Sopenharmony_ci}
1060e5c31af7Sopenharmony_ci
1061e5c31af7Sopenharmony_ciconst char* getBooleanName (int value)
1062e5c31af7Sopenharmony_ci{
1063e5c31af7Sopenharmony_ci	switch (value)
1064e5c31af7Sopenharmony_ci	{
1065e5c31af7Sopenharmony_ci		case GL_FALSE:	return "GL_FALSE";
1066e5c31af7Sopenharmony_ci		case GL_TRUE:	return "GL_TRUE";
1067e5c31af7Sopenharmony_ci		default:		return DE_NULL;
1068e5c31af7Sopenharmony_ci	}
1069e5c31af7Sopenharmony_ci}
1070e5c31af7Sopenharmony_ci
1071e5c31af7Sopenharmony_ciconst char* getGettableStateName (int value)
1072e5c31af7Sopenharmony_ci{
1073e5c31af7Sopenharmony_ci	switch (value)
1074e5c31af7Sopenharmony_ci	{
1075e5c31af7Sopenharmony_ci		case GL_ELEMENT_ARRAY_BUFFER_BINDING:						return "GL_ELEMENT_ARRAY_BUFFER_BINDING";
1076e5c31af7Sopenharmony_ci		case GL_ARRAY_BUFFER_BINDING:								return "GL_ARRAY_BUFFER_BINDING";
1077e5c31af7Sopenharmony_ci		case GL_VERTEX_ARRAY_BINDING:								return "GL_VERTEX_ARRAY_BINDING";
1078e5c31af7Sopenharmony_ci		case GL_VIEWPORT:											return "GL_VIEWPORT";
1079e5c31af7Sopenharmony_ci		case GL_DEPTH_RANGE:										return "GL_DEPTH_RANGE";
1080e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BINDING:							return "GL_TRANSFORM_FEEDBACK_BINDING";
1081e5c31af7Sopenharmony_ci		case GL_LINE_WIDTH:											return "GL_LINE_WIDTH";
1082e5c31af7Sopenharmony_ci		case GL_CULL_FACE_MODE:										return "GL_CULL_FACE_MODE";
1083e5c31af7Sopenharmony_ci		case GL_FRONT_FACE:											return "GL_FRONT_FACE";
1084e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_FACTOR:								return "GL_POLYGON_OFFSET_FACTOR";
1085e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_UNITS:								return "GL_POLYGON_OFFSET_UNITS";
1086e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE_VALUE:								return "GL_SAMPLE_COVERAGE_VALUE";
1087e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE_INVERT:								return "GL_SAMPLE_COVERAGE_INVERT";
1088e5c31af7Sopenharmony_ci		case GL_ACTIVE_TEXTURE:										return "GL_ACTIVE_TEXTURE";
1089e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_1D:									return "GL_TEXTURE_BINDING_1D";
1090e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_2D:									return "GL_TEXTURE_BINDING_2D";
1091e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_3D:									return "GL_TEXTURE_BINDING_3D";
1092e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_2D_ARRAY:							return "GL_TEXTURE_BINDING_2D_ARRAY";
1093e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_CUBE_MAP:							return "GL_TEXTURE_BINDING_CUBE_MAP";
1094e5c31af7Sopenharmony_ci		case GL_SAMPLER_BINDING:									return "GL_SAMPLER_BINDING";
1095e5c31af7Sopenharmony_ci		case GL_SCISSOR_BOX:										return "GL_SCISSOR_BOX";
1096e5c31af7Sopenharmony_ci		case GL_STENCIL_FUNC:										return "GL_STENCIL_FUNC";
1097e5c31af7Sopenharmony_ci		case GL_STENCIL_VALUE_MASK:									return "GL_STENCIL_VALUE_MASK";
1098e5c31af7Sopenharmony_ci		case GL_STENCIL_REF:										return "GL_STENCIL_REF";
1099e5c31af7Sopenharmony_ci		case GL_STENCIL_FAIL:										return "GL_STENCIL_FAIL";
1100e5c31af7Sopenharmony_ci		case GL_STENCIL_PASS_DEPTH_FAIL:							return "GL_STENCIL_PASS_DEPTH_FAIL";
1101e5c31af7Sopenharmony_ci		case GL_STENCIL_PASS_DEPTH_PASS:							return "GL_STENCIL_PASS_DEPTH_PASS";
1102e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_FUNC:									return "GL_STENCIL_BACK_FUNC";
1103e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_VALUE_MASK:							return "GL_STENCIL_BACK_VALUE_MASK";
1104e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_REF:									return "GL_STENCIL_BACK_REF";
1105e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_FAIL:									return "GL_STENCIL_BACK_FAIL";
1106e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_PASS_DEPTH_FAIL:						return "GL_STENCIL_BACK_PASS_DEPTH_FAIL";
1107e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_PASS_DEPTH_PASS:						return "GL_STENCIL_BACK_PASS_DEPTH_PASS";
1108e5c31af7Sopenharmony_ci		case GL_DEPTH_FUNC:											return "GL_DEPTH_FUNC";
1109e5c31af7Sopenharmony_ci		case GL_BLEND_SRC_RGB:										return "GL_BLEND_SRC_RGB";
1110e5c31af7Sopenharmony_ci		case GL_BLEND_SRC_ALPHA:									return "GL_BLEND_SRC_ALPHA";
1111e5c31af7Sopenharmony_ci		case GL_BLEND_DST_RGB:										return "GL_BLEND_DST_RGB";
1112e5c31af7Sopenharmony_ci		case GL_BLEND_DST_ALPHA:									return "GL_BLEND_DST_ALPHA";
1113e5c31af7Sopenharmony_ci		case GL_BLEND_EQUATION_RGB:									return "GL_BLEND_EQUATION_RGB";
1114e5c31af7Sopenharmony_ci		case GL_BLEND_EQUATION_ALPHA:								return "GL_BLEND_EQUATION_ALPHA";
1115e5c31af7Sopenharmony_ci		case GL_BLEND_COLOR:										return "GL_BLEND_COLOR";
1116e5c31af7Sopenharmony_ci		case GL_COLOR_WRITEMASK:									return "GL_COLOR_WRITEMASK";
1117e5c31af7Sopenharmony_ci		case GL_DEPTH_WRITEMASK:									return "GL_DEPTH_WRITEMASK";
1118e5c31af7Sopenharmony_ci		case GL_STENCIL_WRITEMASK:									return "GL_STENCIL_WRITEMASK";
1119e5c31af7Sopenharmony_ci		case GL_STENCIL_BACK_WRITEMASK:								return "GL_STENCIL_BACK_WRITEMASK";
1120e5c31af7Sopenharmony_ci		case GL_COLOR_CLEAR_VALUE:									return "GL_COLOR_CLEAR_VALUE";
1121e5c31af7Sopenharmony_ci		case GL_DEPTH_CLEAR_VALUE:									return "GL_DEPTH_CLEAR_VALUE";
1122e5c31af7Sopenharmony_ci		case GL_STENCIL_CLEAR_VALUE:								return "GL_STENCIL_CLEAR_VALUE";
1123e5c31af7Sopenharmony_ci		case GL_DRAW_FRAMEBUFFER_BINDING:							return "GL_DRAW_FRAMEBUFFER_BINDING";
1124e5c31af7Sopenharmony_ci		case GL_READ_FRAMEBUFFER_BINDING:							return "GL_READ_FRAMEBUFFER_BINDING";
1125e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER_BINDING:								return "GL_RENDERBUFFER_BINDING";
1126e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER0:										return "GL_DRAW_BUFFER0";
1127e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER1:										return "GL_DRAW_BUFFER1";
1128e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER2:										return "GL_DRAW_BUFFER2";
1129e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER3:										return "GL_DRAW_BUFFER3";
1130e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER4:										return "GL_DRAW_BUFFER4";
1131e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER5:										return "GL_DRAW_BUFFER5";
1132e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER6:										return "GL_DRAW_BUFFER6";
1133e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER7:										return "GL_DRAW_BUFFER7";
1134e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER8:										return "GL_DRAW_BUFFER8";
1135e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER9:										return "GL_DRAW_BUFFER9";
1136e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER10:										return "GL_DRAW_BUFFER10";
1137e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER11:										return "GL_DRAW_BUFFER11";
1138e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER12:										return "GL_DRAW_BUFFER12";
1139e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER13:										return "GL_DRAW_BUFFER13";
1140e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER14:										return "GL_DRAW_BUFFER14";
1141e5c31af7Sopenharmony_ci		case GL_DRAW_BUFFER15:										return "GL_DRAW_BUFFER15";
1142e5c31af7Sopenharmony_ci		case GL_READ_BUFFER:										return "GL_READ_BUFFER";
1143e5c31af7Sopenharmony_ci		case GL_UNPACK_IMAGE_HEIGHT:								return "GL_UNPACK_IMAGE_HEIGHT";
1144e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_IMAGES:									return "GL_UNPACK_SKIP_IMAGES";
1145e5c31af7Sopenharmony_ci		case GL_UNPACK_ROW_LENGTH:									return "GL_UNPACK_ROW_LENGTH";
1146e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_ROWS:									return "GL_UNPACK_SKIP_ROWS";
1147e5c31af7Sopenharmony_ci		case GL_UNPACK_SKIP_PIXELS:									return "GL_UNPACK_SKIP_PIXELS";
1148e5c31af7Sopenharmony_ci		case GL_UNPACK_ALIGNMENT:									return "GL_UNPACK_ALIGNMENT";
1149e5c31af7Sopenharmony_ci		case GL_PACK_ROW_LENGTH:									return "GL_PACK_ROW_LENGTH";
1150e5c31af7Sopenharmony_ci		case GL_PACK_SKIP_ROWS:										return "GL_PACK_SKIP_ROWS";
1151e5c31af7Sopenharmony_ci		case GL_PACK_SKIP_PIXELS:									return "GL_PACK_SKIP_PIXELS";
1152e5c31af7Sopenharmony_ci		case GL_PACK_ALIGNMENT:										return "GL_PACK_ALIGNMENT";
1153e5c31af7Sopenharmony_ci		case GL_PIXEL_PACK_BUFFER_BINDING:							return "GL_PIXEL_PACK_BUFFER_BINDING";
1154e5c31af7Sopenharmony_ci		case GL_PIXEL_UNPACK_BUFFER_BINDING:						return "GL_PIXEL_UNPACK_BUFFER_BINDING";
1155e5c31af7Sopenharmony_ci		case GL_CURRENT_PROGRAM:									return "GL_CURRENT_PROGRAM";
1156e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER_BINDING:					return "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING";
1157e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_PAUSED:							return "GL_TRANSFORM_FEEDBACK_PAUSED";
1158e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_ACTIVE:							return "GL_TRANSFORM_FEEDBACK_ACTIVE";
1159e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER_BINDING:								return "GL_UNIFORM_BUFFER_BINDING";
1160e5c31af7Sopenharmony_ci		case GL_GENERATE_MIPMAP_HINT:								return "GL_GENERATE_MIPMAP_HINT";
1161e5c31af7Sopenharmony_ci		case GL_FRAGMENT_SHADER_DERIVATIVE_HINT:					return "GL_FRAGMENT_SHADER_DERIVATIVE_HINT";
1162e5c31af7Sopenharmony_ci		case GL_MAX_ELEMENT_INDEX:									return "GL_MAX_ELEMENT_INDEX";
1163e5c31af7Sopenharmony_ci		case GL_SUBPIXEL_BITS:										return "GL_SUBPIXEL_BITS";
1164e5c31af7Sopenharmony_ci		case GL_MAX_3D_TEXTURE_SIZE:								return "GL_MAX_3D_TEXTURE_SIZE";
1165e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_SIZE:									return "GL_MAX_TEXTURE_SIZE";
1166e5c31af7Sopenharmony_ci		case GL_MAX_ARRAY_TEXTURE_LAYERS:							return "GL_MAX_ARRAY_TEXTURE_LAYERS";
1167e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_LOD_BIAS:								return "GL_MAX_TEXTURE_LOD_BIAS";
1168e5c31af7Sopenharmony_ci		case GL_MAX_CUBE_MAP_TEXTURE_SIZE:							return "GL_MAX_CUBE_MAP_TEXTURE_SIZE";
1169e5c31af7Sopenharmony_ci		case GL_MAX_RENDERBUFFER_SIZE:								return "GL_MAX_RENDERBUFFER_SIZE";
1170e5c31af7Sopenharmony_ci		case GL_MAX_DRAW_BUFFERS:									return "GL_MAX_DRAW_BUFFERS";
1171e5c31af7Sopenharmony_ci		case GL_MAX_COLOR_ATTACHMENTS:								return "GL_MAX_COLOR_ATTACHMENTS";
1172e5c31af7Sopenharmony_ci		case GL_MAX_VIEWPORT_DIMS:									return "GL_MAX_VIEWPORT_DIMS";
1173e5c31af7Sopenharmony_ci		case GL_ALIASED_POINT_SIZE_RANGE:							return "GL_ALIASED_POINT_SIZE_RANGE";
1174e5c31af7Sopenharmony_ci		case GL_ALIASED_LINE_WIDTH_RANGE:							return "GL_ALIASED_LINE_WIDTH_RANGE";
1175e5c31af7Sopenharmony_ci		case GL_MAX_ELEMENTS_INDICES:								return "GL_MAX_ELEMENTS_INDICES";
1176e5c31af7Sopenharmony_ci		case GL_MAX_ELEMENTS_VERTICES:								return "GL_MAX_ELEMENTS_VERTICES";
1177e5c31af7Sopenharmony_ci		case GL_COMPRESSED_TEXTURE_FORMATS:							return "GL_COMPRESSED_TEXTURE_FORMATS";
1178e5c31af7Sopenharmony_ci		case GL_NUM_COMPRESSED_TEXTURE_FORMATS:						return "GL_NUM_COMPRESSED_TEXTURE_FORMATS";
1179e5c31af7Sopenharmony_ci		case GL_PROGRAM_BINARY_FORMATS:								return "GL_PROGRAM_BINARY_FORMATS";
1180e5c31af7Sopenharmony_ci		case GL_NUM_PROGRAM_BINARY_FORMATS:							return "GL_NUM_PROGRAM_BINARY_FORMATS";
1181e5c31af7Sopenharmony_ci		case GL_SHADER_BINARY_FORMATS:								return "GL_SHADER_BINARY_FORMATS";
1182e5c31af7Sopenharmony_ci		case GL_NUM_SHADER_BINARY_FORMATS:							return "GL_NUM_SHADER_BINARY_FORMATS";
1183e5c31af7Sopenharmony_ci		case GL_SHADER_COMPILER:									return "GL_SHADER_COMPILER";
1184e5c31af7Sopenharmony_ci		case GL_MAX_SERVER_WAIT_TIMEOUT:							return "GL_MAX_SERVER_WAIT_TIMEOUT";
1185e5c31af7Sopenharmony_ci		case GL_NUM_EXTENSIONS:										return "GL_NUM_EXTENSIONS";
1186e5c31af7Sopenharmony_ci		case GL_MAJOR_VERSION:										return "GL_MAJOR_VERSION";
1187e5c31af7Sopenharmony_ci		case GL_MINOR_VERSION:										return "GL_MINOR_VERSION";
1188e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATTRIBS:									return "GL_MAX_VERTEX_ATTRIBS";
1189e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_UNIFORM_COMPONENTS:						return "GL_MAX_VERTEX_UNIFORM_COMPONENTS";
1190e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_UNIFORM_VECTORS:							return "GL_MAX_VERTEX_UNIFORM_VECTORS";
1191e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_UNIFORM_BLOCKS:							return "GL_MAX_VERTEX_UNIFORM_BLOCKS";
1192e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_OUTPUT_COMPONENTS:						return "GL_MAX_VERTEX_OUTPUT_COMPONENTS";
1193e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS:						return "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS";
1194e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_UNIFORM_COMPONENTS:					return "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS";
1195e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_UNIFORM_VECTORS:						return "GL_MAX_FRAGMENT_UNIFORM_VECTORS";
1196e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_UNIFORM_BLOCKS:						return "GL_MAX_FRAGMENT_UNIFORM_BLOCKS";
1197e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_INPUT_COMPONENTS:						return "GL_MAX_FRAGMENT_INPUT_COMPONENTS";
1198e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_IMAGE_UNITS:							return "GL_MAX_TEXTURE_IMAGE_UNITS";
1199e5c31af7Sopenharmony_ci		case GL_MIN_PROGRAM_TEXEL_OFFSET:							return "GL_MIN_PROGRAM_TEXEL_OFFSET";
1200e5c31af7Sopenharmony_ci		case GL_MAX_PROGRAM_TEXEL_OFFSET:							return "GL_MAX_PROGRAM_TEXEL_OFFSET";
1201e5c31af7Sopenharmony_ci		case GL_MAX_UNIFORM_BUFFER_BINDINGS:						return "GL_MAX_UNIFORM_BUFFER_BINDINGS";
1202e5c31af7Sopenharmony_ci		case GL_MAX_UNIFORM_BLOCK_SIZE:								return "GL_MAX_UNIFORM_BLOCK_SIZE";
1203e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT:					return "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT";
1204e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_UNIFORM_BLOCKS:						return "GL_MAX_COMBINED_UNIFORM_BLOCKS";
1205e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:				return "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS";
1206e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:			return "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS";
1207e5c31af7Sopenharmony_ci		case GL_MAX_VARYING_COMPONENTS:								return "GL_MAX_VARYING_COMPONENTS";
1208e5c31af7Sopenharmony_ci		case GL_MAX_VARYING_VECTORS:								return "GL_MAX_VARYING_VECTORS";
1209e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS:					return "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS";
1210e5c31af7Sopenharmony_ci		case GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:		return "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS";
1211e5c31af7Sopenharmony_ci		case GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:			return "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS";
1212e5c31af7Sopenharmony_ci		case GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:			return "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS";
1213e5c31af7Sopenharmony_ci		case GL_SAMPLE_BUFFERS:										return "GL_SAMPLE_BUFFERS";
1214e5c31af7Sopenharmony_ci		case GL_SAMPLES:											return "GL_SAMPLES";
1215e5c31af7Sopenharmony_ci		case GL_MAX_SAMPLES:										return "GL_MAX_SAMPLES";
1216e5c31af7Sopenharmony_ci		case GL_DEPTH_BITS:											return "GL_DEPTH_BITS";
1217e5c31af7Sopenharmony_ci		case GL_STENCIL_BITS:										return "GL_STENCIL_BITS";
1218e5c31af7Sopenharmony_ci		case GL_IMPLEMENTATION_COLOR_READ_TYPE:						return "GL_IMPLEMENTATION_COLOR_READ_TYPE";
1219e5c31af7Sopenharmony_ci		case GL_IMPLEMENTATION_COLOR_READ_FORMAT:					return "GL_IMPLEMENTATION_COLOR_READ_FORMAT";
1220e5c31af7Sopenharmony_ci		case GL_COPY_READ_BUFFER_BINDING:							return "GL_COPY_READ_BUFFER_BINDING";
1221e5c31af7Sopenharmony_ci		case GL_COPY_WRITE_BUFFER_BINDING:							return "GL_COPY_WRITE_BUFFER_BINDING";
1222e5c31af7Sopenharmony_ci		case GL_RED_BITS:											return "GL_RED_BITS";
1223e5c31af7Sopenharmony_ci		case GL_GREEN_BITS:											return "GL_GREEN_BITS";
1224e5c31af7Sopenharmony_ci		case GL_BLUE_BITS:											return "GL_BLUE_BITS";
1225e5c31af7Sopenharmony_ci		case GL_ALPHA_BITS:											return "GL_ALPHA_BITS";
1226e5c31af7Sopenharmony_ci		case GL_MAX_COLOR_TEXTURE_SAMPLES:							return "GL_MAX_COLOR_TEXTURE_SAMPLES";
1227e5c31af7Sopenharmony_ci		case GL_TIMESTAMP:											return "GL_TIMESTAMP";
1228e5c31af7Sopenharmony_ci		case GL_MAX_DEPTH_TEXTURE_SAMPLES:							return "GL_MAX_DEPTH_TEXTURE_SAMPLES";
1229e5c31af7Sopenharmony_ci		case GL_MAX_INTEGER_SAMPLES:								return "GL_MAX_INTEGER_SAMPLES";
1230e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_2D_MULTISAMPLE:						return "GL_TEXTURE_BINDING_2D_MULTISAMPLE";
1231e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY:				return "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY";
1232e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATTRIB_STRIDE:							return "GL_MAX_VERTEX_ATTRIB_STRIDE";
1233e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATTRIB_BINDINGS:							return "GL_MAX_VERTEX_ATTRIB_BINDINGS";
1234e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET:					return "GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET";
1235e5c31af7Sopenharmony_ci		case GL_MIN_SAMPLE_SHADING_VALUE:							return "GL_MIN_SAMPLE_SHADING_VALUE";
1236e5c31af7Sopenharmony_ci		case GL_FRAGMENT_INTERPOLATION_OFFSET_BITS:					return "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS";
1237e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_INTERPOLATION_OFFSET:					return "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET";
1238e5c31af7Sopenharmony_ci		case GL_MIN_FRAGMENT_INTERPOLATION_OFFSET:					return "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET";
1239e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_SHADER_INVOCATIONS:					return "GL_MAX_GEOMETRY_SHADER_INVOCATIONS";
1240e5c31af7Sopenharmony_ci		case GL_LAYER_PROVOKING_VERTEX:								return "GL_LAYER_PROVOKING_VERTEX";
1241e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_UNIFORM_COMPONENTS:					return "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS";
1242e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS:					return "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS";
1243e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_UNIFORM_BLOCKS:						return "GL_MAX_GEOMETRY_UNIFORM_BLOCKS";
1244e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_INPUT_COMPONENTS:						return "GL_MAX_GEOMETRY_INPUT_COMPONENTS";
1245e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_OUTPUT_COMPONENTS:						return "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS";
1246e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_IMAGE_UNIFORMS:						return "GL_MAX_GEOMETRY_IMAGE_UNIFORMS";
1247e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS:					return "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS";
1248e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_OUTPUT_VERTICES:						return "GL_MAX_GEOMETRY_OUTPUT_VERTICES";
1249e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_ATOMIC_COUNTERS:						return "GL_MAX_GEOMETRY_ATOMIC_COUNTERS";
1250e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS:				return "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS";
1251e5c31af7Sopenharmony_ci		case GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS:				return "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS";
1252e5c31af7Sopenharmony_ci		case GL_MAX_FRAMEBUFFER_LAYERS:								return "GL_MAX_FRAMEBUFFER_LAYERS";
1253e5c31af7Sopenharmony_ci		case GL_PROVOKING_VERTEX:									return "GL_PROVOKING_VERTEX";
1254e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART_INDEX:							return "GL_PRIMITIVE_RESTART_INDEX";
1255e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS:				return "GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS";
1256e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_ATOMIC_COUNTERS:						return "GL_MAX_FRAGMENT_ATOMIC_COUNTERS";
1257e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_IMAGE_UNIFORMS:						return "GL_MAX_FRAGMENT_IMAGE_UNIFORMS";
1258e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_UNIFORM_BLOCKS:							return "GL_MAX_COMPUTE_UNIFORM_BLOCKS";
1259e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS:					return "GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS";
1260e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_UNIFORM_COMPONENTS:						return "GL_MAX_COMPUTE_UNIFORM_COMPONENTS";
1261e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS:					return "GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS";
1262e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_ATOMIC_COUNTERS:						return "GL_MAX_COMPUTE_ATOMIC_COUNTERS";
1263e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_IMAGE_UNIFORMS:							return "GL_MAX_COMPUTE_IMAGE_UNIFORMS";
1264e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS:					return "GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS";
1265e5c31af7Sopenharmony_ci		case GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS:					return "GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS";
1266e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS:			return "GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS";
1267e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS:					return "GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS";
1268e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_ATOMIC_COUNTERS:							return "GL_MAX_VERTEX_ATOMIC_COUNTERS";
1269e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_IMAGE_UNIFORMS:							return "GL_MAX_VERTEX_IMAGE_UNIFORMS";
1270e5c31af7Sopenharmony_ci		case GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS:					return "GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS";
1271e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES:				return "GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES";
1272e5c31af7Sopenharmony_ci		case GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS:					return "GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS";
1273e5c31af7Sopenharmony_ci		case GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE:						return "GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE";
1274e5c31af7Sopenharmony_ci		case GL_MAX_IMAGE_UNITS:									return "GL_MAX_IMAGE_UNITS";
1275e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS:				return "GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS";
1276e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_IMAGE_UNIFORMS:						return "GL_MAX_COMBINED_IMAGE_UNIFORMS";
1277e5c31af7Sopenharmony_ci		case GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS:					return "GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS";
1278e5c31af7Sopenharmony_ci		case GL_MAX_SHADER_STORAGE_BLOCK_SIZE:						return "GL_MAX_SHADER_STORAGE_BLOCK_SIZE";
1279e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_ATOMIC_COUNTERS:						return "GL_MAX_COMBINED_ATOMIC_COUNTERS";
1280e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS:					return "GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS";
1281e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT:				return "GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT";
1282e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_BOUNDING_BOX_EXT:							return "GL_PRIMITIVE_BOUNDING_BOX_EXT";
1283e5c31af7Sopenharmony_ci		case GL_DRAW_INDIRECT_BUFFER_BINDING:						return "GL_DRAW_INDIRECT_BUFFER_BINDING";
1284e5c31af7Sopenharmony_ci		case GL_MAX_SAMPLE_MASK_WORDS:								return "GL_MAX_SAMPLE_MASK_WORDS";
1285e5c31af7Sopenharmony_ci		case GL_PROGRAM_PIPELINE_BINDING:							return "GL_PROGRAM_PIPELINE_BINDING";
1286e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER_BINDING:						return "GL_ATOMIC_COUNTER_BUFFER_BINDING";
1287e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER_BINDING:						return "GL_SHADER_STORAGE_BUFFER_BINDING";
1288e5c31af7Sopenharmony_ci		case GL_DISPATCH_INDIRECT_BUFFER_BINDING:					return "GL_DISPATCH_INDIRECT_BUFFER_BINDING";
1289e5c31af7Sopenharmony_ci		case GL_MAX_FRAMEBUFFER_WIDTH:								return "GL_MAX_FRAMEBUFFER_WIDTH";
1290e5c31af7Sopenharmony_ci		case GL_MAX_FRAMEBUFFER_HEIGHT:								return "GL_MAX_FRAMEBUFFER_HEIGHT";
1291e5c31af7Sopenharmony_ci		case GL_MAX_FRAMEBUFFER_SAMPLES:							return "GL_MAX_FRAMEBUFFER_SAMPLES";
1292e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_SHARED_MEMORY_SIZE:						return "GL_MAX_COMPUTE_SHARED_MEMORY_SIZE";
1293e5c31af7Sopenharmony_ci		case GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET:					return "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET";
1294e5c31af7Sopenharmony_ci		case GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET:					return "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET";
1295e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS:					return "GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS";
1296e5c31af7Sopenharmony_ci		case GL_MAX_UNIFORM_LOCATIONS:								return "GL_MAX_UNIFORM_LOCATIONS";
1297e5c31af7Sopenharmony_ci		case GL_MAX_DEBUG_MESSAGE_LENGTH:							return "GL_MAX_DEBUG_MESSAGE_LENGTH";
1298e5c31af7Sopenharmony_ci		case GL_MAX_DEBUG_LOGGED_MESSAGES:							return "GL_MAX_DEBUG_LOGGED_MESSAGES";
1299e5c31af7Sopenharmony_ci		case GL_MAX_DEBUG_GROUP_STACK_DEPTH:						return "GL_MAX_DEBUG_GROUP_STACK_DEPTH";
1300e5c31af7Sopenharmony_ci		case GL_MAX_LABEL_LENGTH:									return "GL_MAX_LABEL_LENGTH";
1301e5c31af7Sopenharmony_ci		case GL_CONTEXT_FLAGS:										return "GL_CONTEXT_FLAGS";
1302e5c31af7Sopenharmony_ci		case GL_DEBUG_LOGGED_MESSAGES:								return "GL_DEBUG_LOGGED_MESSAGES";
1303e5c31af7Sopenharmony_ci		case GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH:					return "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH";
1304e5c31af7Sopenharmony_ci		case GL_DEBUG_GROUP_STACK_DEPTH:							return "GL_DEBUG_GROUP_STACK_DEPTH";
1305e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS:			return "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS";
1306e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT:					return "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT";
1307e5c31af7Sopenharmony_ci		case GL_TEXTURE_BUFFER_BINDING:								return "GL_TEXTURE_BUFFER_BINDING";
1308e5c31af7Sopenharmony_ci		case GL_TEXTURE_BINDING_BUFFER:								return "GL_TEXTURE_BINDING_BUFFER";
1309e5c31af7Sopenharmony_ci		case GL_MAX_TEXTURE_BUFFER_SIZE:							return "GL_MAX_TEXTURE_BUFFER_SIZE";
1310e5c31af7Sopenharmony_ci		case GL_MAX_PATCH_VERTICES:									return "GL_MAX_PATCH_VERTICES";
1311e5c31af7Sopenharmony_ci		case GL_MAX_TESS_GEN_LEVEL:									return "GL_MAX_TESS_GEN_LEVEL";
1312e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS:				return "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS";
1313e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS:				return "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS";
1314e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS:				return "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS";
1315e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS:			return "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS";
1316e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS:					return "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS";
1317e5c31af7Sopenharmony_ci		case GL_MAX_TESS_PATCH_COMPONENTS:							return "GL_MAX_TESS_PATCH_COMPONENTS";
1318e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS:			return "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS";
1319e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS:				return "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS";
1320e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS:					return "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS";
1321e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS:					return "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS";
1322e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_INPUT_COMPONENTS:					return "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS";
1323e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS:				return "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS";
1324e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS:			return "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS";
1325e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS:			return "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS";
1326e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS:					return "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS";
1327e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS:				return "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS";
1328e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS:					return "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS";
1329e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS:					return "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS";
1330e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS:	return "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS";
1331e5c31af7Sopenharmony_ci		case GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS:			return "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS";
1332e5c31af7Sopenharmony_ci		case GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS:		return "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS";
1333e5c31af7Sopenharmony_ci		case GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS:				return "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS";
1334e5c31af7Sopenharmony_ci		case GL_PATCH_VERTICES:										return "GL_PATCH_VERTICES";
1335e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED:			return "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED";
1336e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D:											return "GL_TEXTURE_2D";
1337e5c31af7Sopenharmony_ci		case GL_CULL_FACE:											return "GL_CULL_FACE";
1338e5c31af7Sopenharmony_ci		case GL_BLEND:												return "GL_BLEND";
1339e5c31af7Sopenharmony_ci		case GL_DITHER:												return "GL_DITHER";
1340e5c31af7Sopenharmony_ci		case GL_STENCIL_TEST:										return "GL_STENCIL_TEST";
1341e5c31af7Sopenharmony_ci		case GL_DEPTH_TEST:											return "GL_DEPTH_TEST";
1342e5c31af7Sopenharmony_ci		case GL_SCISSOR_TEST:										return "GL_SCISSOR_TEST";
1343e5c31af7Sopenharmony_ci		case GL_POLYGON_OFFSET_FILL:								return "GL_POLYGON_OFFSET_FILL";
1344e5c31af7Sopenharmony_ci		case GL_SAMPLE_ALPHA_TO_COVERAGE:							return "GL_SAMPLE_ALPHA_TO_COVERAGE";
1345e5c31af7Sopenharmony_ci		case GL_SAMPLE_COVERAGE:									return "GL_SAMPLE_COVERAGE";
1346e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART_FIXED_INDEX:						return "GL_PRIMITIVE_RESTART_FIXED_INDEX";
1347e5c31af7Sopenharmony_ci		case GL_RASTERIZER_DISCARD:									return "GL_RASTERIZER_DISCARD";
1348e5c31af7Sopenharmony_ci		case GL_FRAMEBUFFER_SRGB:									return "GL_FRAMEBUFFER_SRGB";
1349e5c31af7Sopenharmony_ci		case GL_SAMPLE_SHADING:										return "GL_SAMPLE_SHADING";
1350e5c31af7Sopenharmony_ci		case GL_DEPTH_CLAMP:										return "GL_DEPTH_CLAMP";
1351e5c31af7Sopenharmony_ci		case GL_PRIMITIVE_RESTART:									return "GL_PRIMITIVE_RESTART";
1352e5c31af7Sopenharmony_ci		case GL_SAMPLE_MASK:										return "GL_SAMPLE_MASK";
1353e5c31af7Sopenharmony_ci		case GL_DEBUG_OUTPUT:										return "GL_DEBUG_OUTPUT";
1354e5c31af7Sopenharmony_ci		case GL_DEBUG_OUTPUT_SYNCHRONOUS:							return "GL_DEBUG_OUTPUT_SYNCHRONOUS";
1355e5c31af7Sopenharmony_ci		case GL_BLEND_ADVANCED_COHERENT_KHR:						return "GL_BLEND_ADVANCED_COHERENT_KHR";
1356e5c31af7Sopenharmony_ci		default:													return DE_NULL;
1357e5c31af7Sopenharmony_ci	}
1358e5c31af7Sopenharmony_ci}
1359e5c31af7Sopenharmony_ci
1360e5c31af7Sopenharmony_ciconst char* getGettableIndexedStateName (int value)
1361e5c31af7Sopenharmony_ci{
1362e5c31af7Sopenharmony_ci	switch (value)
1363e5c31af7Sopenharmony_ci	{
1364e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER_BINDING:	return "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING";
1365e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER_BINDING:				return "GL_UNIFORM_BUFFER_BINDING";
1366e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER_START:	return "GL_TRANSFORM_FEEDBACK_BUFFER_START";
1367e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_BUFFER_SIZE:		return "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE";
1368e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER_START:				return "GL_UNIFORM_BUFFER_START";
1369e5c31af7Sopenharmony_ci		case GL_UNIFORM_BUFFER_SIZE:				return "GL_UNIFORM_BUFFER_SIZE";
1370e5c31af7Sopenharmony_ci		case GL_SAMPLE_MASK_VALUE:					return "GL_SAMPLE_MASK_VALUE";
1371e5c31af7Sopenharmony_ci		case GL_VERTEX_BINDING_OFFSET:				return "GL_VERTEX_BINDING_OFFSET";
1372e5c31af7Sopenharmony_ci		case GL_VERTEX_BINDING_STRIDE:				return "GL_VERTEX_BINDING_STRIDE";
1373e5c31af7Sopenharmony_ci		case GL_VERTEX_BINDING_DIVISOR:				return "GL_VERTEX_BINDING_DIVISOR";
1374e5c31af7Sopenharmony_ci		case GL_VERTEX_BINDING_BUFFER:				return "GL_VERTEX_BINDING_BUFFER";
1375e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_WORK_GROUP_COUNT:		return "GL_MAX_COMPUTE_WORK_GROUP_COUNT";
1376e5c31af7Sopenharmony_ci		case GL_MAX_COMPUTE_WORK_GROUP_SIZE:		return "GL_MAX_COMPUTE_WORK_GROUP_SIZE";
1377e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER_BINDING:		return "GL_ATOMIC_COUNTER_BUFFER_BINDING";
1378e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER_START:		return "GL_ATOMIC_COUNTER_BUFFER_START";
1379e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER_SIZE:			return "GL_ATOMIC_COUNTER_BUFFER_SIZE";
1380e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER_BINDING:		return "GL_SHADER_STORAGE_BUFFER_BINDING";
1381e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER_START:		return "GL_SHADER_STORAGE_BUFFER_START";
1382e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BUFFER_SIZE:			return "GL_SHADER_STORAGE_BUFFER_SIZE";
1383e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_NAME:					return "GL_IMAGE_BINDING_NAME";
1384e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_LEVEL:				return "GL_IMAGE_BINDING_LEVEL";
1385e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_LAYERED:				return "GL_IMAGE_BINDING_LAYERED";
1386e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_LAYER:				return "GL_IMAGE_BINDING_LAYER";
1387e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_ACCESS:				return "GL_IMAGE_BINDING_ACCESS";
1388e5c31af7Sopenharmony_ci		case GL_IMAGE_BINDING_FORMAT:				return "GL_IMAGE_BINDING_FORMAT";
1389e5c31af7Sopenharmony_ci		case GL_BLEND_EQUATION_RGB:					return "GL_BLEND_EQUATION_RGB";
1390e5c31af7Sopenharmony_ci		case GL_BLEND_EQUATION_ALPHA:				return "GL_BLEND_EQUATION_ALPHA";
1391e5c31af7Sopenharmony_ci		case GL_BLEND_SRC_RGB:						return "GL_BLEND_SRC_RGB";
1392e5c31af7Sopenharmony_ci		case GL_BLEND_SRC_ALPHA:					return "GL_BLEND_SRC_ALPHA";
1393e5c31af7Sopenharmony_ci		case GL_BLEND_DST_RGB:						return "GL_BLEND_DST_RGB";
1394e5c31af7Sopenharmony_ci		case GL_BLEND_DST_ALPHA:					return "GL_BLEND_DST_ALPHA";
1395e5c31af7Sopenharmony_ci		case GL_COLOR_WRITEMASK:					return "GL_COLOR_WRITEMASK";
1396e5c31af7Sopenharmony_ci		default:									return DE_NULL;
1397e5c31af7Sopenharmony_ci	}
1398e5c31af7Sopenharmony_ci}
1399e5c31af7Sopenharmony_ci
1400e5c31af7Sopenharmony_ciconst char* getGettableStringName (int value)
1401e5c31af7Sopenharmony_ci{
1402e5c31af7Sopenharmony_ci	switch (value)
1403e5c31af7Sopenharmony_ci	{
1404e5c31af7Sopenharmony_ci		case GL_EXTENSIONS:					return "GL_EXTENSIONS";
1405e5c31af7Sopenharmony_ci		case GL_RENDERER:					return "GL_RENDERER";
1406e5c31af7Sopenharmony_ci		case GL_SHADING_LANGUAGE_VERSION:	return "GL_SHADING_LANGUAGE_VERSION";
1407e5c31af7Sopenharmony_ci		case GL_VENDOR:						return "GL_VENDOR";
1408e5c31af7Sopenharmony_ci		case GL_VERSION:					return "GL_VERSION";
1409e5c31af7Sopenharmony_ci		default:							return DE_NULL;
1410e5c31af7Sopenharmony_ci	}
1411e5c31af7Sopenharmony_ci}
1412e5c31af7Sopenharmony_ci
1413e5c31af7Sopenharmony_ciconst char* getPointerStateName (int value)
1414e5c31af7Sopenharmony_ci{
1415e5c31af7Sopenharmony_ci	switch (value)
1416e5c31af7Sopenharmony_ci	{
1417e5c31af7Sopenharmony_ci		case GL_DEBUG_CALLBACK_FUNCTION:	return "GL_DEBUG_CALLBACK_FUNCTION";
1418e5c31af7Sopenharmony_ci		case GL_DEBUG_CALLBACK_USER_PARAM:	return "GL_DEBUG_CALLBACK_USER_PARAM";
1419e5c31af7Sopenharmony_ci		default:							return DE_NULL;
1420e5c31af7Sopenharmony_ci	}
1421e5c31af7Sopenharmony_ci}
1422e5c31af7Sopenharmony_ci
1423e5c31af7Sopenharmony_ciconst char* getInternalFormatParameterName (int value)
1424e5c31af7Sopenharmony_ci{
1425e5c31af7Sopenharmony_ci	switch (value)
1426e5c31af7Sopenharmony_ci	{
1427e5c31af7Sopenharmony_ci		case GL_NUM_SAMPLE_COUNTS:	return "GL_NUM_SAMPLE_COUNTS";
1428e5c31af7Sopenharmony_ci		case GL_SAMPLES:			return "GL_SAMPLES";
1429e5c31af7Sopenharmony_ci		default:					return DE_NULL;
1430e5c31af7Sopenharmony_ci	}
1431e5c31af7Sopenharmony_ci}
1432e5c31af7Sopenharmony_ci
1433e5c31af7Sopenharmony_ciconst char* getInternalFormatTargetName (int value)
1434e5c31af7Sopenharmony_ci{
1435e5c31af7Sopenharmony_ci	switch (value)
1436e5c31af7Sopenharmony_ci	{
1437e5c31af7Sopenharmony_ci		case GL_RENDERBUFFER:					return "GL_RENDERBUFFER";
1438e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_MULTISAMPLE:			return "GL_TEXTURE_2D_MULTISAMPLE";
1439e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:	return "GL_TEXTURE_2D_MULTISAMPLE_ARRAY";
1440e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D:						return "GL_TEXTURE_2D";
1441e5c31af7Sopenharmony_ci		case GL_TEXTURE_3D:						return "GL_TEXTURE_3D";
1442e5c31af7Sopenharmony_ci		case GL_TEXTURE_2D_ARRAY:				return "GL_TEXTURE_2D_ARRAY";
1443e5c31af7Sopenharmony_ci		case GL_TEXTURE_CUBE_MAP:				return "GL_TEXTURE_CUBE_MAP";
1444e5c31af7Sopenharmony_ci		default:								return DE_NULL;
1445e5c31af7Sopenharmony_ci	}
1446e5c31af7Sopenharmony_ci}
1447e5c31af7Sopenharmony_ci
1448e5c31af7Sopenharmony_ciconst char* getMultisampleParameterName (int value)
1449e5c31af7Sopenharmony_ci{
1450e5c31af7Sopenharmony_ci	switch (value)
1451e5c31af7Sopenharmony_ci	{
1452e5c31af7Sopenharmony_ci		case GL_SAMPLE_POSITION:	return "GL_SAMPLE_POSITION";
1453e5c31af7Sopenharmony_ci		default:					return DE_NULL;
1454e5c31af7Sopenharmony_ci	}
1455e5c31af7Sopenharmony_ci}
1456e5c31af7Sopenharmony_ci
1457e5c31af7Sopenharmony_ciconst char* getQueryTargetName (int value)
1458e5c31af7Sopenharmony_ci{
1459e5c31af7Sopenharmony_ci	switch (value)
1460e5c31af7Sopenharmony_ci	{
1461e5c31af7Sopenharmony_ci		case GL_SAMPLES_PASSED:							return "GL_SAMPLES_PASSED";
1462e5c31af7Sopenharmony_ci		case GL_ANY_SAMPLES_PASSED:						return "GL_ANY_SAMPLES_PASSED";
1463e5c31af7Sopenharmony_ci		case GL_PRIMITIVES_GENERATED:					return "GL_PRIMITIVES_GENERATED";
1464e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:	return "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN";
1465e5c31af7Sopenharmony_ci		case GL_TIME_ELAPSED:							return "GL_TIME_ELAPSED";
1466e5c31af7Sopenharmony_ci		default:										return DE_NULL;
1467e5c31af7Sopenharmony_ci	}
1468e5c31af7Sopenharmony_ci}
1469e5c31af7Sopenharmony_ci
1470e5c31af7Sopenharmony_ciconst char* getQueryParamName (int value)
1471e5c31af7Sopenharmony_ci{
1472e5c31af7Sopenharmony_ci	switch (value)
1473e5c31af7Sopenharmony_ci	{
1474e5c31af7Sopenharmony_ci		case GL_CURRENT_QUERY:		return "GL_CURRENT_QUERY";
1475e5c31af7Sopenharmony_ci		case GL_QUERY_COUNTER_BITS:	return "GL_QUERY_COUNTER_BITS";
1476e5c31af7Sopenharmony_ci		default:					return DE_NULL;
1477e5c31af7Sopenharmony_ci	}
1478e5c31af7Sopenharmony_ci}
1479e5c31af7Sopenharmony_ci
1480e5c31af7Sopenharmony_ciconst char* getQueryObjectParamName (int value)
1481e5c31af7Sopenharmony_ci{
1482e5c31af7Sopenharmony_ci	switch (value)
1483e5c31af7Sopenharmony_ci	{
1484e5c31af7Sopenharmony_ci		case GL_QUERY_RESULT:			return "GL_QUERY_RESULT";
1485e5c31af7Sopenharmony_ci		case GL_QUERY_RESULT_AVAILABLE:	return "GL_QUERY_RESULT_AVAILABLE";
1486e5c31af7Sopenharmony_ci		default:						return DE_NULL;
1487e5c31af7Sopenharmony_ci	}
1488e5c31af7Sopenharmony_ci}
1489e5c31af7Sopenharmony_ci
1490e5c31af7Sopenharmony_ciconst char* getImageAccessName (int value)
1491e5c31af7Sopenharmony_ci{
1492e5c31af7Sopenharmony_ci	switch (value)
1493e5c31af7Sopenharmony_ci	{
1494e5c31af7Sopenharmony_ci		case GL_READ_ONLY:	return "GL_READ_ONLY";
1495e5c31af7Sopenharmony_ci		case GL_WRITE_ONLY:	return "GL_WRITE_ONLY";
1496e5c31af7Sopenharmony_ci		case GL_READ_WRITE:	return "GL_READ_WRITE";
1497e5c31af7Sopenharmony_ci		default:			return DE_NULL;
1498e5c31af7Sopenharmony_ci	}
1499e5c31af7Sopenharmony_ci}
1500e5c31af7Sopenharmony_ci
1501e5c31af7Sopenharmony_ciconst char* getProgramInterfaceName (int value)
1502e5c31af7Sopenharmony_ci{
1503e5c31af7Sopenharmony_ci	switch (value)
1504e5c31af7Sopenharmony_ci	{
1505e5c31af7Sopenharmony_ci		case GL_UNIFORM:					return "GL_UNIFORM";
1506e5c31af7Sopenharmony_ci		case GL_UNIFORM_BLOCK:				return "GL_UNIFORM_BLOCK";
1507e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER:		return "GL_ATOMIC_COUNTER_BUFFER";
1508e5c31af7Sopenharmony_ci		case GL_PROGRAM_INPUT:				return "GL_PROGRAM_INPUT";
1509e5c31af7Sopenharmony_ci		case GL_PROGRAM_OUTPUT:				return "GL_PROGRAM_OUTPUT";
1510e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK_VARYING:	return "GL_TRANSFORM_FEEDBACK_VARYING";
1511e5c31af7Sopenharmony_ci		case GL_BUFFER_VARIABLE:			return "GL_BUFFER_VARIABLE";
1512e5c31af7Sopenharmony_ci		case GL_SHADER_STORAGE_BLOCK:		return "GL_SHADER_STORAGE_BLOCK";
1513e5c31af7Sopenharmony_ci		default:							return DE_NULL;
1514e5c31af7Sopenharmony_ci	}
1515e5c31af7Sopenharmony_ci}
1516e5c31af7Sopenharmony_ci
1517e5c31af7Sopenharmony_ciconst char* getProgramResourcePropertyName (int value)
1518e5c31af7Sopenharmony_ci{
1519e5c31af7Sopenharmony_ci	switch (value)
1520e5c31af7Sopenharmony_ci	{
1521e5c31af7Sopenharmony_ci		case GL_ACTIVE_VARIABLES:						return "GL_ACTIVE_VARIABLES";
1522e5c31af7Sopenharmony_ci		case GL_BUFFER_BINDING:							return "GL_BUFFER_BINDING";
1523e5c31af7Sopenharmony_ci		case GL_NUM_ACTIVE_VARIABLES:					return "GL_NUM_ACTIVE_VARIABLES";
1524e5c31af7Sopenharmony_ci		case GL_ARRAY_SIZE:								return "GL_ARRAY_SIZE";
1525e5c31af7Sopenharmony_ci		case GL_ARRAY_STRIDE:							return "GL_ARRAY_STRIDE";
1526e5c31af7Sopenharmony_ci		case GL_BLOCK_INDEX:							return "GL_BLOCK_INDEX";
1527e5c31af7Sopenharmony_ci		case GL_IS_ROW_MAJOR:							return "GL_IS_ROW_MAJOR";
1528e5c31af7Sopenharmony_ci		case GL_MATRIX_STRIDE:							return "GL_MATRIX_STRIDE";
1529e5c31af7Sopenharmony_ci		case GL_ATOMIC_COUNTER_BUFFER_INDEX:			return "GL_ATOMIC_COUNTER_BUFFER_INDEX";
1530e5c31af7Sopenharmony_ci		case GL_BUFFER_DATA_SIZE:						return "GL_BUFFER_DATA_SIZE";
1531e5c31af7Sopenharmony_ci		case GL_LOCATION:								return "GL_LOCATION";
1532e5c31af7Sopenharmony_ci		case GL_NAME_LENGTH:							return "GL_NAME_LENGTH";
1533e5c31af7Sopenharmony_ci		case GL_OFFSET:									return "GL_OFFSET";
1534e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_VERTEX_SHADER:			return "GL_REFERENCED_BY_VERTEX_SHADER";
1535e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_FRAGMENT_SHADER:			return "GL_REFERENCED_BY_FRAGMENT_SHADER";
1536e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_COMPUTE_SHADER:			return "GL_REFERENCED_BY_COMPUTE_SHADER";
1537e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_GEOMETRY_SHADER:			return "GL_REFERENCED_BY_GEOMETRY_SHADER";
1538e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_TESS_CONTROL_SHADER:		return "GL_REFERENCED_BY_TESS_CONTROL_SHADER";
1539e5c31af7Sopenharmony_ci		case GL_REFERENCED_BY_TESS_EVALUATION_SHADER:	return "GL_REFERENCED_BY_TESS_EVALUATION_SHADER";
1540e5c31af7Sopenharmony_ci		case GL_TOP_LEVEL_ARRAY_SIZE:					return "GL_TOP_LEVEL_ARRAY_SIZE";
1541e5c31af7Sopenharmony_ci		case GL_TOP_LEVEL_ARRAY_STRIDE:					return "GL_TOP_LEVEL_ARRAY_STRIDE";
1542e5c31af7Sopenharmony_ci		case GL_TYPE:									return "GL_TYPE";
1543e5c31af7Sopenharmony_ci		case GL_IS_PER_PATCH:							return "GL_IS_PER_PATCH";
1544e5c31af7Sopenharmony_ci		default:										return DE_NULL;
1545e5c31af7Sopenharmony_ci	}
1546e5c31af7Sopenharmony_ci}
1547e5c31af7Sopenharmony_ci
1548e5c31af7Sopenharmony_ciconst char* getPrecisionFormatTypeName (int value)
1549e5c31af7Sopenharmony_ci{
1550e5c31af7Sopenharmony_ci	switch (value)
1551e5c31af7Sopenharmony_ci	{
1552e5c31af7Sopenharmony_ci		case GL_LOW_FLOAT:		return "GL_LOW_FLOAT";
1553e5c31af7Sopenharmony_ci		case GL_MEDIUM_FLOAT:	return "GL_MEDIUM_FLOAT";
1554e5c31af7Sopenharmony_ci		case GL_HIGH_FLOAT:		return "GL_HIGH_FLOAT";
1555e5c31af7Sopenharmony_ci		case GL_LOW_INT:		return "GL_LOW_INT";
1556e5c31af7Sopenharmony_ci		case GL_MEDIUM_INT:		return "GL_MEDIUM_INT";
1557e5c31af7Sopenharmony_ci		case GL_HIGH_INT:		return "GL_HIGH_INT";
1558e5c31af7Sopenharmony_ci		default:				return DE_NULL;
1559e5c31af7Sopenharmony_ci	}
1560e5c31af7Sopenharmony_ci}
1561e5c31af7Sopenharmony_ci
1562e5c31af7Sopenharmony_ciconst char* getTransformFeedbackTargetName (int value)
1563e5c31af7Sopenharmony_ci{
1564e5c31af7Sopenharmony_ci	switch (value)
1565e5c31af7Sopenharmony_ci	{
1566e5c31af7Sopenharmony_ci		case GL_TRANSFORM_FEEDBACK:	return "GL_TRANSFORM_FEEDBACK";
1567e5c31af7Sopenharmony_ci		default:					return DE_NULL;
1568e5c31af7Sopenharmony_ci	}
1569e5c31af7Sopenharmony_ci}
1570e5c31af7Sopenharmony_ci
1571e5c31af7Sopenharmony_ciconst char* getProvokingVertexName (int value)
1572e5c31af7Sopenharmony_ci{
1573e5c31af7Sopenharmony_ci	switch (value)
1574e5c31af7Sopenharmony_ci	{
1575e5c31af7Sopenharmony_ci		case GL_FIRST_VERTEX_CONVENTION:	return "GL_FIRST_VERTEX_CONVENTION";
1576e5c31af7Sopenharmony_ci		case GL_LAST_VERTEX_CONVENTION:		return "GL_LAST_VERTEX_CONVENTION";
1577e5c31af7Sopenharmony_ci		case GL_UNDEFINED_VERTEX:			return "GL_UNDEFINED_VERTEX";
1578e5c31af7Sopenharmony_ci		default:							return DE_NULL;
1579e5c31af7Sopenharmony_ci	}
1580e5c31af7Sopenharmony_ci}
1581e5c31af7Sopenharmony_ci
1582e5c31af7Sopenharmony_ciconst char* getDebugMessageSourceName (int value)
1583e5c31af7Sopenharmony_ci{
1584e5c31af7Sopenharmony_ci	switch (value)
1585e5c31af7Sopenharmony_ci	{
1586e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_API:				return "GL_DEBUG_SOURCE_API";
1587e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_WINDOW_SYSTEM:		return "GL_DEBUG_SOURCE_WINDOW_SYSTEM";
1588e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_SHADER_COMPILER:	return "GL_DEBUG_SOURCE_SHADER_COMPILER";
1589e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_THIRD_PARTY:		return "GL_DEBUG_SOURCE_THIRD_PARTY";
1590e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_APPLICATION:		return "GL_DEBUG_SOURCE_APPLICATION";
1591e5c31af7Sopenharmony_ci		case GL_DEBUG_SOURCE_OTHER:				return "GL_DEBUG_SOURCE_OTHER";
1592e5c31af7Sopenharmony_ci		case GL_DONT_CARE:						return "GL_DONT_CARE";
1593e5c31af7Sopenharmony_ci		default:								return DE_NULL;
1594e5c31af7Sopenharmony_ci	}
1595e5c31af7Sopenharmony_ci}
1596e5c31af7Sopenharmony_ci
1597e5c31af7Sopenharmony_ciconst char* getDebugMessageTypeName (int value)
1598e5c31af7Sopenharmony_ci{
1599e5c31af7Sopenharmony_ci	switch (value)
1600e5c31af7Sopenharmony_ci	{
1601e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_ERROR:				return "GL_DEBUG_TYPE_ERROR";
1602e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR:	return "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR";
1603e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR:	return "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR";
1604e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_PORTABILITY:			return "GL_DEBUG_TYPE_PORTABILITY";
1605e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_PERFORMANCE:			return "GL_DEBUG_TYPE_PERFORMANCE";
1606e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_OTHER:				return "GL_DEBUG_TYPE_OTHER";
1607e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_MARKER:				return "GL_DEBUG_TYPE_MARKER";
1608e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_PUSH_GROUP:			return "GL_DEBUG_TYPE_PUSH_GROUP";
1609e5c31af7Sopenharmony_ci		case GL_DEBUG_TYPE_POP_GROUP:			return "GL_DEBUG_TYPE_POP_GROUP";
1610e5c31af7Sopenharmony_ci		case GL_DONT_CARE:						return "GL_DONT_CARE";
1611e5c31af7Sopenharmony_ci		default:								return DE_NULL;
1612e5c31af7Sopenharmony_ci	}
1613e5c31af7Sopenharmony_ci}
1614e5c31af7Sopenharmony_ci
1615e5c31af7Sopenharmony_ciconst char* getDebugMessageSeverityName (int value)
1616e5c31af7Sopenharmony_ci{
1617e5c31af7Sopenharmony_ci	switch (value)
1618e5c31af7Sopenharmony_ci	{
1619e5c31af7Sopenharmony_ci		case GL_DEBUG_SEVERITY_HIGH:			return "GL_DEBUG_SEVERITY_HIGH";
1620e5c31af7Sopenharmony_ci		case GL_DEBUG_SEVERITY_MEDIUM:			return "GL_DEBUG_SEVERITY_MEDIUM";
1621e5c31af7Sopenharmony_ci		case GL_DEBUG_SEVERITY_LOW:				return "GL_DEBUG_SEVERITY_LOW";
1622e5c31af7Sopenharmony_ci		case GL_DEBUG_SEVERITY_NOTIFICATION:	return "GL_DEBUG_SEVERITY_NOTIFICATION";
1623e5c31af7Sopenharmony_ci		case GL_DONT_CARE:						return "GL_DONT_CARE";
1624e5c31af7Sopenharmony_ci		default:								return DE_NULL;
1625e5c31af7Sopenharmony_ci	}
1626e5c31af7Sopenharmony_ci}
1627e5c31af7Sopenharmony_ci
1628e5c31af7Sopenharmony_ciconst char* getPipelineParamName (int value)
1629e5c31af7Sopenharmony_ci{
1630e5c31af7Sopenharmony_ci	switch (value)
1631e5c31af7Sopenharmony_ci	{
1632e5c31af7Sopenharmony_ci		case GL_ACTIVE_PROGRAM:			return "GL_ACTIVE_PROGRAM";
1633e5c31af7Sopenharmony_ci		case GL_INFO_LOG_LENGTH:		return "GL_INFO_LOG_LENGTH";
1634e5c31af7Sopenharmony_ci		case GL_VALIDATE_STATUS:		return "GL_VALIDATE_STATUS";
1635e5c31af7Sopenharmony_ci		case GL_VERTEX_SHADER:			return "GL_VERTEX_SHADER";
1636e5c31af7Sopenharmony_ci		case GL_FRAGMENT_SHADER:		return "GL_FRAGMENT_SHADER";
1637e5c31af7Sopenharmony_ci		case GL_COMPUTE_SHADER:			return "GL_COMPUTE_SHADER";
1638e5c31af7Sopenharmony_ci		case GL_GEOMETRY_SHADER:		return "GL_GEOMETRY_SHADER";
1639e5c31af7Sopenharmony_ci		case GL_TESS_CONTROL_SHADER:	return "GL_TESS_CONTROL_SHADER";
1640e5c31af7Sopenharmony_ci		case GL_TESS_EVALUATION_SHADER:	return "GL_TESS_EVALUATION_SHADER";
1641e5c31af7Sopenharmony_ci		default:						return DE_NULL;
1642e5c31af7Sopenharmony_ci	}
1643e5c31af7Sopenharmony_ci}
1644e5c31af7Sopenharmony_ci
1645e5c31af7Sopenharmony_ciconst char* getPatchParamName (int value)
1646e5c31af7Sopenharmony_ci{
1647e5c31af7Sopenharmony_ci	switch (value)
1648e5c31af7Sopenharmony_ci	{
1649e5c31af7Sopenharmony_ci		case GL_PATCH_VERTICES:	return "GL_PATCH_VERTICES";
1650e5c31af7Sopenharmony_ci		default:				return DE_NULL;
1651e5c31af7Sopenharmony_ci	}
1652e5c31af7Sopenharmony_ci}
1653e5c31af7Sopenharmony_ci
1654e5c31af7Sopenharmony_ciconst char* getTextureFormatName (int value)
1655e5c31af7Sopenharmony_ci{
1656e5c31af7Sopenharmony_ci	switch (value)
1657e5c31af7Sopenharmony_ci	{
1658e5c31af7Sopenharmony_ci		case GL_LUMINANCE:									return "GL_LUMINANCE";
1659e5c31af7Sopenharmony_ci		case GL_LUMINANCE_ALPHA:							return "GL_LUMINANCE_ALPHA";
1660e5c31af7Sopenharmony_ci		case GL_ALPHA:										return "GL_ALPHA";
1661e5c31af7Sopenharmony_ci		case GL_RGB:										return "GL_RGB";
1662e5c31af7Sopenharmony_ci		case GL_RGBA:										return "GL_RGBA";
1663e5c31af7Sopenharmony_ci		case GL_RGBA4:										return "GL_RGBA4";
1664e5c31af7Sopenharmony_ci		case GL_RGB5_A1:									return "GL_RGB5_A1";
1665e5c31af7Sopenharmony_ci		case GL_RGB565:										return "GL_RGB565";
1666e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT16:							return "GL_DEPTH_COMPONENT16";
1667e5c31af7Sopenharmony_ci		case GL_STENCIL_INDEX8:								return "GL_STENCIL_INDEX8";
1668e5c31af7Sopenharmony_ci		case GL_RG:											return "GL_RG";
1669e5c31af7Sopenharmony_ci		case GL_RED:										return "GL_RED";
1670e5c31af7Sopenharmony_ci		case GL_RGBA_INTEGER:								return "GL_RGBA_INTEGER";
1671e5c31af7Sopenharmony_ci		case GL_RGB_INTEGER:								return "GL_RGB_INTEGER";
1672e5c31af7Sopenharmony_ci		case GL_RG_INTEGER:									return "GL_RG_INTEGER";
1673e5c31af7Sopenharmony_ci		case GL_RED_INTEGER:								return "GL_RED_INTEGER";
1674e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT:							return "GL_DEPTH_COMPONENT";
1675e5c31af7Sopenharmony_ci		case GL_DEPTH_STENCIL:								return "GL_DEPTH_STENCIL";
1676e5c31af7Sopenharmony_ci		case GL_RGBA32F:									return "GL_RGBA32F";
1677e5c31af7Sopenharmony_ci		case GL_RGBA32I:									return "GL_RGBA32I";
1678e5c31af7Sopenharmony_ci		case GL_RGBA32UI:									return "GL_RGBA32UI";
1679e5c31af7Sopenharmony_ci		case GL_RGBA16:										return "GL_RGBA16";
1680e5c31af7Sopenharmony_ci		case GL_RGBA16_SNORM:								return "GL_RGBA16_SNORM";
1681e5c31af7Sopenharmony_ci		case GL_RGBA16F:									return "GL_RGBA16F";
1682e5c31af7Sopenharmony_ci		case GL_RGBA16I:									return "GL_RGBA16I";
1683e5c31af7Sopenharmony_ci		case GL_RGBA16UI:									return "GL_RGBA16UI";
1684e5c31af7Sopenharmony_ci		case GL_RGBA8:										return "GL_RGBA8";
1685e5c31af7Sopenharmony_ci		case GL_RGBA8I:										return "GL_RGBA8I";
1686e5c31af7Sopenharmony_ci		case GL_RGBA8UI:									return "GL_RGBA8UI";
1687e5c31af7Sopenharmony_ci		case GL_SRGB8_ALPHA8:								return "GL_SRGB8_ALPHA8";
1688e5c31af7Sopenharmony_ci		case GL_RGB10_A2:									return "GL_RGB10_A2";
1689e5c31af7Sopenharmony_ci		case GL_RGB10_A2UI:									return "GL_RGB10_A2UI";
1690e5c31af7Sopenharmony_ci		case GL_RGBA8_SNORM:								return "GL_RGBA8_SNORM";
1691e5c31af7Sopenharmony_ci		case GL_RGB8:										return "GL_RGB8";
1692e5c31af7Sopenharmony_ci		case GL_R11F_G11F_B10F:								return "GL_R11F_G11F_B10F";
1693e5c31af7Sopenharmony_ci		case GL_RGB32F:										return "GL_RGB32F";
1694e5c31af7Sopenharmony_ci		case GL_RGB32I:										return "GL_RGB32I";
1695e5c31af7Sopenharmony_ci		case GL_RGB32UI:									return "GL_RGB32UI";
1696e5c31af7Sopenharmony_ci		case GL_RGB16:										return "GL_RGB16";
1697e5c31af7Sopenharmony_ci		case GL_RGB16_SNORM:								return "GL_RGB16_SNORM";
1698e5c31af7Sopenharmony_ci		case GL_RGB16F:										return "GL_RGB16F";
1699e5c31af7Sopenharmony_ci		case GL_RGB16I:										return "GL_RGB16I";
1700e5c31af7Sopenharmony_ci		case GL_RGB16UI:									return "GL_RGB16UI";
1701e5c31af7Sopenharmony_ci		case GL_RGB8_SNORM:									return "GL_RGB8_SNORM";
1702e5c31af7Sopenharmony_ci		case GL_RGB8I:										return "GL_RGB8I";
1703e5c31af7Sopenharmony_ci		case GL_RGB8UI:										return "GL_RGB8UI";
1704e5c31af7Sopenharmony_ci		case GL_SRGB8:										return "GL_SRGB8";
1705e5c31af7Sopenharmony_ci		case GL_RGB9_E5:									return "GL_RGB9_E5";
1706e5c31af7Sopenharmony_ci		case GL_RG32F:										return "GL_RG32F";
1707e5c31af7Sopenharmony_ci		case GL_RG32I:										return "GL_RG32I";
1708e5c31af7Sopenharmony_ci		case GL_RG32UI:										return "GL_RG32UI";
1709e5c31af7Sopenharmony_ci		case GL_RG16:										return "GL_RG16";
1710e5c31af7Sopenharmony_ci		case GL_RG16_SNORM:									return "GL_RG16_SNORM";
1711e5c31af7Sopenharmony_ci		case GL_RG16F:										return "GL_RG16F";
1712e5c31af7Sopenharmony_ci		case GL_RG16I:										return "GL_RG16I";
1713e5c31af7Sopenharmony_ci		case GL_RG16UI:										return "GL_RG16UI";
1714e5c31af7Sopenharmony_ci		case GL_RG8:										return "GL_RG8";
1715e5c31af7Sopenharmony_ci		case GL_RG8I:										return "GL_RG8I";
1716e5c31af7Sopenharmony_ci		case GL_RG8UI:										return "GL_RG8UI";
1717e5c31af7Sopenharmony_ci		case GL_RG8_SNORM:									return "GL_RG8_SNORM";
1718e5c31af7Sopenharmony_ci		case GL_R32F:										return "GL_R32F";
1719e5c31af7Sopenharmony_ci		case GL_R32I:										return "GL_R32I";
1720e5c31af7Sopenharmony_ci		case GL_R32UI:										return "GL_R32UI";
1721e5c31af7Sopenharmony_ci		case GL_R16:										return "GL_R16";
1722e5c31af7Sopenharmony_ci		case GL_R16_SNORM:									return "GL_R16_SNORM";
1723e5c31af7Sopenharmony_ci		case GL_R16F:										return "GL_R16F";
1724e5c31af7Sopenharmony_ci		case GL_R16I:										return "GL_R16I";
1725e5c31af7Sopenharmony_ci		case GL_R16UI:										return "GL_R16UI";
1726e5c31af7Sopenharmony_ci		case GL_R8:											return "GL_R8";
1727e5c31af7Sopenharmony_ci		case GL_R8I:										return "GL_R8I";
1728e5c31af7Sopenharmony_ci		case GL_R8UI:										return "GL_R8UI";
1729e5c31af7Sopenharmony_ci		case GL_R8_SNORM:									return "GL_R8_SNORM";
1730e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT32F:							return "GL_DEPTH_COMPONENT32F";
1731e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT24:							return "GL_DEPTH_COMPONENT24";
1732e5c31af7Sopenharmony_ci		case GL_DEPTH32F_STENCIL8:							return "GL_DEPTH32F_STENCIL8";
1733e5c31af7Sopenharmony_ci		case GL_DEPTH24_STENCIL8:							return "GL_DEPTH24_STENCIL8";
1734e5c31af7Sopenharmony_ci		case GL_RGB10:										return "GL_RGB10";
1735e5c31af7Sopenharmony_ci		case GL_DEPTH_COMPONENT32:							return "GL_DEPTH_COMPONENT32";
1736e5c31af7Sopenharmony_ci		case GL_SRGB:										return "GL_SRGB";
1737e5c31af7Sopenharmony_ci		case GL_SRGB_ALPHA:									return "GL_SRGB_ALPHA";
1738e5c31af7Sopenharmony_ci		case GL_SR8_EXT:									return "GL_SR8_EXT";
1739e5c31af7Sopenharmony_ci		case GL_SRG8_EXT:									return "GL_SRG8_EXT";
1740e5c31af7Sopenharmony_ci		case GL_BGRA:										return "GL_BGRA";
1741e5c31af7Sopenharmony_ci		case GL_COMPRESSED_R11_EAC:							return "GL_COMPRESSED_R11_EAC";
1742e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SIGNED_R11_EAC:					return "GL_COMPRESSED_SIGNED_R11_EAC";
1743e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RG11_EAC:						return "GL_COMPRESSED_RG11_EAC";
1744e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SIGNED_RG11_EAC:					return "GL_COMPRESSED_SIGNED_RG11_EAC";
1745e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB8_ETC2:						return "GL_COMPRESSED_RGB8_ETC2";
1746e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ETC2:						return "GL_COMPRESSED_SRGB8_ETC2";
1747e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:	return "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2";
1748e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:	return "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2";
1749e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA8_ETC2_EAC:					return "GL_COMPRESSED_RGBA8_ETC2_EAC";
1750e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:			return "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC";
1751e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_4x4_KHR:				return "GL_COMPRESSED_RGBA_ASTC_4x4_KHR";
1752e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_5x4_KHR:				return "GL_COMPRESSED_RGBA_ASTC_5x4_KHR";
1753e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_5x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_5x5_KHR";
1754e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_6x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_6x5_KHR";
1755e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_6x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_6x6_KHR";
1756e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x5_KHR";
1757e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x6_KHR";
1758e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_8x8_KHR:				return "GL_COMPRESSED_RGBA_ASTC_8x8_KHR";
1759e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x5_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x5_KHR";
1760e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x6_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x6_KHR";
1761e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x8_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x8_KHR";
1762e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_10x10_KHR:				return "GL_COMPRESSED_RGBA_ASTC_10x10_KHR";
1763e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_12x10_KHR:				return "GL_COMPRESSED_RGBA_ASTC_12x10_KHR";
1764e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_ASTC_12x12_KHR:				return "GL_COMPRESSED_RGBA_ASTC_12x12_KHR";
1765e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR";
1766e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR";
1767e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR";
1768e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR";
1769e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR";
1770e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR";
1771e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR";
1772e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR";
1773e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR";
1774e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR";
1775e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR";
1776e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR";
1777e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR";
1778e5c31af7Sopenharmony_ci		case GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:		return "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR";
1779e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_S3TC_DXT1_EXT:				return "GL_COMPRESSED_RGB_S3TC_DXT1_EXT";
1780e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT";
1781e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT3_EXT";
1782e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT:				return "GL_COMPRESSED_RGBA_S3TC_DXT5_EXT";
1783e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG:			return "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG";
1784e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG:			return "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG";
1785e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:			return "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG";
1786e5c31af7Sopenharmony_ci		case GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:			return "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG";
1787e5c31af7Sopenharmony_ci		default:											return DE_NULL;
1788e5c31af7Sopenharmony_ci	}
1789e5c31af7Sopenharmony_ci}
1790e5c31af7Sopenharmony_ci
1791e5c31af7Sopenharmony_ciconst char* getGraphicsResetStatusName (int value)
1792e5c31af7Sopenharmony_ci{
1793e5c31af7Sopenharmony_ci	switch (value)
1794e5c31af7Sopenharmony_ci	{
1795e5c31af7Sopenharmony_ci		case GL_NO_ERROR:				return "GL_NO_ERROR";
1796e5c31af7Sopenharmony_ci		case GL_GUILTY_CONTEXT_RESET:	return "GL_GUILTY_CONTEXT_RESET";
1797e5c31af7Sopenharmony_ci		case GL_INNOCENT_CONTEXT_RESET:	return "GL_INNOCENT_CONTEXT_RESET";
1798e5c31af7Sopenharmony_ci		case GL_UNKNOWN_CONTEXT_RESET:	return "GL_UNKNOWN_CONTEXT_RESET";
1799e5c31af7Sopenharmony_ci		default:						return DE_NULL;
1800e5c31af7Sopenharmony_ci	}
1801e5c31af7Sopenharmony_ci}
1802e5c31af7Sopenharmony_ci
1803e5c31af7Sopenharmony_citcu::Format::Bitfield<16> getBufferMaskStr (int value)
1804e5c31af7Sopenharmony_ci{
1805e5c31af7Sopenharmony_ci	static const tcu::Format::BitDesc s_desc[] =
1806e5c31af7Sopenharmony_ci	{
1807e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_DEPTH_BUFFER_BIT,	"GL_DEPTH_BUFFER_BIT"),
1808e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_STENCIL_BUFFER_BIT,	"GL_STENCIL_BUFFER_BIT"),
1809e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_COLOR_BUFFER_BIT,	"GL_COLOR_BUFFER_BIT"),
1810e5c31af7Sopenharmony_ci	};
1811e5c31af7Sopenharmony_ci	return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]);
1812e5c31af7Sopenharmony_ci}
1813e5c31af7Sopenharmony_ci
1814e5c31af7Sopenharmony_citcu::Format::Bitfield<16> getBufferMapFlagsStr (int value)
1815e5c31af7Sopenharmony_ci{
1816e5c31af7Sopenharmony_ci	static const tcu::Format::BitDesc s_desc[] =
1817e5c31af7Sopenharmony_ci	{
1818e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_READ_BIT,				"GL_MAP_READ_BIT"),
1819e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_WRITE_BIT,				"GL_MAP_WRITE_BIT"),
1820e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_INVALIDATE_RANGE_BIT,	"GL_MAP_INVALIDATE_RANGE_BIT"),
1821e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_INVALIDATE_BUFFER_BIT,	"GL_MAP_INVALIDATE_BUFFER_BIT"),
1822e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_FLUSH_EXPLICIT_BIT,		"GL_MAP_FLUSH_EXPLICIT_BIT"),
1823e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_MAP_UNSYNCHRONIZED_BIT,		"GL_MAP_UNSYNCHRONIZED_BIT"),
1824e5c31af7Sopenharmony_ci	};
1825e5c31af7Sopenharmony_ci	return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]);
1826e5c31af7Sopenharmony_ci}
1827e5c31af7Sopenharmony_ci
1828e5c31af7Sopenharmony_citcu::Format::Bitfield<16> getMemoryBarrierFlagsStr (int value)
1829e5c31af7Sopenharmony_ci{
1830e5c31af7Sopenharmony_ci	static const tcu::Format::BitDesc s_desc[] =
1831e5c31af7Sopenharmony_ci	{
1832e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT,	"GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT"),
1833e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_ELEMENT_ARRAY_BARRIER_BIT,			"GL_ELEMENT_ARRAY_BARRIER_BIT"),
1834e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_UNIFORM_BARRIER_BIT,				"GL_UNIFORM_BARRIER_BIT"),
1835e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_TEXTURE_FETCH_BARRIER_BIT,			"GL_TEXTURE_FETCH_BARRIER_BIT"),
1836e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_SHADER_IMAGE_ACCESS_BARRIER_BIT,	"GL_SHADER_IMAGE_ACCESS_BARRIER_BIT"),
1837e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_COMMAND_BARRIER_BIT,				"GL_COMMAND_BARRIER_BIT"),
1838e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_PIXEL_BUFFER_BARRIER_BIT,			"GL_PIXEL_BUFFER_BARRIER_BIT"),
1839e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_TEXTURE_UPDATE_BARRIER_BIT,			"GL_TEXTURE_UPDATE_BARRIER_BIT"),
1840e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_BUFFER_UPDATE_BARRIER_BIT,			"GL_BUFFER_UPDATE_BARRIER_BIT"),
1841e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_FRAMEBUFFER_BARRIER_BIT,			"GL_FRAMEBUFFER_BARRIER_BIT"),
1842e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_TRANSFORM_FEEDBACK_BARRIER_BIT,		"GL_TRANSFORM_FEEDBACK_BARRIER_BIT"),
1843e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_ATOMIC_COUNTER_BARRIER_BIT,			"GL_ATOMIC_COUNTER_BARRIER_BIT"),
1844e5c31af7Sopenharmony_ci	};
1845e5c31af7Sopenharmony_ci	return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]);
1846e5c31af7Sopenharmony_ci}
1847e5c31af7Sopenharmony_ci
1848e5c31af7Sopenharmony_citcu::Format::Bitfield<16> getShaderTypeMaskStr (int value)
1849e5c31af7Sopenharmony_ci{
1850e5c31af7Sopenharmony_ci	static const tcu::Format::BitDesc s_desc[] =
1851e5c31af7Sopenharmony_ci	{
1852e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_VERTEX_SHADER_BIT,			"GL_VERTEX_SHADER_BIT"),
1853e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_FRAGMENT_SHADER_BIT,		"GL_FRAGMENT_SHADER_BIT"),
1854e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_COMPUTE_SHADER_BIT,			"GL_COMPUTE_SHADER_BIT"),
1855e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_GEOMETRY_SHADER_BIT,		"GL_GEOMETRY_SHADER_BIT"),
1856e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_TESS_CONTROL_SHADER_BIT,	"GL_TESS_CONTROL_SHADER_BIT"),
1857e5c31af7Sopenharmony_ci		tcu::Format::BitDesc(GL_TESS_EVALUATION_SHADER_BIT,	"GL_TESS_EVALUATION_SHADER_BIT"),
1858e5c31af7Sopenharmony_ci	};
1859e5c31af7Sopenharmony_ci	return tcu::Format::Bitfield<16>(value, &s_desc[0], &s_desc[DE_LENGTH_OF_ARRAY(s_desc)]);
1860e5c31af7Sopenharmony_ci}
1861