1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2011 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci
8cb93a386Sopenharmony_ci
9cb93a386Sopenharmony_ci
10cb93a386Sopenharmony_ci#ifndef GrGLDefines_DEFINED
11cb93a386Sopenharmony_ci#define GrGLDefines_DEFINED
12cb93a386Sopenharmony_ci
13cb93a386Sopenharmony_ci/* Profiles */
14cb93a386Sopenharmony_ci#define GR_GL_CONTEXT_PROFILE_MASK              0x9126
15cb93a386Sopenharmony_ci#define GR_GL_CONTEXT_CORE_PROFILE_BIT          0x00000001
16cb93a386Sopenharmony_ci#define GR_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
17cb93a386Sopenharmony_ci
18cb93a386Sopenharmony_ci// The following constants consist of the intersection of GL constants
19cb93a386Sopenharmony_ci// exported by GLES 1.0, GLES 2.0, and desktop GL required by the system.
20cb93a386Sopenharmony_ci
21cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT               0x00000100
22cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT             0x00000400
23cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT               0x00004000
24cb93a386Sopenharmony_ci
25cb93a386Sopenharmony_ci/* Boolean */
26cb93a386Sopenharmony_ci#define GR_GL_FALSE                          0
27cb93a386Sopenharmony_ci#define GR_GL_TRUE                           1
28cb93a386Sopenharmony_ci
29cb93a386Sopenharmony_ci/* BeginMode */
30cb93a386Sopenharmony_ci#define GR_GL_POINTS                         0x0000
31cb93a386Sopenharmony_ci#define GR_GL_LINES                          0x0001
32cb93a386Sopenharmony_ci#define GR_GL_LINE_LOOP                      0x0002
33cb93a386Sopenharmony_ci#define GR_GL_LINE_STRIP                     0x0003
34cb93a386Sopenharmony_ci#define GR_GL_TRIANGLES                      0x0004
35cb93a386Sopenharmony_ci#define GR_GL_TRIANGLE_STRIP                 0x0005
36cb93a386Sopenharmony_ci#define GR_GL_TRIANGLE_FAN                   0x0006
37cb93a386Sopenharmony_ci#define GR_GL_PATCHES                        0x000E
38cb93a386Sopenharmony_ci
39cb93a386Sopenharmony_ci/* AlphaFunction (not supported in ES20) */
40cb93a386Sopenharmony_ci/*      GL_NEVER */
41cb93a386Sopenharmony_ci/*      GL_LESS */
42cb93a386Sopenharmony_ci/*      GL_EQUAL */
43cb93a386Sopenharmony_ci/*      GL_LEQUAL */
44cb93a386Sopenharmony_ci/*      GL_GREATER */
45cb93a386Sopenharmony_ci/*      GL_NOTEQUAL */
46cb93a386Sopenharmony_ci/*      GL_GEQUAL */
47cb93a386Sopenharmony_ci/*      GL_ALWAYS */
48cb93a386Sopenharmony_ci
49cb93a386Sopenharmony_ci/* Basic OpenGL blend equations */
50cb93a386Sopenharmony_ci#define GR_GL_FUNC_ADD                       0x8006
51cb93a386Sopenharmony_ci#define GR_GL_FUNC_SUBTRACT                  0x800A
52cb93a386Sopenharmony_ci#define GR_GL_FUNC_REVERSE_SUBTRACT          0x800B
53cb93a386Sopenharmony_ci
54cb93a386Sopenharmony_ci/* GL_KHR_blend_equation_advanced */
55cb93a386Sopenharmony_ci#define GR_GL_SCREEN                         0x9295
56cb93a386Sopenharmony_ci#define GR_GL_OVERLAY                        0x9296
57cb93a386Sopenharmony_ci#define GR_GL_DARKEN                         0x9297
58cb93a386Sopenharmony_ci#define GR_GL_LIGHTEN                        0x9298
59cb93a386Sopenharmony_ci#define GR_GL_COLORDODGE                     0x9299
60cb93a386Sopenharmony_ci#define GR_GL_COLORBURN                      0x929A
61cb93a386Sopenharmony_ci#define GR_GL_HARDLIGHT                      0x929B
62cb93a386Sopenharmony_ci#define GR_GL_SOFTLIGHT                      0x929C
63cb93a386Sopenharmony_ci#define GR_GL_DIFFERENCE                     0x929E
64cb93a386Sopenharmony_ci#define GR_GL_EXCLUSION                      0x92A0
65cb93a386Sopenharmony_ci#define GR_GL_MULTIPLY                       0x9294
66cb93a386Sopenharmony_ci#define GR_GL_HSL_HUE                        0x92AD
67cb93a386Sopenharmony_ci#define GR_GL_HSL_SATURATION                 0x92AE
68cb93a386Sopenharmony_ci#define GR_GL_HSL_COLOR                      0x92AF
69cb93a386Sopenharmony_ci#define GR_GL_HSL_LUMINOSITY                 0x92B0
70cb93a386Sopenharmony_ci
71cb93a386Sopenharmony_ci/* BlendingFactorDest */
72cb93a386Sopenharmony_ci#define GR_GL_ZERO                           0
73cb93a386Sopenharmony_ci#define GR_GL_ONE                            1
74cb93a386Sopenharmony_ci#define GR_GL_SRC_COLOR                      0x0300
75cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_SRC_COLOR            0x0301
76cb93a386Sopenharmony_ci#define GR_GL_SRC_ALPHA                      0x0302
77cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_SRC_ALPHA            0x0303
78cb93a386Sopenharmony_ci#define GR_GL_DST_ALPHA                      0x0304
79cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_DST_ALPHA            0x0305
80cb93a386Sopenharmony_ci
81cb93a386Sopenharmony_ci/* BlendingFactorSrc */
82cb93a386Sopenharmony_ci/*      GL_ZERO */
83cb93a386Sopenharmony_ci/*      GL_ONE */
84cb93a386Sopenharmony_ci#define GR_GL_DST_COLOR                      0x0306
85cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_DST_COLOR            0x0307
86cb93a386Sopenharmony_ci#define GR_GL_SRC_ALPHA_SATURATE             0x0308
87cb93a386Sopenharmony_ci/*      GL_SRC_ALPHA */
88cb93a386Sopenharmony_ci/*      GL_ONE_MINUS_SRC_ALPHA */
89cb93a386Sopenharmony_ci/*      GL_DST_ALPHA */
90cb93a386Sopenharmony_ci/*      GL_ONE_MINUS_DST_ALPHA */
91cb93a386Sopenharmony_ci
92cb93a386Sopenharmony_ci/* ExtendedBlendFactors */
93cb93a386Sopenharmony_ci#define GR_GL_SRC1_COLOR                     0x88F9
94cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_SRC1_COLOR           0x88FA
95cb93a386Sopenharmony_ci/*      GL_SRC1_ALPHA */
96cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_SRC1_ALPHA           0x88FB
97cb93a386Sopenharmony_ci
98cb93a386Sopenharmony_ci/* Separate Blend Functions */
99cb93a386Sopenharmony_ci#define GR_GL_BLEND_DST_RGB                  0x80C8
100cb93a386Sopenharmony_ci#define GR_GL_BLEND_SRC_RGB                  0x80C9
101cb93a386Sopenharmony_ci#define GR_GL_BLEND_DST_ALPHA                0x80CA
102cb93a386Sopenharmony_ci#define GR_GL_BLEND_SRC_ALPHA                0x80CB
103cb93a386Sopenharmony_ci#define GR_GL_CONSTANT_COLOR                 0x8001
104cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_CONSTANT_COLOR       0x8002
105cb93a386Sopenharmony_ci#define GR_GL_CONSTANT_ALPHA                 0x8003
106cb93a386Sopenharmony_ci#define GR_GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
107cb93a386Sopenharmony_ci#define GR_GL_BLEND_COLOR                    0x8005
108cb93a386Sopenharmony_ci
109cb93a386Sopenharmony_ci/* Buffer Objects */
110cb93a386Sopenharmony_ci#define GR_GL_ARRAY_BUFFER                   0x8892
111cb93a386Sopenharmony_ci#define GR_GL_ELEMENT_ARRAY_BUFFER           0x8893
112cb93a386Sopenharmony_ci#define GR_GL_DRAW_INDIRECT_BUFFER           0x8F3F
113cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BUFFER                 0x8C2A
114cb93a386Sopenharmony_ci#define GR_GL_ARRAY_BUFFER_BINDING           0x8894
115cb93a386Sopenharmony_ci#define GR_GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
116cb93a386Sopenharmony_ci#define GR_GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
117cb93a386Sopenharmony_ci#define GR_GL_PIXEL_PACK_BUFFER              0x88EB
118cb93a386Sopenharmony_ci#define GR_GL_PIXEL_UNPACK_BUFFER            0x88EC
119cb93a386Sopenharmony_ci
120cb93a386Sopenharmony_ci#define GR_GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM 0x78EC
121cb93a386Sopenharmony_ci#define GR_GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM   0x78ED
122cb93a386Sopenharmony_ci
123cb93a386Sopenharmony_ci#define GR_GL_STREAM_DRAW                    0x88E0
124cb93a386Sopenharmony_ci#define GR_GL_STREAM_READ                    0x88E1
125cb93a386Sopenharmony_ci#define GR_GL_STATIC_DRAW                    0x88E4
126cb93a386Sopenharmony_ci#define GR_GL_STATIC_READ                    0x88E5
127cb93a386Sopenharmony_ci#define GR_GL_DYNAMIC_DRAW                   0x88E8
128cb93a386Sopenharmony_ci#define GR_GL_DYNAMIC_READ                   0x88E9
129cb93a386Sopenharmony_ci
130cb93a386Sopenharmony_ci#define GR_GL_BUFFER_SIZE                    0x8764
131cb93a386Sopenharmony_ci#define GR_GL_BUFFER_USAGE                   0x8765
132cb93a386Sopenharmony_ci
133cb93a386Sopenharmony_ci#define GR_GL_CURRENT_VERTEX_ATTRIB          0x8626
134cb93a386Sopenharmony_ci
135cb93a386Sopenharmony_ci/* CullFaceMode */
136cb93a386Sopenharmony_ci#define GR_GL_FRONT                          0x0404
137cb93a386Sopenharmony_ci#define GR_GL_BACK                           0x0405
138cb93a386Sopenharmony_ci#define GR_GL_FRONT_AND_BACK                 0x0408
139cb93a386Sopenharmony_ci
140cb93a386Sopenharmony_ci/* DepthFunction */
141cb93a386Sopenharmony_ci/*      GL_NEVER */
142cb93a386Sopenharmony_ci/*      GL_LESS */
143cb93a386Sopenharmony_ci/*      GL_EQUAL */
144cb93a386Sopenharmony_ci/*      GL_LEQUAL */
145cb93a386Sopenharmony_ci/*      GL_GREATER */
146cb93a386Sopenharmony_ci/*      GL_NOTEQUAL */
147cb93a386Sopenharmony_ci/*      GL_GEQUAL */
148cb93a386Sopenharmony_ci/*      GL_ALWAYS */
149cb93a386Sopenharmony_ci
150cb93a386Sopenharmony_ci/* EnableCap */
151cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_NONE                   0x0000
152cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_2D                     0x0DE1
153cb93a386Sopenharmony_ci#define GR_GL_CULL_FACE                      0x0B44
154cb93a386Sopenharmony_ci#define GR_GL_BLEND                          0x0BE2
155cb93a386Sopenharmony_ci#define GR_GL_DITHER                         0x0BD0
156cb93a386Sopenharmony_ci#define GR_GL_STENCIL_TEST                   0x0B90
157cb93a386Sopenharmony_ci#define GR_GL_DEPTH_TEST                     0x0B71
158cb93a386Sopenharmony_ci#define GR_GL_SCISSOR_TEST                   0x0C11
159cb93a386Sopenharmony_ci#define GR_GL_POLYGON_OFFSET_FILL            0x8037
160cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
161cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_COVERAGE                0x80A0
162cb93a386Sopenharmony_ci#define GR_GL_POLYGON_OFFSET_FILL            0x8037
163cb93a386Sopenharmony_ci#define GR_GL_POLYGON_SMOOTH                 0x0B41
164cb93a386Sopenharmony_ci#define GR_GL_POLYGON_STIPPLE                0x0B42
165cb93a386Sopenharmony_ci#define GR_GL_COLOR_LOGIC_OP                 0x0BF2
166cb93a386Sopenharmony_ci#define GR_GL_COLOR_TABLE                    0x80D0
167cb93a386Sopenharmony_ci#define GR_GL_INDEX_LOGIC_OP                 0x0BF1
168cb93a386Sopenharmony_ci#define GR_GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
169cb93a386Sopenharmony_ci#define GR_GL_LINE_STIPPLE                   0x0B24
170cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_SRGB               0x8DB9
171cb93a386Sopenharmony_ci#define GR_GL_SHADER_PIXEL_LOCAL_STORAGE     0x8F64
172cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_SHADING                 0x8C36
173cb93a386Sopenharmony_ci
174cb93a386Sopenharmony_ci/* ErrorCode */
175cb93a386Sopenharmony_ci#define GR_GL_NO_ERROR                       0
176cb93a386Sopenharmony_ci#define GR_GL_INVALID_ENUM                   0x0500
177cb93a386Sopenharmony_ci#define GR_GL_INVALID_VALUE                  0x0501
178cb93a386Sopenharmony_ci#define GR_GL_INVALID_OPERATION              0x0502
179cb93a386Sopenharmony_ci#define GR_GL_OUT_OF_MEMORY                  0x0505
180cb93a386Sopenharmony_ci#define GR_GL_CONTEXT_LOST                   0x300E  // TODO(gman): What value?
181cb93a386Sopenharmony_ci
182cb93a386Sopenharmony_ci/* FrontFaceDirection */
183cb93a386Sopenharmony_ci#define GR_GL_CW                             0x0900
184cb93a386Sopenharmony_ci#define GR_GL_CCW                            0x0901
185cb93a386Sopenharmony_ci
186cb93a386Sopenharmony_ci/* GetPName */
187cb93a386Sopenharmony_ci#define GR_GL_LINE_WIDTH                     0x0B21
188cb93a386Sopenharmony_ci#define GR_GL_ALIASED_POINT_SIZE_RANGE       0x846D
189cb93a386Sopenharmony_ci#define GR_GL_ALIASED_LINE_WIDTH_RANGE       0x846E
190cb93a386Sopenharmony_ci#define GR_GL_CULL_FACE_MODE                 0x0B45
191cb93a386Sopenharmony_ci#define GR_GL_FRONT_FACE                     0x0B46
192cb93a386Sopenharmony_ci#define GR_GL_DEPTH_RANGE                    0x0B70
193cb93a386Sopenharmony_ci#define GR_GL_DEPTH_WRITEMASK                0x0B72
194cb93a386Sopenharmony_ci#define GR_GL_DEPTH_CLEAR_VALUE              0x0B73
195cb93a386Sopenharmony_ci#define GR_GL_DEPTH_FUNC                     0x0B74
196cb93a386Sopenharmony_ci#define GR_GL_STENCIL_CLEAR_VALUE            0x0B91
197cb93a386Sopenharmony_ci#define GR_GL_STENCIL_FUNC                   0x0B92
198cb93a386Sopenharmony_ci#define GR_GL_STENCIL_FAIL                   0x0B94
199cb93a386Sopenharmony_ci#define GR_GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
200cb93a386Sopenharmony_ci#define GR_GL_STENCIL_PASS_DEPTH_PASS        0x0B96
201cb93a386Sopenharmony_ci#define GR_GL_STENCIL_REF                    0x0B97
202cb93a386Sopenharmony_ci#define GR_GL_STENCIL_VALUE_MASK             0x0B93
203cb93a386Sopenharmony_ci#define GR_GL_STENCIL_WRITEMASK              0x0B98
204cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_FUNC              0x8800
205cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_FAIL              0x8801
206cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
207cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
208cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_REF               0x8CA3
209cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_VALUE_MASK        0x8CA4
210cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BACK_WRITEMASK         0x8CA5
211cb93a386Sopenharmony_ci#define GR_GL_VIEWPORT                       0x0BA2
212cb93a386Sopenharmony_ci#define GR_GL_SCISSOR_BOX                    0x0C10
213cb93a386Sopenharmony_ci/*      GL_SCISSOR_TEST */
214cb93a386Sopenharmony_ci#define GR_GL_COLOR_CLEAR_VALUE              0x0C22
215cb93a386Sopenharmony_ci#define GR_GL_COLOR_WRITEMASK                0x0C23
216cb93a386Sopenharmony_ci#define GR_GL_UNPACK_ALIGNMENT               0x0CF5
217cb93a386Sopenharmony_ci#define GR_GL_PACK_ALIGNMENT                 0x0D05
218cb93a386Sopenharmony_ci#define GR_GL_PACK_REVERSE_ROW_ORDER         0x93A4
219cb93a386Sopenharmony_ci#define GR_GL_MAX_TEXTURE_SIZE               0x0D33
220cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_MIN_LOD                0x813A
221cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_MAX_LOD                0x813B
222cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BASE_LEVEL             0x813C
223cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_MAX_LEVEL              0x813D
224cb93a386Sopenharmony_ci#define GR_GL_MAX_VIEWPORT_DIMS              0x0D3A
225cb93a386Sopenharmony_ci#define GR_GL_SUBPIXEL_BITS                  0x0D50
226cb93a386Sopenharmony_ci#define GR_GL_RED_BITS                       0x0D52
227cb93a386Sopenharmony_ci#define GR_GL_GREEN_BITS                     0x0D53
228cb93a386Sopenharmony_ci#define GR_GL_BLUE_BITS                      0x0D54
229cb93a386Sopenharmony_ci#define GR_GL_ALPHA_BITS                     0x0D55
230cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BITS                     0x0D56
231cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BITS                   0x0D57
232cb93a386Sopenharmony_ci#define GR_GL_POLYGON_OFFSET_UNITS           0x2A00
233cb93a386Sopenharmony_ci/*      GL_POLYGON_OFFSET_FILL */
234cb93a386Sopenharmony_ci#define GR_GL_POLYGON_OFFSET_FACTOR          0x8038
235cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BINDING_2D             0x8069
236cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_BUFFERS                 0x80A8
237cb93a386Sopenharmony_ci#define GR_GL_SAMPLES                        0x80A9
238cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_COVERAGE_VALUE          0x80AA
239cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_COVERAGE_INVERT         0x80AB
240cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_COVERAGE_SAMPLES  0x8CAB
241cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_COLOR_SAMPLES     0x8E10
242cb93a386Sopenharmony_ci#define GR_GL_MAX_MULTISAMPLE_COVERAGE_MODES 0x8E11
243cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_COVERAGE_MODES     0x8E12
244cb93a386Sopenharmony_ci#define GR_GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
245cb93a386Sopenharmony_ci
246cb93a386Sopenharmony_ci/* GetTextureParameter */
247cb93a386Sopenharmony_ci/*      GL_TEXTURE_MAG_FILTER */
248cb93a386Sopenharmony_ci/*      GL_TEXTURE_MIN_FILTER */
249cb93a386Sopenharmony_ci/*      GL_TEXTURE_WRAP_S */
250cb93a386Sopenharmony_ci/*      GL_TEXTURE_WRAP_T */
251cb93a386Sopenharmony_ci
252cb93a386Sopenharmony_ci#define GR_GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
253cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
254cb93a386Sopenharmony_ci
255cb93a386Sopenharmony_ci/* Compressed Texture Formats */
256cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB_S3TC_DXT1_EXT             0x83F0
257cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT            0x83F1
258cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_S3TC_DXT3_EXT            0x83F2
259cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT            0x83F3
260cb93a386Sopenharmony_ci
261cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB_S3TC_DXT1_EXT            0x8C4C
262cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT      0x8C4D
263cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT      0x8C4E
264cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT      0x8C4F
265cb93a386Sopenharmony_ci
266cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG          0x8C00
267cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG          0x8C01
268cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG         0x8C02
269cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG         0x8C03
270cb93a386Sopenharmony_ci
271cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG         0x9137
272cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG         0x9138
273cb93a386Sopenharmony_ci
274cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_ETC1_RGB8                     0x8D64
275cb93a386Sopenharmony_ci
276cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_R11_EAC                       0x9270
277cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_R11_EAC                0x9271
278cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RG11_EAC                      0x9272
279cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_RG11_EAC               0x9273
280cb93a386Sopenharmony_ci
281cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB8_ETC2                     0x9274
282cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ETC2                    0x9275
283cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1      0x9276
284cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1     0x9277
285cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA8_ETC2_EAC                0x9278
286cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC         0x9279
287cb93a386Sopenharmony_ci
288cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_LUMINANCE_LATC1               0x8C70
289cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_LATC1        0x8C71
290cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_LUMINANCE_ALPHA_LATC2         0x8C72
291cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2  0x8C73
292cb93a386Sopenharmony_ci
293cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RED_RGTC1                     0x8DBB
294cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_RED_RGTC1              0x8DBC
295cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RED_GREEN_RGTC2               0x8DBD
296cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2        0x8DBE
297cb93a386Sopenharmony_ci
298cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_3DC_X                         0x87F9
299cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_3DC_XY                        0x87FA
300cb93a386Sopenharmony_ci
301cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_BPTC_UNORM               0x8E8C
302cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM         0x8E8D
303cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT         0x8E8E
304cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT       0x8E8F
305cb93a386Sopenharmony_ci
306cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_4x4                 0x93B0
307cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_5x4                 0x93B1
308cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_5x5                 0x93B2
309cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_6x5                 0x93B3
310cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_6x6                 0x93B4
311cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_8x5                 0x93B5
312cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_8x6                 0x93B6
313cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_8x8                 0x93B7
314cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_10x5                0x93B8
315cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_10x6                0x93B9
316cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_10x8                0x93BA
317cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_10x10               0x93BB
318cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_12x10               0x93BC
319cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_RGBA_ASTC_12x12               0x93BD
320cb93a386Sopenharmony_ci
321cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4         0x93D0
322cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4         0x93D1
323cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5         0x93D2
324cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5         0x93D3
325cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6         0x93D4
326cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5         0x93D5
327cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6         0x93D6
328cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8         0x93D7
329cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5        0x93D8
330cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6        0x93D9
331cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8        0x93DA
332cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10       0x93DB
333cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10       0x93DC
334cb93a386Sopenharmony_ci#define GR_GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12       0x93DD
335cb93a386Sopenharmony_ci
336cb93a386Sopenharmony_ci/* HintMode */
337cb93a386Sopenharmony_ci#define GR_GL_DONT_CARE                      0x1100
338cb93a386Sopenharmony_ci#define GR_GL_FASTEST                        0x1101
339cb93a386Sopenharmony_ci#define GR_GL_NICEST                         0x1102
340cb93a386Sopenharmony_ci
341cb93a386Sopenharmony_ci/* HintTarget */
342cb93a386Sopenharmony_ci#define GR_GL_GENERATE_MIPMAP_HINT            0x8192
343cb93a386Sopenharmony_ci
344cb93a386Sopenharmony_ci/* DataType */
345cb93a386Sopenharmony_ci#define GR_GL_BYTE                           0x1400
346cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_BYTE                  0x1401
347cb93a386Sopenharmony_ci#define GR_GL_SHORT                          0x1402
348cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_SHORT                 0x1403
349cb93a386Sopenharmony_ci#define GR_GL_INT                            0x1404
350cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_INT                   0x1405
351cb93a386Sopenharmony_ci#define GR_GL_FLOAT                          0x1406
352cb93a386Sopenharmony_ci#define GR_GL_HALF_FLOAT                     0x140B
353cb93a386Sopenharmony_ci#define GR_GL_FIXED                          0x140C
354cb93a386Sopenharmony_ci#define GR_GL_HALF_FLOAT_OES                 0x8D61
355cb93a386Sopenharmony_ci
356cb93a386Sopenharmony_ci/* Lighting */
357cb93a386Sopenharmony_ci#define GR_GL_LIGHTING                       0x0B50
358cb93a386Sopenharmony_ci#define GR_GL_LIGHT0                         0x4000
359cb93a386Sopenharmony_ci#define GR_GL_LIGHT1                         0x4001
360cb93a386Sopenharmony_ci#define GR_GL_LIGHT2                         0x4002
361cb93a386Sopenharmony_ci#define GR_GL_LIGHT3                         0x4003
362cb93a386Sopenharmony_ci#define GR_GL_LIGHT4                         0x4004
363cb93a386Sopenharmony_ci#define GR_GL_LIGHT5                         0x4005
364cb93a386Sopenharmony_ci#define GR_GL_LIGHT6                         0x4006
365cb93a386Sopenharmony_ci#define GR_GL_LIGHT7                         0x4007
366cb93a386Sopenharmony_ci#define GR_GL_SPOT_EXPONENT                  0x1205
367cb93a386Sopenharmony_ci#define GR_GL_SPOT_CUTOFF                    0x1206
368cb93a386Sopenharmony_ci#define GR_GL_CONSTANT_ATTENUATION           0x1207
369cb93a386Sopenharmony_ci#define GR_GL_LINEAR_ATTENUATION             0x1208
370cb93a386Sopenharmony_ci#define GR_GL_QUADRATIC_ATTENUATION          0x1209
371cb93a386Sopenharmony_ci#define GR_GL_AMBIENT                        0x1200
372cb93a386Sopenharmony_ci#define GR_GL_DIFFUSE                        0x1201
373cb93a386Sopenharmony_ci#define GR_GL_SPECULAR                       0x1202
374cb93a386Sopenharmony_ci#define GR_GL_SHININESS                      0x1601
375cb93a386Sopenharmony_ci#define GR_GL_EMISSION                       0x1600
376cb93a386Sopenharmony_ci#define GR_GL_POSITION                       0x1203
377cb93a386Sopenharmony_ci#define GR_GL_SPOT_DIRECTION                 0x1204
378cb93a386Sopenharmony_ci#define GR_GL_AMBIENT_AND_DIFFUSE            0x1602
379cb93a386Sopenharmony_ci#define GR_GL_COLOR_INDEXES                  0x1603
380cb93a386Sopenharmony_ci#define GR_GL_LIGHT_MODEL_TWO_SIDE           0x0B52
381cb93a386Sopenharmony_ci#define GR_GL_LIGHT_MODEL_LOCAL_VIEWER       0x0B51
382cb93a386Sopenharmony_ci#define GR_GL_LIGHT_MODEL_AMBIENT            0x0B53
383cb93a386Sopenharmony_ci#define GR_GL_FRONT_AND_BACK                 0x0408
384cb93a386Sopenharmony_ci#define GR_GL_SHADE_MODEL                    0x0B54
385cb93a386Sopenharmony_ci#define GR_GL_FLAT                           0x1D00
386cb93a386Sopenharmony_ci#define GR_GL_SMOOTH                         0x1D01
387cb93a386Sopenharmony_ci#define GR_GL_COLOR_MATERIAL                 0x0B57
388cb93a386Sopenharmony_ci#define GR_GL_COLOR_MATERIAL_FACE            0x0B55
389cb93a386Sopenharmony_ci#define GR_GL_COLOR_MATERIAL_PARAMETER       0x0B56
390cb93a386Sopenharmony_ci#define GR_GL_NORMALIZE                      0x0BA1
391cb93a386Sopenharmony_ci
392cb93a386Sopenharmony_ci/* Matrix Mode */
393cb93a386Sopenharmony_ci#define GR_GL_MATRIX_MODE                    0x0BA0
394cb93a386Sopenharmony_ci#define GR_GL_MODELVIEW                      0x1700
395cb93a386Sopenharmony_ci#define GR_GL_PROJECTION                     0x1701
396cb93a386Sopenharmony_ci#define GR_GL_TEXTURE                        0x1702
397cb93a386Sopenharmony_ci
398cb93a386Sopenharmony_ci/* multisample */
399cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE                    0x809D
400cb93a386Sopenharmony_ci#define GR_GL_SAMPLE_POSITION                0x8E50
401cb93a386Sopenharmony_ci
402cb93a386Sopenharmony_ci/* Points */
403cb93a386Sopenharmony_ci#define GR_GL_POINT_SMOOTH                   0x0B10
404cb93a386Sopenharmony_ci#define GR_GL_POINT_SIZE                     0x0B11
405cb93a386Sopenharmony_ci#define GR_GL_POINT_SIZE_GRANULARITY         0x0B13
406cb93a386Sopenharmony_ci#define GR_GL_POINT_SIZE_RANGE               0x0B12
407cb93a386Sopenharmony_ci
408cb93a386Sopenharmony_ci/* Lines */
409cb93a386Sopenharmony_ci#define GR_GL_LINE_SMOOTH                    0x0B20
410cb93a386Sopenharmony_ci#define GR_GL_LINE_STIPPLE                   0x0B24
411cb93a386Sopenharmony_ci#define GR_GL_LINE_STIPPLE_PATTERN           0x0B25
412cb93a386Sopenharmony_ci#define GR_GL_LINE_STIPPLE_REPEAT            0x0B26
413cb93a386Sopenharmony_ci#define GR_GL_LINE_WIDTH                     0x0B21
414cb93a386Sopenharmony_ci#define GR_GL_LINE_WIDTH_GRANULARITY         0x0B23
415cb93a386Sopenharmony_ci#define GR_GL_LINE_WIDTH_RANGE               0x0B22
416cb93a386Sopenharmony_ci
417cb93a386Sopenharmony_ci/* PolygonMode */
418cb93a386Sopenharmony_ci#define GR_GL_POINT                          0x1B00
419cb93a386Sopenharmony_ci#define GR_GL_LINE                           0x1B01
420cb93a386Sopenharmony_ci#define GR_GL_FILL                           0x1B02
421cb93a386Sopenharmony_ci
422cb93a386Sopenharmony_ci/* Unsized formats */
423cb93a386Sopenharmony_ci#define GR_GL_STENCIL_INDEX                  0x1901
424cb93a386Sopenharmony_ci#define GR_GL_DEPTH_COMPONENT                0x1902
425cb93a386Sopenharmony_ci#define GR_GL_DEPTH_STENCIL                  0x84F9
426cb93a386Sopenharmony_ci#define GR_GL_RED                            0x1903
427cb93a386Sopenharmony_ci#define GR_GL_RED_INTEGER                    0x8D94
428cb93a386Sopenharmony_ci#define GR_GL_GREEN                          0x1904
429cb93a386Sopenharmony_ci#define GR_GL_BLUE                           0x1905
430cb93a386Sopenharmony_ci#define GR_GL_ALPHA                          0x1906
431cb93a386Sopenharmony_ci#define GR_GL_LUMINANCE                      0x1909
432cb93a386Sopenharmony_ci#define GR_GL_LUMINANCE_ALPHA                0x190A
433cb93a386Sopenharmony_ci#define GR_GL_RG_INTEGER                     0x8228
434cb93a386Sopenharmony_ci#define GR_GL_RGB                            0x1907
435cb93a386Sopenharmony_ci#define GR_GL_RGB_INTEGER                    0x8D98
436cb93a386Sopenharmony_ci#define GR_GL_SRGB                           0x8C40
437cb93a386Sopenharmony_ci#define GR_GL_RGBA                           0x1908
438cb93a386Sopenharmony_ci#define GR_GL_RG                             0x8227
439cb93a386Sopenharmony_ci#define GR_GL_SRGB_ALPHA                     0x8C42
440cb93a386Sopenharmony_ci#define GR_GL_RGBA_INTEGER                   0x8D99
441cb93a386Sopenharmony_ci#define GR_GL_BGRA                           0x80E1
442cb93a386Sopenharmony_ci
443cb93a386Sopenharmony_ci/* Stencil index sized formats */
444cb93a386Sopenharmony_ci#define GR_GL_STENCIL_INDEX4                 0x8D47
445cb93a386Sopenharmony_ci#define GR_GL_STENCIL_INDEX8                 0x8D48
446cb93a386Sopenharmony_ci#define GR_GL_STENCIL_INDEX16                0x8D49
447cb93a386Sopenharmony_ci
448cb93a386Sopenharmony_ci/* Depth component sized formats */
449cb93a386Sopenharmony_ci#define GR_GL_DEPTH_COMPONENT16              0x81A5
450cb93a386Sopenharmony_ci
451cb93a386Sopenharmony_ci/* Depth stencil sized formats */
452cb93a386Sopenharmony_ci#define GR_GL_DEPTH24_STENCIL8               0x88F0
453cb93a386Sopenharmony_ci
454cb93a386Sopenharmony_ci/* Red sized formats */
455cb93a386Sopenharmony_ci#define GR_GL_R8                             0x8229
456cb93a386Sopenharmony_ci#define GR_GL_R16                            0x822A
457cb93a386Sopenharmony_ci#define GR_GL_R16F                           0x822D
458cb93a386Sopenharmony_ci#define GR_GL_R32F                           0x822E
459cb93a386Sopenharmony_ci
460cb93a386Sopenharmony_ci/* Red integer sized formats */
461cb93a386Sopenharmony_ci#define GR_GL_R8I                            0x8231
462cb93a386Sopenharmony_ci#define GR_GL_R8UI                           0x8232
463cb93a386Sopenharmony_ci#define GR_GL_R16I                           0x8233
464cb93a386Sopenharmony_ci#define GR_GL_R16UI                          0x8234
465cb93a386Sopenharmony_ci#define GR_GL_R32I                           0x8235
466cb93a386Sopenharmony_ci#define GR_GL_R32UI                          0x8236
467cb93a386Sopenharmony_ci
468cb93a386Sopenharmony_ci/* Luminance sized formats */
469cb93a386Sopenharmony_ci#define GR_GL_LUMINANCE8                     0x8040
470cb93a386Sopenharmony_ci#define GR_GL_LUMINANCE8_ALPHA8              0x8045
471cb93a386Sopenharmony_ci#define GR_GL_LUMINANCE16F                   0x881E
472cb93a386Sopenharmony_ci
473cb93a386Sopenharmony_ci/* Alpha sized formats */
474cb93a386Sopenharmony_ci#define GR_GL_ALPHA8                         0x803C
475cb93a386Sopenharmony_ci#define GR_GL_ALPHA16                        0x803E
476cb93a386Sopenharmony_ci#define GR_GL_ALPHA16F                       0x881C
477cb93a386Sopenharmony_ci#define GR_GL_ALPHA32F                       0x8816
478cb93a386Sopenharmony_ci
479cb93a386Sopenharmony_ci/* Alpha integer sized formats */
480cb93a386Sopenharmony_ci#define GR_GL_ALPHA8I                        0x8D90
481cb93a386Sopenharmony_ci#define GR_GL_ALPHA8UI                       0x8D7E
482cb93a386Sopenharmony_ci#define GR_GL_ALPHA16I                       0x8D8A
483cb93a386Sopenharmony_ci#define GR_GL_ALPHA16UI                      0x8D78
484cb93a386Sopenharmony_ci#define GR_GL_ALPHA32I                       0x8D84
485cb93a386Sopenharmony_ci#define GR_GL_ALPHA32UI                      0x8D72
486cb93a386Sopenharmony_ci
487cb93a386Sopenharmony_ci/* RG sized formats */
488cb93a386Sopenharmony_ci#define GR_GL_RG8                            0x822B
489cb93a386Sopenharmony_ci#define GR_GL_RG16                           0x822C
490cb93a386Sopenharmony_ci#define GR_GL_R16F                           0x822D
491cb93a386Sopenharmony_ci#define GR_GL_R32F                           0x822E
492cb93a386Sopenharmony_ci#define GR_GL_RG16F                          0x822F
493cb93a386Sopenharmony_ci
494cb93a386Sopenharmony_ci/* RG sized integer formats */
495cb93a386Sopenharmony_ci#define GR_GL_RG8I                           0x8237
496cb93a386Sopenharmony_ci#define GR_GL_RG8UI                          0x8238
497cb93a386Sopenharmony_ci#define GR_GL_RG16I                          0x8239
498cb93a386Sopenharmony_ci#define GR_GL_RG16UI                         0x823A
499cb93a386Sopenharmony_ci#define GR_GL_RG32I                          0x823B
500cb93a386Sopenharmony_ci#define GR_GL_RG32UI                         0x823C
501cb93a386Sopenharmony_ci
502cb93a386Sopenharmony_ci/* RGB sized formats */
503cb93a386Sopenharmony_ci#define GR_GL_RGB5                           0x8050
504cb93a386Sopenharmony_ci#define GR_GL_RGB565                         0x8D62
505cb93a386Sopenharmony_ci#define GR_GL_RGB8                           0x8051
506cb93a386Sopenharmony_ci#define GR_GL_SRGB8                          0x8C41
507cb93a386Sopenharmony_ci
508cb93a386Sopenharmony_ci/* RGB integer sized formats */
509cb93a386Sopenharmony_ci#define GR_GL_RGB8I                          0x8D8F
510cb93a386Sopenharmony_ci#define GR_GL_RGB8UI                         0x8D7D
511cb93a386Sopenharmony_ci#define GR_GL_RGB16I                         0x8D89
512cb93a386Sopenharmony_ci#define GR_GL_RGB16UI                        0x8D77
513cb93a386Sopenharmony_ci#define GR_GL_RGB32I                         0x8D83
514cb93a386Sopenharmony_ci#define GR_GL_RGB32UI                        0x8D71
515cb93a386Sopenharmony_ci
516cb93a386Sopenharmony_ci/* RGBA sized formats */
517cb93a386Sopenharmony_ci#define GR_GL_RGBA4                          0x8056
518cb93a386Sopenharmony_ci#define GR_GL_RGB5_A1                        0x8057
519cb93a386Sopenharmony_ci#define GR_GL_RGBA8                          0x8058
520cb93a386Sopenharmony_ci#define GR_GL_RGB10_A2                       0x8059
521cb93a386Sopenharmony_ci#define GR_GL_SRGB8_ALPHA8                   0x8C43
522cb93a386Sopenharmony_ci#define GR_GL_RGBA16F                        0x881A
523cb93a386Sopenharmony_ci#define GR_GL_RGBA32F                        0x8814
524cb93a386Sopenharmony_ci#define GR_GL_RG32F                          0x8230
525cb93a386Sopenharmony_ci#define GR_GL_RGBA16                         0x805B
526cb93a386Sopenharmony_ci
527cb93a386Sopenharmony_ci/* RGBA integer sized formats */
528cb93a386Sopenharmony_ci#define GR_GL_RGBA8I                         0x8D8E
529cb93a386Sopenharmony_ci#define GR_GL_RGBA8UI                        0x8D7C
530cb93a386Sopenharmony_ci#define GR_GL_RGBA16I                        0x8D88
531cb93a386Sopenharmony_ci#define GR_GL_RGBA16UI                       0x8D76
532cb93a386Sopenharmony_ci#define GR_GL_RGBA32I                        0x8D82
533cb93a386Sopenharmony_ci#define GR_GL_RGBA32UI                       0x8D70
534cb93a386Sopenharmony_ci
535cb93a386Sopenharmony_ci/* BGRA sized formats */
536cb93a386Sopenharmony_ci#define GR_GL_BGRA8                          0x93A1
537cb93a386Sopenharmony_ci
538cb93a386Sopenharmony_ci/* PixelType */
539cb93a386Sopenharmony_ci/*      GL_UNSIGNED_BYTE */
540cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_SHORT_4_4_4_4         0x8033
541cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_SHORT_5_5_5_1         0x8034
542cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_SHORT_5_6_5           0x8363
543cb93a386Sopenharmony_ci#define GR_GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
544cb93a386Sopenharmony_ci
545cb93a386Sopenharmony_ci/* Shaders */
546cb93a386Sopenharmony_ci#define GR_GL_FRAGMENT_SHADER                          0x8B30
547cb93a386Sopenharmony_ci#define GR_GL_VERTEX_SHADER                            0x8B31
548cb93a386Sopenharmony_ci#define GR_GL_TESS_CONTROL_SHADER                      0x8E88
549cb93a386Sopenharmony_ci#define GR_GL_TESS_EVALUATION_SHADER                   0x8E87
550cb93a386Sopenharmony_ci#define GR_GL_MAX_VERTEX_ATTRIBS                       0x8869
551cb93a386Sopenharmony_ci#define GR_GL_MAX_VERTEX_UNIFORM_VECTORS               0x8DFB
552cb93a386Sopenharmony_ci#define GR_GL_MAX_VARYING_VECTORS                      0x8DFC
553cb93a386Sopenharmony_ci#define GR_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS         0x8B4D
554cb93a386Sopenharmony_ci#define GR_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS           0x8B4C
555cb93a386Sopenharmony_ci#define GR_GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS         0x8C29
556cb93a386Sopenharmony_ci#define GR_GL_MAX_TEXTURE_IMAGE_UNITS                  0x8872
557cb93a386Sopenharmony_ci#define GR_GL_MAX_FRAGMENT_UNIFORM_VECTORS             0x8DFD
558cb93a386Sopenharmony_ci#define GR_GL_SHADER_TYPE                              0x8B4F
559cb93a386Sopenharmony_ci#define GR_GL_DELETE_STATUS                            0x8B80
560cb93a386Sopenharmony_ci#define GR_GL_LINK_STATUS                              0x8B82
561cb93a386Sopenharmony_ci#define GR_GL_VALIDATE_STATUS                          0x8B83
562cb93a386Sopenharmony_ci#define GR_GL_ATTACHED_SHADERS                         0x8B85
563cb93a386Sopenharmony_ci#define GR_GL_ACTIVE_UNIFORMS                          0x8B86
564cb93a386Sopenharmony_ci#define GR_GL_ACTIVE_UNIFORM_MAX_LENGTH                0x8B87
565cb93a386Sopenharmony_ci#define GR_GL_ACTIVE_ATTRIBUTES                        0x8B89
566cb93a386Sopenharmony_ci#define GR_GL_ACTIVE_ATTRIBUTE_MAX_LENGTH              0x8B8A
567cb93a386Sopenharmony_ci#define GR_GL_SHADING_LANGUAGE_VERSION                 0x8B8C
568cb93a386Sopenharmony_ci#define GR_GL_CURRENT_PROGRAM                          0x8B8D
569cb93a386Sopenharmony_ci#define GR_GL_MAX_FRAGMENT_UNIFORM_COMPONENTS          0x8B49
570cb93a386Sopenharmony_ci#define GR_GL_MAX_VERTEX_UNIFORM_COMPONENTS            0x8B4A
571cb93a386Sopenharmony_ci#define GR_GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE 0x8F63
572cb93a386Sopenharmony_ci#define GR_GL_SHADER_BINARY_FORMATS                    0x8DF8
573cb93a386Sopenharmony_ci
574cb93a386Sopenharmony_ci/* StencilFunction */
575cb93a386Sopenharmony_ci#define GR_GL_NEVER                          0x0200
576cb93a386Sopenharmony_ci#define GR_GL_LESS                           0x0201
577cb93a386Sopenharmony_ci#define GR_GL_EQUAL                          0x0202
578cb93a386Sopenharmony_ci#define GR_GL_LEQUAL                         0x0203
579cb93a386Sopenharmony_ci#define GR_GL_GREATER                        0x0204
580cb93a386Sopenharmony_ci#define GR_GL_NOTEQUAL                       0x0205
581cb93a386Sopenharmony_ci#define GR_GL_GEQUAL                         0x0206
582cb93a386Sopenharmony_ci#define GR_GL_ALWAYS                         0x0207
583cb93a386Sopenharmony_ci
584cb93a386Sopenharmony_ci/* StencilOp */
585cb93a386Sopenharmony_ci/*      GL_ZERO */
586cb93a386Sopenharmony_ci#define GR_GL_KEEP                           0x1E00
587cb93a386Sopenharmony_ci#define GR_GL_REPLACE                        0x1E01
588cb93a386Sopenharmony_ci#define GR_GL_INCR                           0x1E02
589cb93a386Sopenharmony_ci#define GR_GL_DECR                           0x1E03
590cb93a386Sopenharmony_ci#define GR_GL_INVERT                         0x150A
591cb93a386Sopenharmony_ci#define GR_GL_INCR_WRAP                      0x8507
592cb93a386Sopenharmony_ci#define GR_GL_DECR_WRAP                      0x8508
593cb93a386Sopenharmony_ci
594cb93a386Sopenharmony_ci/* StringName */
595cb93a386Sopenharmony_ci#define GR_GL_VENDOR                         0x1F00
596cb93a386Sopenharmony_ci#define GR_GL_RENDERER                       0x1F01
597cb93a386Sopenharmony_ci#define GR_GL_VERSION                        0x1F02
598cb93a386Sopenharmony_ci#define GR_GL_EXTENSIONS                     0x1F03
599cb93a386Sopenharmony_ci
600cb93a386Sopenharmony_ci/* StringCounts */
601cb93a386Sopenharmony_ci#define GR_GL_NUM_EXTENSIONS                 0x821D
602cb93a386Sopenharmony_ci
603cb93a386Sopenharmony_ci/* Pixel Mode / Transfer */
604cb93a386Sopenharmony_ci#define GR_GL_UNPACK_ROW_LENGTH              0x0CF2
605cb93a386Sopenharmony_ci#define GR_GL_PACK_ROW_LENGTH                0x0D02
606cb93a386Sopenharmony_ci
607cb93a386Sopenharmony_ci
608cb93a386Sopenharmony_ci/* TextureMagFilter */
609cb93a386Sopenharmony_ci#define GR_GL_NEAREST                        0x2600
610cb93a386Sopenharmony_ci#define GR_GL_LINEAR                         0x2601
611cb93a386Sopenharmony_ci
612cb93a386Sopenharmony_ci/* TextureMinFilter */
613cb93a386Sopenharmony_ci/*      GL_NEAREST */
614cb93a386Sopenharmony_ci/*      GL_LINEAR */
615cb93a386Sopenharmony_ci#define GR_GL_NEAREST_MIPMAP_NEAREST         0x2700
616cb93a386Sopenharmony_ci#define GR_GL_LINEAR_MIPMAP_NEAREST          0x2701
617cb93a386Sopenharmony_ci#define GR_GL_NEAREST_MIPMAP_LINEAR          0x2702
618cb93a386Sopenharmony_ci#define GR_GL_LINEAR_MIPMAP_LINEAR           0x2703
619cb93a386Sopenharmony_ci
620cb93a386Sopenharmony_ci/* TextureUsage */
621cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT         0x93A3
622cb93a386Sopenharmony_ci
623cb93a386Sopenharmony_ci/* TextureParameterName */
624cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_MAG_FILTER             0x2800
625cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_MIN_FILTER             0x2801
626cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_WRAP_S                 0x2802
627cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_WRAP_T                 0x2803
628cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_USAGE                  0x93A2
629cb93a386Sopenharmony_ci
630cb93a386Sopenharmony_ci/* TextureTarget */
631cb93a386Sopenharmony_ci/*      GL_TEXTURE_2D */
632cb93a386Sopenharmony_ci#define GR_GL_TEXTURE                        0x1702
633cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP               0x8513
634cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BINDING_CUBE_MAP       0x8514
635cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
636cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
637cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
638cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
639cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
640cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
641cb93a386Sopenharmony_ci#define GR_GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
642cb93a386Sopenharmony_ci
643cb93a386Sopenharmony_ci/* TextureUnit */
644cb93a386Sopenharmony_ci#define GR_GL_TEXTURE0                       0x84C0
645cb93a386Sopenharmony_ci#define GR_GL_TEXTURE1                       0x84C1
646cb93a386Sopenharmony_ci#define GR_GL_TEXTURE2                       0x84C2
647cb93a386Sopenharmony_ci#define GR_GL_TEXTURE3                       0x84C3
648cb93a386Sopenharmony_ci#define GR_GL_TEXTURE4                       0x84C4
649cb93a386Sopenharmony_ci#define GR_GL_TEXTURE5                       0x84C5
650cb93a386Sopenharmony_ci#define GR_GL_TEXTURE6                       0x84C6
651cb93a386Sopenharmony_ci#define GR_GL_TEXTURE7                       0x84C7
652cb93a386Sopenharmony_ci#define GR_GL_TEXTURE8                       0x84C8
653cb93a386Sopenharmony_ci#define GR_GL_TEXTURE9                       0x84C9
654cb93a386Sopenharmony_ci#define GR_GL_TEXTURE10                      0x84CA
655cb93a386Sopenharmony_ci#define GR_GL_TEXTURE11                      0x84CB
656cb93a386Sopenharmony_ci#define GR_GL_TEXTURE12                      0x84CC
657cb93a386Sopenharmony_ci#define GR_GL_TEXTURE13                      0x84CD
658cb93a386Sopenharmony_ci#define GR_GL_TEXTURE14                      0x84CE
659cb93a386Sopenharmony_ci#define GR_GL_TEXTURE15                      0x84CF
660cb93a386Sopenharmony_ci#define GR_GL_TEXTURE16                      0x84D0
661cb93a386Sopenharmony_ci#define GR_GL_TEXTURE17                      0x84D1
662cb93a386Sopenharmony_ci#define GR_GL_TEXTURE18                      0x84D2
663cb93a386Sopenharmony_ci#define GR_GL_TEXTURE19                      0x84D3
664cb93a386Sopenharmony_ci#define GR_GL_TEXTURE20                      0x84D4
665cb93a386Sopenharmony_ci#define GR_GL_TEXTURE21                      0x84D5
666cb93a386Sopenharmony_ci#define GR_GL_TEXTURE22                      0x84D6
667cb93a386Sopenharmony_ci#define GR_GL_TEXTURE23                      0x84D7
668cb93a386Sopenharmony_ci#define GR_GL_TEXTURE24                      0x84D8
669cb93a386Sopenharmony_ci#define GR_GL_TEXTURE25                      0x84D9
670cb93a386Sopenharmony_ci#define GR_GL_TEXTURE26                      0x84DA
671cb93a386Sopenharmony_ci#define GR_GL_TEXTURE27                      0x84DB
672cb93a386Sopenharmony_ci#define GR_GL_TEXTURE28                      0x84DC
673cb93a386Sopenharmony_ci#define GR_GL_TEXTURE29                      0x84DD
674cb93a386Sopenharmony_ci#define GR_GL_TEXTURE30                      0x84DE
675cb93a386Sopenharmony_ci#define GR_GL_TEXTURE31                      0x84DF
676cb93a386Sopenharmony_ci#define GR_GL_ACTIVE_TEXTURE                 0x84E0
677cb93a386Sopenharmony_ci#define GR_GL_MAX_TEXTURE_UNITS              0x84E2
678cb93a386Sopenharmony_ci#define GR_GL_MAX_TEXTURE_COORDS             0x8871
679cb93a386Sopenharmony_ci
680cb93a386Sopenharmony_ci/* TextureWrapMode */
681cb93a386Sopenharmony_ci#define GR_GL_REPEAT                         0x2901
682cb93a386Sopenharmony_ci#define GR_GL_CLAMP_TO_EDGE                  0x812F
683cb93a386Sopenharmony_ci#define GR_GL_MIRRORED_REPEAT                0x8370
684cb93a386Sopenharmony_ci#define GR_GL_CLAMP_TO_BORDER                0x812D
685cb93a386Sopenharmony_ci
686cb93a386Sopenharmony_ci/* Texture Swizzle */
687cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_SWIZZLE_R              0x8E42
688cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_SWIZZLE_G              0x8E43
689cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_SWIZZLE_B              0x8E44
690cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_SWIZZLE_A              0x8E45
691cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_SWIZZLE_RGBA           0x8E46
692cb93a386Sopenharmony_ci
693cb93a386Sopenharmony_ci/* Texture mapping */
694cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_ENV                    0x2300
695cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_ENV_MODE               0x2200
696cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_1D                     0x0DE0
697cb93a386Sopenharmony_ci/* GL_TEXTURE_2D */
698cb93a386Sopenharmony_ci/* GL_TEXTURE_WRAP_S */
699cb93a386Sopenharmony_ci/* GL_TEXTURE_WRAP_T */
700cb93a386Sopenharmony_ci/* GL_TEXTURE_MAG_FILTER */
701cb93a386Sopenharmony_ci/* GL_TEXTURE_MIN_FILTER */
702cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_ENV_COLOR             0x2201
703cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_S                 0x0C60
704cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_T                 0x0C61
705cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_R                 0x0C62
706cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_Q                 0x0C63
707cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_MODE              0x2500
708cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BORDER_COLOR          0x1004
709cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_WIDTH                 0x1000
710cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_HEIGHT                0x1001
711cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BORDER                0x1005
712cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COMPONENTS            0x1003
713cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_RED_SIZE              0x805C
714cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GREEN_SIZE            0x805D
715cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BLUE_SIZE             0x805E
716cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_ALPHA_SIZE            0x805F
717cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_LUMINANCE_SIZE        0x8060
718cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_INTENSITY_SIZE        0x8061
719cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_INTERNAL_FORMAT       0x1003
720cb93a386Sopenharmony_ci/* GL_NEAREST_MIPMAP_NEAREST */
721cb93a386Sopenharmony_ci/* GL_NEAREST_MIPMAP_LINEAR */
722cb93a386Sopenharmony_ci/* GL_LINEAR_MIPMAP_NEAREST */
723cb93a386Sopenharmony_ci/* GL_LINEAR_MIPMAP_LINEAR */
724cb93a386Sopenharmony_ci#define GR_GL_OBJECT_LINEAR                 0x2401
725cb93a386Sopenharmony_ci#define GR_GL_OBJECT_PLANE                  0x2501
726cb93a386Sopenharmony_ci#define GR_GL_EYE_LINEAR                    0x2400
727cb93a386Sopenharmony_ci#define GR_GL_EYE_PLANE                     0x2502
728cb93a386Sopenharmony_ci#define GR_GL_SPHERE_MAP                    0x2402
729cb93a386Sopenharmony_ci#define GR_GL_DECAL                         0x2101
730cb93a386Sopenharmony_ci#define GR_GL_MODULATE                      0x2100
731cb93a386Sopenharmony_ci/* GL_NEAREST */
732cb93a386Sopenharmony_ci/* GL_REPEAT */
733cb93a386Sopenharmony_ci#define GR_GL_CLAMP                         0x2900
734cb93a386Sopenharmony_ci#define GR_GL_S                             0x2000
735cb93a386Sopenharmony_ci#define GR_GL_T                             0x2001
736cb93a386Sopenharmony_ci#define GR_GL_R                             0x2002
737cb93a386Sopenharmony_ci#define GR_GL_Q                             0x2003
738cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_R                 0x0C62
739cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_GEN_Q                 0x0C63
740cb93a386Sopenharmony_ci
741cb93a386Sopenharmony_ci/* texture_env_combine */
742cb93a386Sopenharmony_ci#define GR_GL_COMBINE                       0x8570
743cb93a386Sopenharmony_ci#define GR_GL_COMBINE_RGB                   0x8571
744cb93a386Sopenharmony_ci#define GR_GL_COMBINE_ALPHA                 0x8572
745cb93a386Sopenharmony_ci#define GR_GL_SOURCE0_RGB                   0x8580
746cb93a386Sopenharmony_ci#define GR_GL_SOURCE1_RGB                   0x8581
747cb93a386Sopenharmony_ci#define GR_GL_SOURCE2_RGB                   0x8582
748cb93a386Sopenharmony_ci#define GR_GL_SOURCE0_ALPHA                 0x8588
749cb93a386Sopenharmony_ci#define GR_GL_SOURCE1_ALPHA                 0x8589
750cb93a386Sopenharmony_ci#define GR_GL_SOURCE2_ALPHA                 0x858A
751cb93a386Sopenharmony_ci#define GR_GL_OPERAND0_RGB                  0x8590
752cb93a386Sopenharmony_ci#define GR_GL_OPERAND1_RGB                  0x8591
753cb93a386Sopenharmony_ci#define GR_GL_OPERAND2_RGB                  0x8592
754cb93a386Sopenharmony_ci#define GR_GL_OPERAND0_ALPHA                0x8598
755cb93a386Sopenharmony_ci#define GR_GL_OPERAND1_ALPHA                0x8599
756cb93a386Sopenharmony_ci#define GR_GL_OPERAND2_ALPHA                0x859A
757cb93a386Sopenharmony_ci#define GR_GL_RGB_SCALE                     0x8573
758cb93a386Sopenharmony_ci#define GR_GL_ADD_SIGNED                    0x8574
759cb93a386Sopenharmony_ci#define GR_GL_INTERPOLATE                   0x8575
760cb93a386Sopenharmony_ci#define GR_GL_SUBTRACT                      0x84E7
761cb93a386Sopenharmony_ci#define GR_GL_CONSTANT                      0x8576
762cb93a386Sopenharmony_ci#define GR_GL_PRIMARY_COLOR                 0x8577
763cb93a386Sopenharmony_ci#define GR_GL_PREVIOUS                      0x8578
764cb93a386Sopenharmony_ci#define GR_GL_SRC0_RGB                      0x8580
765cb93a386Sopenharmony_ci#define GR_GL_SRC1_RGB                      0x8581
766cb93a386Sopenharmony_ci#define GR_GL_SRC2_RGB                      0x8582
767cb93a386Sopenharmony_ci#define GR_GL_SRC0_ALPHA                    0x8588
768cb93a386Sopenharmony_ci#define GR_GL_SRC1_ALPHA                    0x8589
769cb93a386Sopenharmony_ci#define GR_GL_SRC2_ALPHA                    0x858A
770cb93a386Sopenharmony_ci
771cb93a386Sopenharmony_ci/* Uniform Types */
772cb93a386Sopenharmony_ci#define GR_GL_FLOAT_VEC2                     0x8B50
773cb93a386Sopenharmony_ci#define GR_GL_FLOAT_VEC3                     0x8B51
774cb93a386Sopenharmony_ci#define GR_GL_FLOAT_VEC4                     0x8B52
775cb93a386Sopenharmony_ci#define GR_GL_INT_VEC2                       0x8B53
776cb93a386Sopenharmony_ci#define GR_GL_INT_VEC3                       0x8B54
777cb93a386Sopenharmony_ci#define GR_GL_INT_VEC4                       0x8B55
778cb93a386Sopenharmony_ci#define GR_GL_BOOL                           0x8B56
779cb93a386Sopenharmony_ci#define GR_GL_BOOL_VEC2                      0x8B57
780cb93a386Sopenharmony_ci#define GR_GL_BOOL_VEC3                      0x8B58
781cb93a386Sopenharmony_ci#define GR_GL_BOOL_VEC4                      0x8B59
782cb93a386Sopenharmony_ci#define GR_GL_FLOAT_MAT2                     0x8B5A
783cb93a386Sopenharmony_ci#define GR_GL_FLOAT_MAT3                     0x8B5B
784cb93a386Sopenharmony_ci#define GR_GL_FLOAT_MAT4                     0x8B5C
785cb93a386Sopenharmony_ci#define GR_GL_SAMPLER_2D                     0x8B5E
786cb93a386Sopenharmony_ci#define GR_GL_SAMPLER_CUBE                   0x8B60
787cb93a386Sopenharmony_ci
788cb93a386Sopenharmony_ci/* Vertex Arrays */
789cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_ENABLED        0x8622
790cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_SIZE           0x8623
791cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_STRIDE         0x8624
792cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_TYPE           0x8625
793cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_NORMALIZED     0x886A
794cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_POINTER        0x8645
795cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
796cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ARRAY                       0x8074
797cb93a386Sopenharmony_ci#define GR_GL_NORMAL_ARRAY                       0x8075
798cb93a386Sopenharmony_ci#define GR_GL_COLOR_ARRAY                        0x8076
799cb93a386Sopenharmony_ci#define GR_GL_SECONDARY_COLOR_ARRAY              0x845E
800cb93a386Sopenharmony_ci#define GR_GL_INDEX_ARRAY                        0x8077
801cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COORD_ARRAY                0x8078
802cb93a386Sopenharmony_ci#define GR_GL_EDGE_FLAG_ARRAY                    0x8079
803cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ARRAY_SIZE                  0x807A
804cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ARRAY_TYPE                  0x807B
805cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ARRAY_STRIDE                0x807C
806cb93a386Sopenharmony_ci#define GR_GL_NORMAL_ARRAY_TYPE                  0x807E
807cb93a386Sopenharmony_ci#define GR_GL_NORMAL_ARRAY_STRIDE                0x807F
808cb93a386Sopenharmony_ci#define GR_GL_COLOR_ARRAY_SIZE                   0x8081
809cb93a386Sopenharmony_ci#define GR_GL_COLOR_ARRAY_TYPE                   0x8082
810cb93a386Sopenharmony_ci#define GR_GL_COLOR_ARRAY_STRIDE                 0x8083
811cb93a386Sopenharmony_ci#define GR_GL_INDEX_ARRAY_TYPE                   0x8085
812cb93a386Sopenharmony_ci#define GR_GL_INDEX_ARRAY_STRIDE                 0x8086
813cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COORD_ARRAY_SIZE           0x8088
814cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COORD_ARRAY_TYPE           0x8089
815cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COORD_ARRAY_STRIDE         0x808A
816cb93a386Sopenharmony_ci#define GR_GL_EDGE_FLAG_ARRAY_STRIDE             0x808C
817cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ARRAY_POINTER               0x808E
818cb93a386Sopenharmony_ci#define GR_GL_NORMAL_ARRAY_POINTER               0x808F
819cb93a386Sopenharmony_ci#define GR_GL_COLOR_ARRAY_POINTER                0x8090
820cb93a386Sopenharmony_ci#define GR_GL_INDEX_ARRAY_POINTER                0x8091
821cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_COORD_ARRAY_POINTER        0x8092
822cb93a386Sopenharmony_ci#define GR_GL_EDGE_FLAG_ARRAY_POINTER            0x8093
823cb93a386Sopenharmony_ci#define GR_GL_V2F                                0x2A20
824cb93a386Sopenharmony_ci#define GR_GL_V3F                                0x2A21
825cb93a386Sopenharmony_ci#define GR_GL_C4UB_V2F                           0x2A22
826cb93a386Sopenharmony_ci#define GR_GL_C4UB_V3F                           0x2A23
827cb93a386Sopenharmony_ci#define GR_GL_C3F_V3F                            0x2A24
828cb93a386Sopenharmony_ci#define GR_GL_N3F_V3F                            0x2A25
829cb93a386Sopenharmony_ci#define GR_GL_C4F_N3F_V3F                        0x2A26
830cb93a386Sopenharmony_ci#define GR_GL_T2F_V3F                            0x2A27
831cb93a386Sopenharmony_ci#define GR_GL_T4F_V4F                            0x2A28
832cb93a386Sopenharmony_ci#define GR_GL_T2F_C4UB_V3F                       0x2A29
833cb93a386Sopenharmony_ci#define GR_GL_T2F_C3F_V3F                        0x2A2A
834cb93a386Sopenharmony_ci#define GR_GL_T2F_N3F_V3F                        0x2A2B
835cb93a386Sopenharmony_ci#define GR_GL_T2F_C4F_N3F_V3F                    0x2A2C
836cb93a386Sopenharmony_ci#define GR_GL_T4F_C4F_N3F_V4F                    0x2A2D
837cb93a386Sopenharmony_ci#define GR_GL_PRIMITIVE_RESTART_FIXED_INDEX      0x8D69
838cb93a386Sopenharmony_ci
839cb93a386Sopenharmony_ci/* Buffer Object */
840cb93a386Sopenharmony_ci#define GR_GL_READ_ONLY                          0x88B8
841cb93a386Sopenharmony_ci#define GR_GL_WRITE_ONLY                         0x88B9
842cb93a386Sopenharmony_ci#define GR_GL_READ_WRITE                         0x88BA
843cb93a386Sopenharmony_ci#define GR_GL_BUFFER_MAPPED                      0x88BC
844cb93a386Sopenharmony_ci
845cb93a386Sopenharmony_ci#define GR_GL_MAP_READ_BIT                       0x0001
846cb93a386Sopenharmony_ci#define GR_GL_MAP_WRITE_BIT                      0x0002
847cb93a386Sopenharmony_ci#define GR_GL_MAP_INVALIDATE_RANGE_BIT           0x0004
848cb93a386Sopenharmony_ci#define GR_GL_MAP_INVALIDATE_BUFFER_BIT          0x0008
849cb93a386Sopenharmony_ci#define GR_GL_MAP_FLUSH_EXPLICIT_BIT             0x0010
850cb93a386Sopenharmony_ci#define GR_GL_MAP_UNSYNCHRONIZED_BIT             0x0020
851cb93a386Sopenharmony_ci
852cb93a386Sopenharmony_ci/* Read Format */
853cb93a386Sopenharmony_ci#define GR_GL_IMPLEMENTATION_COLOR_READ_TYPE   0x8B9A
854cb93a386Sopenharmony_ci#define GR_GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
855cb93a386Sopenharmony_ci
856cb93a386Sopenharmony_ci/* Shader Source */
857cb93a386Sopenharmony_ci#define GR_GL_COMPILE_STATUS                 0x8B81
858cb93a386Sopenharmony_ci#define GR_GL_INFO_LOG_LENGTH                0x8B84
859cb93a386Sopenharmony_ci#define GR_GL_SHADER_SOURCE_LENGTH           0x8B88
860cb93a386Sopenharmony_ci#define GR_GL_SHADER_COMPILER                0x8DFA
861cb93a386Sopenharmony_ci
862cb93a386Sopenharmony_ci/* Shader Binary */
863cb93a386Sopenharmony_ci#define GR_GL_SHADER_BINARY_FORMATS          0x8DF8
864cb93a386Sopenharmony_ci#define GR_GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
865cb93a386Sopenharmony_ci
866cb93a386Sopenharmony_ci/* Program Binary */
867cb93a386Sopenharmony_ci#define GR_GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
868cb93a386Sopenharmony_ci
869cb93a386Sopenharmony_ci/* Shader Precision-Specified Types */
870cb93a386Sopenharmony_ci#define GR_GL_LOW_FLOAT                      0x8DF0
871cb93a386Sopenharmony_ci#define GR_GL_MEDIUM_FLOAT                   0x8DF1
872cb93a386Sopenharmony_ci#define GR_GL_HIGH_FLOAT                     0x8DF2
873cb93a386Sopenharmony_ci#define GR_GL_LOW_INT                        0x8DF3
874cb93a386Sopenharmony_ci#define GR_GL_MEDIUM_INT                     0x8DF4
875cb93a386Sopenharmony_ci#define GR_GL_HIGH_INT                       0x8DF5
876cb93a386Sopenharmony_ci
877cb93a386Sopenharmony_ci/* Queries */
878cb93a386Sopenharmony_ci#define GR_GL_QUERY_COUNTER_BITS             0x8864
879cb93a386Sopenharmony_ci#define GR_GL_CURRENT_QUERY                  0x8865
880cb93a386Sopenharmony_ci#define GR_GL_QUERY_RESULT                   0x8866
881cb93a386Sopenharmony_ci#define GR_GL_QUERY_RESULT_AVAILABLE         0x8867
882cb93a386Sopenharmony_ci#define GR_GL_SAMPLES_PASSED                 0x8914
883cb93a386Sopenharmony_ci#define GR_GL_ANY_SAMPLES_PASSED             0x8C2F
884cb93a386Sopenharmony_ci#define GR_GL_TIME_ELAPSED                   0x88BF
885cb93a386Sopenharmony_ci#define GR_GL_TIMESTAMP                      0x8E28
886cb93a386Sopenharmony_ci#define GR_GL_PRIMITIVES_GENERATED           0x8C87
887cb93a386Sopenharmony_ci#define GR_GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
888cb93a386Sopenharmony_ci
889cb93a386Sopenharmony_ci
890cb93a386Sopenharmony_ci/* Framebuffer Object. */
891cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER                    0x8D40
892cb93a386Sopenharmony_ci#define GR_GL_READ_FRAMEBUFFER               0x8CA8
893cb93a386Sopenharmony_ci#define GR_GL_DRAW_FRAMEBUFFER               0x8CA9
894cb93a386Sopenharmony_ci
895cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER                   0x8D41
896cb93a386Sopenharmony_ci
897cb93a386Sopenharmony_ci#define GR_GL_MAX_SAMPLES                    0x8D57
898cb93a386Sopenharmony_ci// GL_IMG_multisampled_render_to_texture uses a different value for GL_MAX_SAMPLES
899cb93a386Sopenharmony_ci#define GR_GL_MAX_SAMPLES_IMG                0x9135
900cb93a386Sopenharmony_ci
901cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_WIDTH             0x8D42
902cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_HEIGHT            0x8D43
903cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
904cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_RED_SIZE          0x8D50
905cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_GREEN_SIZE        0x8D51
906cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_BLUE_SIZE         0x8D52
907cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
908cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
909cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
910cb93a386Sopenharmony_ci
911cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE           0x8CD0
912cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME           0x8CD1
913cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL         0x8CD2
914cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
915cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER         0x8CD4
916cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING        0x8210
917cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE        0x8211
918cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE              0x8212
919cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE            0x8213
920cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE             0x8214
921cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE            0x8215
922cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE            0x8216
923cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE          0x8217
924cb93a386Sopenharmony_ci
925cb93a386Sopenharmony_ci#define GR_GL_COLOR_ATTACHMENT0              0x8CE0
926cb93a386Sopenharmony_ci#define GR_GL_DEPTH_ATTACHMENT               0x8D00
927cb93a386Sopenharmony_ci#define GR_GL_STENCIL_ATTACHMENT             0x8D20
928cb93a386Sopenharmony_ci
929cb93a386Sopenharmony_ci// GL_EXT_discard_framebuffer
930cb93a386Sopenharmony_ci#define GR_GL_COLOR                          0x1800
931cb93a386Sopenharmony_ci#define GR_GL_DEPTH                          0x1801
932cb93a386Sopenharmony_ci#define GR_GL_STENCIL                        0x1802
933cb93a386Sopenharmony_ci
934cb93a386Sopenharmony_ci#define GR_GL_NONE                           0
935cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_DEFAULT            0x8218
936cb93a386Sopenharmony_ci
937cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_COMPLETE                      0x8CD5
938cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT         0x8CD6
939cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
940cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS         0x8CD9
941cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_UNSUPPORTED                   0x8CDD
942cb93a386Sopenharmony_ci
943cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_BINDING            0x8CA6
944cb93a386Sopenharmony_ci#define GR_GL_RENDERBUFFER_BINDING           0x8CA7
945cb93a386Sopenharmony_ci#define GR_GL_MAX_RENDERBUFFER_SIZE          0x84E8
946cb93a386Sopenharmony_ci
947cb93a386Sopenharmony_ci#define GR_GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
948cb93a386Sopenharmony_ci
949cb93a386Sopenharmony_ci/* Path Rendering */
950cb93a386Sopenharmony_ci// commands
951cb93a386Sopenharmony_ci#define GR_GL_CLOSE_PATH                                    0x00
952cb93a386Sopenharmony_ci#define GR_GL_MOVE_TO                                       0x02
953cb93a386Sopenharmony_ci#define GR_GL_LINE_TO                                       0x04
954cb93a386Sopenharmony_ci#define GR_GL_QUADRATIC_CURVE_TO                            0x0A
955cb93a386Sopenharmony_ci#define GR_GL_CUBIC_CURVE_TO                                0x0C
956cb93a386Sopenharmony_ci#define GR_GL_CONIC_CURVE_TO                                0x1A
957cb93a386Sopenharmony_ci
958cb93a386Sopenharmony_ci// path parameters
959cb93a386Sopenharmony_ci#define GR_GL_PATH_STROKE_WIDTH                             0x9075
960cb93a386Sopenharmony_ci#define GR_GL_PATH_END_CAPS                                 0x9076
961cb93a386Sopenharmony_ci#define GR_GL_PATH_JOIN_STYLE                               0x9079
962cb93a386Sopenharmony_ci#define GR_GL_PATH_MITER_LIMIT                              0x907A
963cb93a386Sopenharmony_ci#define GR_GL_PATH_STROKE_BOUND                             0x9086
964cb93a386Sopenharmony_ci
965cb93a386Sopenharmony_ci// fill modes
966cb93a386Sopenharmony_ci#define GR_GL_COUNT_UP                                      0x9088
967cb93a386Sopenharmony_ci
968cb93a386Sopenharmony_ci// cover mode
969cb93a386Sopenharmony_ci#define GR_GL_BOUNDING_BOX                                  0x908D
970cb93a386Sopenharmony_ci#define GR_GL_BOUNDING_BOX_OF_BOUNDING_BOXES                0x909C
971cb93a386Sopenharmony_ci
972cb93a386Sopenharmony_ci// transform type
973cb93a386Sopenharmony_ci#define GR_GL_TRANSLATE_X                                   0x908E
974cb93a386Sopenharmony_ci#define GR_GL_TRANSLATE_Y                                   0x908F
975cb93a386Sopenharmony_ci#define GR_GL_TRANSLATE_2D                                  0x9090
976cb93a386Sopenharmony_ci#define GR_GL_TRANSPOSE_AFFINE_2D                           0x9096
977cb93a386Sopenharmony_ci
978cb93a386Sopenharmony_ci// cap/dash values
979cb93a386Sopenharmony_ci#define GR_GL_SQUARE                                        0x90A3
980cb93a386Sopenharmony_ci#define GR_GL_ROUND                                         0x90A4
981cb93a386Sopenharmony_ci
982cb93a386Sopenharmony_ci// join values
983cb93a386Sopenharmony_ci#define GR_GL_BEVEL                                         0x90A6
984cb93a386Sopenharmony_ci#define GR_GL_MITER_REVERT                                  0x90A7
985cb93a386Sopenharmony_ci
986cb93a386Sopenharmony_ci// glyph loading values
987cb93a386Sopenharmony_ci#define GR_GL_STANDARD_FONT_FORMAT                          0x936C
988cb93a386Sopenharmony_ci#define GR_GL_FONT_GLYPHS_AVAILABLE                         0x9368
989cb93a386Sopenharmony_ci
990cb93a386Sopenharmony_ci// NV_path_rendering extension to ARB_program_interface_query:
991cb93a386Sopenharmony_ci// .. corresponds to the set of active input variables used by the fragment
992cb93a386Sopenharmony_ci// shader stage of <program> (if a fragment stage exists).
993cb93a386Sopenharmony_ci#define GR_GL_FRAGMENT_INPUT                                0x936D
994cb93a386Sopenharmony_ci
995cb93a386Sopenharmony_ci// NV_path_rendering extension to EXT_direct_state_access:
996cb93a386Sopenharmony_ci// [the matrix functions] must support the PATH_PROJECTION_NV and
997cb93a386Sopenharmony_ci// PATH_MODELVIEW_NV tokens for matrixMode.
998cb93a386Sopenharmony_ci#define GR_GL_PATH_PROJECTION                               0x1701
999cb93a386Sopenharmony_ci#define GR_GL_PATH_MODELVIEW                                0x1700
1000cb93a386Sopenharmony_ci
1001cb93a386Sopenharmony_ci/*  ARM specific define for MSAA support on framebuffer fetch */
1002cb93a386Sopenharmony_ci#define GR_GL_FETCH_PER_SAMPLE                              0x8F65
1003cb93a386Sopenharmony_ci
1004cb93a386Sopenharmony_ci/* GL_KHR_debug */
1005cb93a386Sopenharmony_ci#define GR_GL_DEBUG_OUTPUT                                  0x92E0
1006cb93a386Sopenharmony_ci#define GR_GL_DEBUG_OUTPUT_SYNCHRONOUS                      0x8242
1007cb93a386Sopenharmony_ci#define GR_GL_CONTEXT_FLAG_DEBUG_BIT                        0x00000002
1008cb93a386Sopenharmony_ci#define GR_GL_MAX_DEBUG_MESSAGE_LENGTH                      0x9143
1009cb93a386Sopenharmony_ci#define GR_GL_MAX_DEBUG_LOGGED_MESSAGES                     0x9144
1010cb93a386Sopenharmony_ci#define GR_GL_DEBUG_LOGGED_MESSAGES                         0x9145
1011cb93a386Sopenharmony_ci#define GR_GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH              0x8243
1012cb93a386Sopenharmony_ci#define GR_GL_MAX_DEBUG_GROUP_STACK_DEPTH                   0x826C
1013cb93a386Sopenharmony_ci#define GR_GL_DEBUG_GROUP_STACK_DEPTH                       0x826D
1014cb93a386Sopenharmony_ci#define GR_GL_MAX_LABEL_LENGTH                              0x82E8
1015cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_API                              0x8246
1016cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_WINDOW_SYSTEM                    0x8247
1017cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_SHADER_COMPILER                  0x8248
1018cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_THIRD_PARTY                      0x8249
1019cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_APPLICATION                      0x824A
1020cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SOURCE_OTHER                            0x824B
1021cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_ERROR                              0x824C
1022cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR                0x824D
1023cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR                 0x824E
1024cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_PORTABILITY                        0x824F
1025cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_PERFORMANCE                        0x8250
1026cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_OTHER                              0x8251
1027cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_MARKER                             0x8268
1028cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_PUSH_GROUP                         0x8269
1029cb93a386Sopenharmony_ci#define GR_GL_DEBUG_TYPE_POP_GROUP                          0x826A
1030cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SEVERITY_HIGH                           0x9146
1031cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SEVERITY_MEDIUM                         0x9147
1032cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SEVERITY_LOW                            0x9148
1033cb93a386Sopenharmony_ci#define GR_GL_DEBUG_SEVERITY_NOTIFICATION                   0x826B
1034cb93a386Sopenharmony_ci#define GR_GL_STACK_UNDERFLOW                               0x0504
1035cb93a386Sopenharmony_ci#define GR_GL_STACK_OVERFLOW                                0x0503
1036cb93a386Sopenharmony_ci#define GR_GL_BUFFER                                        0x82E0
1037cb93a386Sopenharmony_ci#define GR_GL_SHADER                                        0x82E1
1038cb93a386Sopenharmony_ci#define GR_GL_PROGRAM                                       0x82E2
1039cb93a386Sopenharmony_ci#define GR_GL_QUERY                                         0x82E3
1040cb93a386Sopenharmony_ci#define GR_GL_PROGRAM_PIPELINE                              0x82E4
1041cb93a386Sopenharmony_ci#define GR_GL_SAMPLER                                       0x82E6
1042cb93a386Sopenharmony_ci
1043cb93a386Sopenharmony_ci/* GL_OES_EGL_image_external */
1044cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_EXTERNAL                              0x8D65
1045cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BINDING_EXTERNAL                      0x8D67
1046cb93a386Sopenharmony_ci
1047cb93a386Sopenharmony_ci/* GL_ARB_texture_rectangle or GL_ANGLE_texture_rectangle */
1048cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_RECTANGLE                             0x84F5
1049cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_BINDING_RECTANGLE                     0x84F6
1050cb93a386Sopenharmony_ci
1051cb93a386Sopenharmony_ci/* GL_EXT_window_rectangles */
1052cb93a386Sopenharmony_ci#define GR_GL_MAX_WINDOW_RECTANGLES                         0x8f14
1053cb93a386Sopenharmony_ci#define GR_GL_INCLUSIVE                                     0x8f10
1054cb93a386Sopenharmony_ci#define GR_GL_EXCLUSIVE                                     0x8f11
1055cb93a386Sopenharmony_ci
1056cb93a386Sopenharmony_ci/** GL_QCOM_tiled_rendering */
1057cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT0                             0x00000001
1058cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT1                             0x00000002
1059cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT2                             0x00000004
1060cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT3                             0x00000008
1061cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT4                             0x00000010
1062cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT5                             0x00000020
1063cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT6                             0x00000040
1064cb93a386Sopenharmony_ci#define GR_GL_COLOR_BUFFER_BIT7                             0x00000080
1065cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT0                             0x00000100
1066cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT1                             0x00000200
1067cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT2                             0x00000400
1068cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT3                             0x00000800
1069cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT4                             0x00001000
1070cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT5                             0x00002000
1071cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT6                             0x00004000
1072cb93a386Sopenharmony_ci#define GR_GL_DEPTH_BUFFER_BIT7                             0x00008000
1073cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT0                           0x00010000
1074cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT1                           0x00020000
1075cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT2                           0x00040000
1076cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT3                           0x00080000
1077cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT4                           0x00100000
1078cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT5                           0x00200000
1079cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT6                           0x00400000
1080cb93a386Sopenharmony_ci#define GR_GL_STENCIL_BUFFER_BIT7                           0x00800000
1081cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT0                       0x01000000
1082cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT1                       0x02000000
1083cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT2                       0x04000000
1084cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT3                       0x08000000
1085cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT4                       0x10000000
1086cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT5                       0x20000000
1087cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT6                       0x40000000
1088cb93a386Sopenharmony_ci#define GR_GL_MULTISAMPLE_BUFFER_BIT7                       0x80000000
1089cb93a386Sopenharmony_ci
1090cb93a386Sopenharmony_ci/* GL_ARB_sync */
1091cb93a386Sopenharmony_ci#define GR_GL_SYNC_GPU_COMMANDS_COMPLETE                    0x9117
1092cb93a386Sopenharmony_ci#define GR_GL_ALREADY_SIGNALED                              0x911A
1093cb93a386Sopenharmony_ci#define GR_GL_TIMEOUT_EXPIRED                               0x911B
1094cb93a386Sopenharmony_ci#define GR_GL_CONDITION_SATISFIED                           0x911C
1095cb93a386Sopenharmony_ci#define GR_GL_WAIT_FAILED                                   0x911D
1096cb93a386Sopenharmony_ci#define GR_GL_SYNC_FLUSH_COMMANDS_BIT                       0x00000001
1097cb93a386Sopenharmony_ci#define GR_GL_TIMEOUT_IGNORED                               0xFFFFFFFFFFFFFFFFull
1098cb93a386Sopenharmony_ci
1099cb93a386Sopenharmony_ci/* GL_EXT_geometry_shader */
1100cb93a386Sopenharmony_ci#define GR_GL_LINES_ADJACENCY                               0x000A
1101cb93a386Sopenharmony_ci
1102cb93a386Sopenharmony_ci#define GR_GL_PATCH_VERTICES                                0x8E72
1103cb93a386Sopenharmony_ci
1104cb93a386Sopenharmony_ci/* GL_ARB_internalformat_query */
1105cb93a386Sopenharmony_ci#define GR_GL_NUM_SAMPLE_COUNTS                             0x9380
1106cb93a386Sopenharmony_ci
1107cb93a386Sopenharmony_ci/* EGL Defines */
1108cb93a386Sopenharmony_ci#define GR_EGL_NO_DISPLAY                                   ((GrEGLDisplay)0)
1109cb93a386Sopenharmony_ci#define GR_EGL_EXTENSIONS                                   0x3055
1110cb93a386Sopenharmony_ci#define GR_EGL_GL_TEXTURE_2D                                0x30B1
1111cb93a386Sopenharmony_ci#define GR_EGL_GL_TEXTURE_LEVEL                             0x30BC
1112cb93a386Sopenharmony_ci#define GR_EGL_IMAGE_PRESERVED                              0x30D2
1113cb93a386Sopenharmony_ci#define GR_EGL_FALSE                                        0x0
1114cb93a386Sopenharmony_ci#define GR_EGL_TRUE                                         0x1
1115cb93a386Sopenharmony_ci#define GR_EGL_NONE                                         0x3038
1116cb93a386Sopenharmony_ci#define GR_EGL_NO_IMAGE                                    ((GrEGLImage)0)
1117cb93a386Sopenharmony_ci
1118cb93a386Sopenharmony_ci/* Programs */
1119cb93a386Sopenharmony_ci#define GR_GL_PROGRAM_BINARY_RETRIEVABLE_HINT               0x8257
1120cb93a386Sopenharmony_ci#define GL_PROGRAM_BINARY_LENGTH                            0x8741
1121cb93a386Sopenharmony_ci
1122cb93a386Sopenharmony_ci/* GL_NV_conservative_raster */
1123cb93a386Sopenharmony_ci#define GR_GL_CONSERVATIVE_RASTERIZATION                    0x9346
1124cb93a386Sopenharmony_ci
1125cb93a386Sopenharmony_ci/* Barriers */
1126cb93a386Sopenharmony_ci#define GR_GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT               0x0001
1127cb93a386Sopenharmony_ci#define GR_GL_ELEMENT_ARRAY_BARRIER_BIT                     0x0002
1128cb93a386Sopenharmony_ci#define GR_GL_UNIFORM_BARRIER_BIT                           0x0004
1129cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_FETCH_BARRIER_BIT                     0x0008
1130cb93a386Sopenharmony_ci#define GR_GL_SHADER_IMAGE_ACCESS_BARRIER_BIT               0x0020
1131cb93a386Sopenharmony_ci#define GR_GL_COMMAND_BARRIER_BIT                           0x0040
1132cb93a386Sopenharmony_ci#define GR_GL_PIXEL_BUFFER_BARRIER_BIT                      0x0080
1133cb93a386Sopenharmony_ci#define GR_GL_TEXTURE_UPDATE_BARRIER_BIT                    0x0100
1134cb93a386Sopenharmony_ci#define GR_GL_BUFFER_UPDATE_BARRIER_BIT                     0x0200
1135cb93a386Sopenharmony_ci#define GR_GL_FRAMEBUFFER_BARRIER_BIT                       0x0400
1136cb93a386Sopenharmony_ci#define GR_GL_TRANSFORM_FEEDBACK_BARRIER_BIT                0x0800
1137cb93a386Sopenharmony_ci#define GR_GL_ATOMIC_COUNTER_BARRIER_BIT                    0x1000
1138cb93a386Sopenharmony_ci#define GR_GL_ALL_BARRIER_BITS                              0xffffffff
1139cb93a386Sopenharmony_ci
1140cb93a386Sopenharmony_ci/** GL_NV_fence_sync */
1141cb93a386Sopenharmony_ci#define GR_GL_ALL_COMPLETED                                 0x84F2
1142cb93a386Sopenharmony_ci
1143cb93a386Sopenharmony_ci/* Tessellation */
1144cb93a386Sopenharmony_ci#define GR_GL_MAX_TESS_GEN_LEVEL_OES                        0x8E7E
1145cb93a386Sopenharmony_ci
1146cb93a386Sopenharmony_ci#endif
1147