1bf215546Sopenharmony_cidescriptor=[ 2bf215546Sopenharmony_ci{ "apis": ["GL", "GLES", "GLES2", "GL_CORE"], "params": [ 3bf215546Sopenharmony_ci [ "ALPHA_BITS", "BUFFER_INT(Visual.alphaBits), extra_new_buffers" ], 4bf215546Sopenharmony_ci [ "BLEND", "CONTEXT_BIT0(Color.BlendEnabled), NO_EXTRA" ], 5bf215546Sopenharmony_ci [ "BLEND_SRC", "CONTEXT_ENUM16(Color.Blend[0].SrcRGB), NO_EXTRA" ], 6bf215546Sopenharmony_ci [ "BLUE_BITS", "BUFFER_INT(Visual.blueBits), extra_new_buffers" ], 7bf215546Sopenharmony_ci [ "COLOR_CLEAR_VALUE", "LOC_CUSTOM, TYPE_FLOATN_4, 0, NO_EXTRA" ], 8bf215546Sopenharmony_ci [ "COLOR_WRITEMASK", "LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA" ], 9bf215546Sopenharmony_ci [ "CULL_FACE", "CONTEXT_BOOL(Polygon.CullFlag), NO_EXTRA" ], 10bf215546Sopenharmony_ci [ "CULL_FACE_MODE", "CONTEXT_ENUM16(Polygon.CullFaceMode), NO_EXTRA" ], 11bf215546Sopenharmony_ci [ "DEPTH_BITS", "BUFFER_INT(Visual.depthBits), extra_new_buffers" ], 12bf215546Sopenharmony_ci [ "DEPTH_CLEAR_VALUE", "CONTEXT_FIELD(Depth.Clear, TYPE_DOUBLEN), NO_EXTRA" ], 13bf215546Sopenharmony_ci [ "DEPTH_FUNC", "CONTEXT_ENUM16(Depth.Func), NO_EXTRA" ], 14bf215546Sopenharmony_ci [ "DEPTH_RANGE", "LOC_CUSTOM, TYPE_DOUBLEN_2, 0, NO_EXTRA" ], 15bf215546Sopenharmony_ci [ "DEPTH_TEST", "CONTEXT_BOOL(Depth.Test), NO_EXTRA" ], 16bf215546Sopenharmony_ci [ "DEPTH_WRITEMASK", "CONTEXT_BOOL(Depth.Mask), NO_EXTRA" ], 17bf215546Sopenharmony_ci [ "DITHER", "CONTEXT_BOOL(Color.DitherFlag), NO_EXTRA" ], 18bf215546Sopenharmony_ci [ "FRONT_FACE", "CONTEXT_ENUM16(Polygon.FrontFace), NO_EXTRA" ], 19bf215546Sopenharmony_ci [ "GREEN_BITS", "BUFFER_INT(Visual.greenBits), extra_new_buffers" ], 20bf215546Sopenharmony_ci [ "LINE_WIDTH", "CONTEXT_FLOAT(Line.Width), NO_EXTRA" ], 21bf215546Sopenharmony_ci [ "ALIASED_LINE_WIDTH_RANGE", "CONTEXT_FLOAT2(Const.MinLineWidth), NO_EXTRA" ], 22bf215546Sopenharmony_ci [ "MAX_ELEMENTS_VERTICES", "CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA" ], 23bf215546Sopenharmony_ci [ "MAX_ELEMENTS_INDICES", "CONTEXT_INT(Const.MaxArrayLockSize), NO_EXTRA" ], 24bf215546Sopenharmony_ci [ "MAX_TEXTURE_SIZE", "CONTEXT_INT(Const.MaxTextureSize), NO_EXTRA" ], 25bf215546Sopenharmony_ci [ "MAX_VIEWPORT_DIMS", "CONTEXT_INT2(Const.MaxViewportWidth), NO_EXTRA" ], 26bf215546Sopenharmony_ci [ "PACK_ALIGNMENT", "CONTEXT_INT(Pack.Alignment), NO_EXTRA" ], 27bf215546Sopenharmony_ci [ "ALIASED_POINT_SIZE_RANGE", "CONTEXT_FLOAT2(Const.MinPointSize), NO_EXTRA" ], 28bf215546Sopenharmony_ci [ "POLYGON_OFFSET_FACTOR", "CONTEXT_FLOAT(Polygon.OffsetFactor ), NO_EXTRA" ], 29bf215546Sopenharmony_ci [ "POLYGON_OFFSET_UNITS", "CONTEXT_FLOAT(Polygon.OffsetUnits ), NO_EXTRA" ], 30bf215546Sopenharmony_ci [ "POLYGON_OFFSET_FILL", "CONTEXT_BOOL(Polygon.OffsetFill), NO_EXTRA" ], 31bf215546Sopenharmony_ci [ "RED_BITS", "BUFFER_INT(Visual.redBits), extra_new_buffers" ], 32bf215546Sopenharmony_ci [ "SCISSOR_BOX", "LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA" ], 33bf215546Sopenharmony_ci [ "SCISSOR_TEST", "LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA" ], 34bf215546Sopenharmony_ci [ "STENCIL_BITS", "BUFFER_INT(Visual.stencilBits), extra_new_buffers" ], 35bf215546Sopenharmony_ci [ "STENCIL_CLEAR_VALUE", "CONTEXT_INT(Stencil.Clear), NO_EXTRA" ], 36bf215546Sopenharmony_ci [ "STENCIL_FAIL", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, NO_EXTRA" ], 37bf215546Sopenharmony_ci [ "STENCIL_FUNC", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, NO_EXTRA" ], 38bf215546Sopenharmony_ci [ "STENCIL_PASS_DEPTH_FAIL", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, NO_EXTRA" ], 39bf215546Sopenharmony_ci [ "STENCIL_PASS_DEPTH_PASS", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, NO_EXTRA" ], 40bf215546Sopenharmony_ci [ "STENCIL_REF", "LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA" ], 41bf215546Sopenharmony_ci [ "STENCIL_TEST", "CONTEXT_BOOL(Stencil.Enabled), NO_EXTRA" ], 42bf215546Sopenharmony_ci [ "STENCIL_VALUE_MASK", "LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA" ], 43bf215546Sopenharmony_ci [ "STENCIL_WRITEMASK", "LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA" ], 44bf215546Sopenharmony_ci [ "SUBPIXEL_BITS", "CONTEXT_INT(Const.SubPixelBits), NO_EXTRA" ], 45bf215546Sopenharmony_ci [ "TEXTURE_BINDING_2D", "LOC_CUSTOM, TYPE_INT, TEXTURE_2D_INDEX, NO_EXTRA" ], 46bf215546Sopenharmony_ci [ "UNPACK_ALIGNMENT", "CONTEXT_INT(Unpack.Alignment), NO_EXTRA" ], 47bf215546Sopenharmony_ci [ "VIEWPORT", "LOC_CUSTOM, TYPE_FLOAT_4, 0, NO_EXTRA" ], 48bf215546Sopenharmony_ci 49bf215546Sopenharmony_ci# GL_ARB_multitexture 50bf215546Sopenharmony_ci [ "ACTIVE_TEXTURE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 51bf215546Sopenharmony_ci 52bf215546Sopenharmony_ci# Note that all the OES_* extensions require that the Mesa "struct 53bf215546Sopenharmony_ci# gl_extensions" include a member with the name of the extension. 54bf215546Sopenharmony_ci# That structure does not yet include OES extensions (and we're 55bf215546Sopenharmony_ci# not sure whether it will). If it does, all the OES_* 56bf215546Sopenharmony_ci# extensions below should mark the dependency. 57bf215546Sopenharmony_ci 58bf215546Sopenharmony_ci# GL_ARB_texture_cube_map 59bf215546Sopenharmony_ci [ "TEXTURE_BINDING_CUBE_MAP_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_INDEX, NO_EXTRA" ], 60bf215546Sopenharmony_ci# XXX: OES_texture_cube_map 61bf215546Sopenharmony_ci [ "MAX_CUBE_MAP_TEXTURE_SIZE_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, Const.MaxCubeTextureLevels), NO_EXTRA" ], 62bf215546Sopenharmony_ci 63bf215546Sopenharmony_ci# XXX: OES_blend_subtract 64bf215546Sopenharmony_ci [ "BLEND_SRC_RGB", "CONTEXT_ENUM16(Color.Blend[0].SrcRGB), NO_EXTRA" ], 65bf215546Sopenharmony_ci [ "BLEND_DST_RGB", "CONTEXT_ENUM16(Color.Blend[0].DstRGB), NO_EXTRA" ], 66bf215546Sopenharmony_ci [ "BLEND_SRC_ALPHA", "CONTEXT_ENUM16(Color.Blend[0].SrcA), NO_EXTRA" ], 67bf215546Sopenharmony_ci [ "BLEND_DST_ALPHA", "CONTEXT_ENUM16(Color.Blend[0].DstA), NO_EXTRA" ], 68bf215546Sopenharmony_ci 69bf215546Sopenharmony_ci# GL_BLEND_EQUATION_RGB, which is what we're really after, is 70bf215546Sopenharmony_ci# defined identically to GL_BLEND_EQUATION. 71bf215546Sopenharmony_ci [ "BLEND_EQUATION", "CONTEXT_ENUM16(Color.Blend[0].EquationRGB), NO_EXTRA" ], 72bf215546Sopenharmony_ci [ "BLEND_EQUATION_ALPHA_EXT", "CONTEXT_ENUM16(Color.Blend[0].EquationA), NO_EXTRA" ], 73bf215546Sopenharmony_ci 74bf215546Sopenharmony_ci# GL_ARB_texture_compression 75bf215546Sopenharmony_ci [ "NUM_COMPRESSED_TEXTURE_FORMATS_ARB", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 76bf215546Sopenharmony_ci [ "COMPRESSED_TEXTURE_FORMATS", "LOC_CUSTOM, TYPE_INT_N, 0, NO_EXTRA" ], 77bf215546Sopenharmony_ci 78bf215546Sopenharmony_ci# GL_ARB_multisample 79bf215546Sopenharmony_ci [ "SAMPLE_ALPHA_TO_COVERAGE_ARB", "CONTEXT_BOOL(Multisample.SampleAlphaToCoverage), NO_EXTRA" ], 80bf215546Sopenharmony_ci [ "SAMPLE_COVERAGE_ARB", "CONTEXT_BOOL(Multisample.SampleCoverage), NO_EXTRA" ], 81bf215546Sopenharmony_ci [ "SAMPLE_COVERAGE_VALUE_ARB", "CONTEXT_FLOAT(Multisample.SampleCoverageValue), NO_EXTRA" ], 82bf215546Sopenharmony_ci [ "SAMPLE_COVERAGE_INVERT_ARB", "CONTEXT_BOOL(Multisample.SampleCoverageInvert), NO_EXTRA" ], 83bf215546Sopenharmony_ci [ "SAMPLE_BUFFERS_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers" ], 84bf215546Sopenharmony_ci [ "SAMPLES_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers" ], 85bf215546Sopenharmony_ci 86bf215546Sopenharmony_ci# GL_ARB_sample_shading 87bf215546Sopenharmony_ci [ "SAMPLE_SHADING_ARB", "CONTEXT_BOOL(Multisample.SampleShading), extra_gl40_ARB_sample_shading" ], 88bf215546Sopenharmony_ci [ "MIN_SAMPLE_SHADING_VALUE_ARB", "CONTEXT_FLOAT(Multisample.MinSampleShadingValue), extra_gl40_ARB_sample_shading" ], 89bf215546Sopenharmony_ci 90bf215546Sopenharmony_ci# GL_SGIS_generate_mipmap 91bf215546Sopenharmony_ci [ "GENERATE_MIPMAP_HINT_SGIS", "CONTEXT_ENUM16(Hint.GenerateMipmap), NO_EXTRA" ], 92bf215546Sopenharmony_ci 93bf215546Sopenharmony_ci# GL_ARB_vertex_buffer_object 94bf215546Sopenharmony_ci [ "ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 95bf215546Sopenharmony_ci 96bf215546Sopenharmony_ci# GL_ARB_vertex_buffer_object 97bf215546Sopenharmony_ci# GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB - not supported 98bf215546Sopenharmony_ci [ "ELEMENT_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 99bf215546Sopenharmony_ci 100bf215546Sopenharmony_ci# GL_ARB_color_buffer_float 101bf215546Sopenharmony_ci [ "CLAMP_VERTEX_COLOR", "CONTEXT_ENUM16(Light.ClampVertexColor), extra_ARB_color_buffer_float" ], 102bf215546Sopenharmony_ci [ "CLAMP_FRAGMENT_COLOR", "CONTEXT_ENUM16(Color.ClampFragmentColor), extra_ARB_color_buffer_float" ], 103bf215546Sopenharmony_ci [ "CLAMP_READ_COLOR", "CONTEXT_ENUM16(Color.ClampReadColor), extra_ARB_color_buffer_float_or_glcore" ], 104bf215546Sopenharmony_ci 105bf215546Sopenharmony_ci# GL_ARB_copy_buffer 106bf215546Sopenharmony_ci [ "COPY_READ_BUFFER", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 107bf215546Sopenharmony_ci [ "COPY_WRITE_BUFFER", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 108bf215546Sopenharmony_ci 109bf215546Sopenharmony_ci# GL_OES_read_format 110bf215546Sopenharmony_ci [ "IMPLEMENTATION_COLOR_READ_TYPE_OES", "LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers" ], 111bf215546Sopenharmony_ci [ "IMPLEMENTATION_COLOR_READ_FORMAT_OES", "LOC_CUSTOM, TYPE_INT, 0, extra_new_buffers" ], 112bf215546Sopenharmony_ci 113bf215546Sopenharmony_ci# GL_EXT_framebuffer_object 114bf215546Sopenharmony_ci [ "FRAMEBUFFER_BINDING_EXT", "BUFFER_INT(Name), NO_EXTRA" ], 115bf215546Sopenharmony_ci [ "RENDERBUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 116bf215546Sopenharmony_ci [ "MAX_RENDERBUFFER_SIZE_EXT", "CONTEXT_INT(Const.MaxRenderbufferSize), NO_EXTRA" ], 117bf215546Sopenharmony_ci 118bf215546Sopenharmony_ci# This entry isn't spec'ed for GLES 2, but is needed for Mesa's 119bf215546Sopenharmony_ci# GLSL: 120bf215546Sopenharmony_ci [ "MAX_CLIP_PLANES", "CONTEXT_INT(Const.MaxClipPlanes), NO_EXTRA" ], 121bf215546Sopenharmony_ci 122bf215546Sopenharmony_ci# GL_{ARB,OES}_vertex_array_object 123bf215546Sopenharmony_ci [ "VERTEX_ARRAY_BINDING", "ARRAY_INT(Name), NO_EXTRA" ], 124bf215546Sopenharmony_ci 125bf215546Sopenharmony_ci# GL_EXT_texture_filter_anisotropic 126bf215546Sopenharmony_ci [ "MAX_TEXTURE_MAX_ANISOTROPY_EXT", "CONTEXT_FLOAT(Const.MaxTextureMaxAnisotropy), extra_EXT_texture_filter_anisotropic" ], 127bf215546Sopenharmony_ci 128bf215546Sopenharmony_ci# GL_KHR_debug (GL 4.3)/ GL_ARB_debug_output 129bf215546Sopenharmony_ci [ "DEBUG_OUTPUT", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 130bf215546Sopenharmony_ci [ "DEBUG_OUTPUT_SYNCHRONOUS", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 131bf215546Sopenharmony_ci [ "DEBUG_LOGGED_MESSAGES", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 132bf215546Sopenharmony_ci [ "DEBUG_NEXT_LOGGED_MESSAGE_LENGTH", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 133bf215546Sopenharmony_ci [ "MAX_DEBUG_LOGGED_MESSAGES", "CONST(MAX_DEBUG_LOGGED_MESSAGES), NO_EXTRA" ], 134bf215546Sopenharmony_ci [ "MAX_DEBUG_MESSAGE_LENGTH", "CONST(MAX_DEBUG_MESSAGE_LENGTH), NO_EXTRA" ], 135bf215546Sopenharmony_ci [ "MAX_LABEL_LENGTH", "CONST(MAX_LABEL_LENGTH), NO_EXTRA" ], 136bf215546Sopenharmony_ci [ "MAX_DEBUG_GROUP_STACK_DEPTH", "CONST(MAX_DEBUG_GROUP_STACK_DEPTH), NO_EXTRA" ], 137bf215546Sopenharmony_ci [ "DEBUG_GROUP_STACK_DEPTH", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 138bf215546Sopenharmony_ci 139bf215546Sopenharmony_ci# GL_ARB_polygon_offset_clamp / GL_EXT_polygon_offset_clamp 140bf215546Sopenharmony_ci [ "POLYGON_OFFSET_CLAMP_EXT", "CONTEXT_FLOAT(Polygon.OffsetClamp), extra_ARB_polygon_offset_clamp" ], 141bf215546Sopenharmony_ci 142bf215546Sopenharmony_ci# GL_EXT_external_objects 143bf215546Sopenharmony_ci [ "NUM_DEVICE_UUIDS_EXT", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, NO_EXTRA" ], 144bf215546Sopenharmony_ci [ "DRIVER_UUID_EXT", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, NO_EXTRA" ], 145bf215546Sopenharmony_ci [ "DEVICE_UUID_EXT", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, NO_EXTRA" ], 146bf215546Sopenharmony_ci 147bf215546Sopenharmony_ci# GL_EXT_memory_object_win32 148bf215546Sopenharmony_ci [ "DEVICE_LUID_EXT", "LOC_CUSTOM, TYPE_INT_2, NO_OFFSET, NO_EXTRA" ], 149bf215546Sopenharmony_ci [ "DEVICE_NODE_MASK_EXT", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, NO_EXTRA" ], 150bf215546Sopenharmony_ci]}, 151bf215546Sopenharmony_ci 152bf215546Sopenharmony_ci# Enums in OpenGL and GLES1 153bf215546Sopenharmony_ci{ "apis": ["GL", "GLES", "GL_CORE"], "params": [ 154bf215546Sopenharmony_ci [ "MAX_LIGHTS", "CONTEXT_INT(Const.MaxLights), NO_EXTRA" ], 155bf215546Sopenharmony_ci [ "LIGHT0", "CONTEXT_BOOL(Light.Light[0].Enabled), NO_EXTRA" ], 156bf215546Sopenharmony_ci [ "LIGHT1", "CONTEXT_BOOL(Light.Light[1].Enabled), NO_EXTRA" ], 157bf215546Sopenharmony_ci [ "LIGHT2", "CONTEXT_BOOL(Light.Light[2].Enabled), NO_EXTRA" ], 158bf215546Sopenharmony_ci [ "LIGHT3", "CONTEXT_BOOL(Light.Light[3].Enabled), NO_EXTRA" ], 159bf215546Sopenharmony_ci [ "LIGHT4", "CONTEXT_BOOL(Light.Light[4].Enabled), NO_EXTRA" ], 160bf215546Sopenharmony_ci [ "LIGHT5", "CONTEXT_BOOL(Light.Light[5].Enabled), NO_EXTRA" ], 161bf215546Sopenharmony_ci [ "LIGHT6", "CONTEXT_BOOL(Light.Light[6].Enabled), NO_EXTRA" ], 162bf215546Sopenharmony_ci [ "LIGHT7", "CONTEXT_BOOL(Light.Light[7].Enabled), NO_EXTRA" ], 163bf215546Sopenharmony_ci [ "LIGHTING", "CONTEXT_BOOL(Light.Enabled), NO_EXTRA" ], 164bf215546Sopenharmony_ci [ "LIGHT_MODEL_AMBIENT", "CONTEXT_FIELD(Light.Model.Ambient[0], TYPE_FLOATN_4), NO_EXTRA" ], 165bf215546Sopenharmony_ci [ "LIGHT_MODEL_TWO_SIDE", "CONTEXT_BOOL(Light.Model.TwoSide), NO_EXTRA" ], 166bf215546Sopenharmony_ci [ "ALPHA_TEST", "CONTEXT_BOOL(Color.AlphaEnabled), NO_EXTRA" ], 167bf215546Sopenharmony_ci [ "ALPHA_TEST_FUNC", "CONTEXT_ENUM16(Color.AlphaFunc), NO_EXTRA" ], 168bf215546Sopenharmony_ci [ "ALPHA_TEST_REF", "LOC_CUSTOM, TYPE_FLOATN, 0, NO_EXTRA" ], 169bf215546Sopenharmony_ci [ "BLEND_DST", "CONTEXT_ENUM16(Color.Blend[0].DstRGB), NO_EXTRA" ], 170bf215546Sopenharmony_ci [ "CLIP_DISTANCE0", "CONTEXT_BIT0(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 171bf215546Sopenharmony_ci [ "CLIP_DISTANCE1", "CONTEXT_BIT1(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 172bf215546Sopenharmony_ci [ "CLIP_DISTANCE2", "CONTEXT_BIT2(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 173bf215546Sopenharmony_ci [ "CLIP_DISTANCE3", "CONTEXT_BIT3(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 174bf215546Sopenharmony_ci [ "CLIP_DISTANCE4", "CONTEXT_BIT4(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 175bf215546Sopenharmony_ci [ "CLIP_DISTANCE5", "CONTEXT_BIT5(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 176bf215546Sopenharmony_ci [ "CLIP_DISTANCE6", "CONTEXT_BIT6(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 177bf215546Sopenharmony_ci [ "CLIP_DISTANCE7", "CONTEXT_BIT7(Transform.ClipPlanesEnabled), extra_valid_clip_distance" ], 178bf215546Sopenharmony_ci [ "COLOR_MATERIAL", "CONTEXT_BOOL(Light.ColorMaterialEnabled), NO_EXTRA" ], 179bf215546Sopenharmony_ci [ "CURRENT_COLOR", "CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_COLOR0][0], TYPE_FLOATN_4), extra_flush_current" ], 180bf215546Sopenharmony_ci [ "CURRENT_NORMAL", "CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_NORMAL][0], TYPE_FLOATN_3), extra_flush_current" ], 181bf215546Sopenharmony_ci [ "CURRENT_TEXTURE_COORDS", "LOC_CUSTOM, TYPE_FLOAT_4, 0, extra_flush_current_valid_texture_unit" ], 182bf215546Sopenharmony_ci [ "POINT_DISTANCE_ATTENUATION", "CONTEXT_FLOAT3(Point.Params[0]), NO_EXTRA" ], 183bf215546Sopenharmony_ci [ "FOG", "CONTEXT_BOOL(Fog.Enabled), NO_EXTRA" ], 184bf215546Sopenharmony_ci [ "FOG_COLOR", "LOC_CUSTOM, TYPE_FLOATN_4, 0, NO_EXTRA" ], 185bf215546Sopenharmony_ci [ "FOG_DENSITY", "CONTEXT_FLOAT(Fog.Density), NO_EXTRA" ], 186bf215546Sopenharmony_ci [ "FOG_END", "CONTEXT_FLOAT(Fog.End), NO_EXTRA" ], 187bf215546Sopenharmony_ci [ "FOG_HINT", "CONTEXT_ENUM16(Hint.Fog), NO_EXTRA" ], 188bf215546Sopenharmony_ci [ "FOG_MODE", "CONTEXT_ENUM16(Fog.Mode), NO_EXTRA" ], 189bf215546Sopenharmony_ci [ "FOG_START", "CONTEXT_FLOAT(Fog.Start), NO_EXTRA" ], 190bf215546Sopenharmony_ci [ "LINE_SMOOTH", "CONTEXT_BOOL(Line.SmoothFlag), NO_EXTRA" ], 191bf215546Sopenharmony_ci [ "LINE_SMOOTH_HINT", "CONTEXT_ENUM16(Hint.LineSmooth), NO_EXTRA" ], 192bf215546Sopenharmony_ci [ "LINE_WIDTH_RANGE", "CONTEXT_FLOAT2(Const.MinLineWidthAA), NO_EXTRA" ], 193bf215546Sopenharmony_ci [ "COLOR_LOGIC_OP", "CONTEXT_BOOL(Color.ColorLogicOpEnabled), NO_EXTRA" ], 194bf215546Sopenharmony_ci [ "LOGIC_OP_MODE", "CONTEXT_ENUM16(Color.LogicOp), NO_EXTRA" ], 195bf215546Sopenharmony_ci [ "MATRIX_MODE", "CONTEXT_ENUM16(Transform.MatrixMode), NO_EXTRA" ], 196bf215546Sopenharmony_ci [ "MAX_MODELVIEW_STACK_DEPTH", "CONST(MAX_MODELVIEW_STACK_DEPTH), NO_EXTRA" ], 197bf215546Sopenharmony_ci [ "MAX_PROJECTION_STACK_DEPTH", "CONST(MAX_PROJECTION_STACK_DEPTH), NO_EXTRA" ], 198bf215546Sopenharmony_ci [ "MAX_TEXTURE_STACK_DEPTH", "CONST(MAX_TEXTURE_STACK_DEPTH), NO_EXTRA" ], 199bf215546Sopenharmony_ci [ "MODELVIEW_MATRIX", "CONTEXT_MATRIX(ModelviewMatrixStack.Top), NO_EXTRA" ], 200bf215546Sopenharmony_ci [ "MODELVIEW_STACK_DEPTH", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, ModelviewMatrixStack.Depth), NO_EXTRA" ], 201bf215546Sopenharmony_ci [ "NORMALIZE", "CONTEXT_BOOL(Transform.Normalize), NO_EXTRA" ], 202bf215546Sopenharmony_ci [ "PACK_SKIP_IMAGES", "CONTEXT_INT(Pack.SkipImages), NO_EXTRA" ], 203bf215546Sopenharmony_ci [ "PERSPECTIVE_CORRECTION_HINT", "CONTEXT_ENUM16(Hint.PerspectiveCorrection), NO_EXTRA" ], 204bf215546Sopenharmony_ci [ "POINT_SIZE", "CONTEXT_FLOAT(Point.Size), NO_EXTRA" ], 205bf215546Sopenharmony_ci [ "POINT_SIZE_RANGE", "CONTEXT_FLOAT2(Const.MinPointSizeAA), NO_EXTRA" ], 206bf215546Sopenharmony_ci [ "POINT_SMOOTH", "CONTEXT_BOOL(Point.SmoothFlag), NO_EXTRA" ], 207bf215546Sopenharmony_ci [ "POINT_SMOOTH_HINT", "CONTEXT_ENUM16(Hint.PointSmooth), NO_EXTRA" ], 208bf215546Sopenharmony_ci [ "POINT_SIZE_MIN_EXT", "CONTEXT_FLOAT(Point.MinSize), NO_EXTRA" ], 209bf215546Sopenharmony_ci [ "POINT_SIZE_MAX_EXT", "CONTEXT_FLOAT(Point.MaxSize), NO_EXTRA" ], 210bf215546Sopenharmony_ci [ "POINT_FADE_THRESHOLD_SIZE_EXT", "CONTEXT_FLOAT(Point.Threshold), NO_EXTRA" ], 211bf215546Sopenharmony_ci [ "PROJECTION_MATRIX", "CONTEXT_MATRIX(ProjectionMatrixStack.Top), NO_EXTRA" ], 212bf215546Sopenharmony_ci [ "PROJECTION_STACK_DEPTH", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, ProjectionMatrixStack.Depth), NO_EXTRA" ], 213bf215546Sopenharmony_ci [ "RESCALE_NORMAL", "CONTEXT_BOOL(Transform.RescaleNormals), NO_EXTRA" ], 214bf215546Sopenharmony_ci [ "SHADE_MODEL", "CONTEXT_ENUM16(Light.ShadeModel), NO_EXTRA" ], 215bf215546Sopenharmony_ci [ "TEXTURE_2D", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 216bf215546Sopenharmony_ci [ "TEXTURE_MATRIX", "LOC_CUSTOM, TYPE_MATRIX, 0, extra_valid_texture_unit" ], 217bf215546Sopenharmony_ci [ "TEXTURE_STACK_DEPTH", "LOC_CUSTOM, TYPE_INT, 0, extra_valid_texture_unit" ], 218bf215546Sopenharmony_ci [ "VERTEX_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 219bf215546Sopenharmony_ci [ "VERTEX_ARRAY_SIZE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 220bf215546Sopenharmony_ci [ "VERTEX_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_POS].Format.Type), NO_EXTRA" ], 221bf215546Sopenharmony_ci [ "VERTEX_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_POS].Stride), NO_EXTRA" ], 222bf215546Sopenharmony_ci [ "NORMAL_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 223bf215546Sopenharmony_ci [ "NORMAL_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_NORMAL].Format.Type), NO_EXTRA" ], 224bf215546Sopenharmony_ci [ "NORMAL_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_NORMAL].Stride), NO_EXTRA" ], 225bf215546Sopenharmony_ci [ "COLOR_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 226bf215546Sopenharmony_ci [ "COLOR_ARRAY_SIZE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 227bf215546Sopenharmony_ci [ "COLOR_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_COLOR0].Format.Type), NO_EXTRA" ], 228bf215546Sopenharmony_ci [ "COLOR_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_COLOR0].Stride), NO_EXTRA" ], 229bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 230bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY_SIZE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 231bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY_TYPE", "LOC_CUSTOM, TYPE_ENUM16, offsetof(struct gl_array_attributes, Format.Type), NO_EXTRA" ], 232bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY_STRIDE", "LOC_CUSTOM, TYPE_SHORT, offsetof(struct gl_array_attributes, Stride), NO_EXTRA" ], 233bf215546Sopenharmony_ci 234bf215546Sopenharmony_ci# GL_ARB_multitexture 235bf215546Sopenharmony_ci [ "MAX_TEXTURE_UNITS", "CONTEXT_INT(Const.MaxTextureUnits), NO_EXTRA" ], 236bf215546Sopenharmony_ci [ "CLIENT_ACTIVE_TEXTURE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 237bf215546Sopenharmony_ci 238bf215546Sopenharmony_ci# GL_ARB_texture_cube_map 239bf215546Sopenharmony_ci [ "TEXTURE_CUBE_MAP_ARB", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 240bf215546Sopenharmony_ci# S, T, and R are always set at the same time 241bf215546Sopenharmony_ci [ "TEXTURE_GEN_STR_OES", "LOC_TEXUNIT, TYPE_BIT_0, offsetof(struct gl_fixedfunc_texture_unit, TexGenEnabled), NO_EXTRA" ], 242bf215546Sopenharmony_ci 243bf215546Sopenharmony_ci# GL_ARB_multisample 244bf215546Sopenharmony_ci [ "MULTISAMPLE_ARB", "CONTEXT_BOOL(Multisample.Enabled), NO_EXTRA" ], 245bf215546Sopenharmony_ci [ "SAMPLE_ALPHA_TO_ONE_ARB", "CONTEXT_BOOL(Multisample.SampleAlphaToOne), NO_EXTRA" ], 246bf215546Sopenharmony_ci 247bf215546Sopenharmony_ci# GL_ARB_vertex_buffer_object 248bf215546Sopenharmony_ci [ "VERTEX_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_POS].BufferObj), NO_EXTRA" ], 249bf215546Sopenharmony_ci [ "NORMAL_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_NORMAL].BufferObj), NO_EXTRA" ], 250bf215546Sopenharmony_ci [ "COLOR_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR0].BufferObj), NO_EXTRA" ], 251bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, NO_EXTRA" ], 252bf215546Sopenharmony_ci 253bf215546Sopenharmony_ci# GL_OES_point_sprite 254bf215546Sopenharmony_ci [ "POINT_SPRITE", "CONTEXT_BOOL(Point.PointSprite), extra_ARB_point_sprite" ], 255bf215546Sopenharmony_ci]}, 256bf215546Sopenharmony_ci 257bf215546Sopenharmony_ci 258bf215546Sopenharmony_ci{ "apis": ["GLES"], "params": [ 259bf215546Sopenharmony_ci# OES_point_size_array 260bf215546Sopenharmony_ci [ "POINT_SIZE_ARRAY_OES", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 261bf215546Sopenharmony_ci [ "POINT_SIZE_ARRAY_TYPE_OES", "ARRAY_FIELD(VertexAttrib[VERT_ATTRIB_POINT_SIZE].Format.Type, TYPE_ENUM16), NO_EXTRA" ], 262bf215546Sopenharmony_ci [ "POINT_SIZE_ARRAY_STRIDE_OES", "ARRAY_FIELD(VertexAttrib[VERT_ATTRIB_POINT_SIZE].Stride, TYPE_SHORT), NO_EXTRA" ], 263bf215546Sopenharmony_ci [ "POINT_SIZE_ARRAY_BUFFER_BINDING_OES", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 264bf215546Sopenharmony_ci]}, 265bf215546Sopenharmony_ci 266bf215546Sopenharmony_ci# Enums in GLES2, GLES3 267bf215546Sopenharmony_ci{ "apis": ["GLES2", "GLES3"], "params": [ 268bf215546Sopenharmony_ci [ "GPU_DISJOINT_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_disjoint_timer_query" ], 269bf215546Sopenharmony_ci# ANGLE_pack_reverse_row_order 270bf215546Sopenharmony_ci [ "PACK_REVERSE_ROW_ORDER_ANGLE", "CONTEXT_BOOL(Pack.Invert), NO_EXTRA" ], 271bf215546Sopenharmony_ci]}, 272bf215546Sopenharmony_ci 273bf215546Sopenharmony_ci{ "apis": ["GL", "GL_CORE", "GLES2"], "params": [ 274bf215546Sopenharmony_ci# == GL_MAX_TEXTURE_COORDS_NV 275bf215546Sopenharmony_ci [ "MAX_TEXTURE_COORDS_ARB", "CONTEXT_INT(Const.MaxTextureCoordUnits), extra_ARB_fragment_program" ], 276bf215546Sopenharmony_ci [ "PACK_IMAGE_HEIGHT", "CONTEXT_INT(Pack.ImageHeight), NO_EXTRA" ], 277bf215546Sopenharmony_ci [ "PACK_ROW_LENGTH", "CONTEXT_INT(Pack.RowLength), NO_EXTRA" ], 278bf215546Sopenharmony_ci [ "PACK_SKIP_PIXELS", "CONTEXT_INT(Pack.SkipPixels), NO_EXTRA" ], 279bf215546Sopenharmony_ci [ "PACK_SKIP_ROWS", "CONTEXT_INT(Pack.SkipRows), NO_EXTRA" ], 280bf215546Sopenharmony_ci [ "UNPACK_ROW_LENGTH", "CONTEXT_INT(Unpack.RowLength), NO_EXTRA" ], 281bf215546Sopenharmony_ci [ "UNPACK_SKIP_PIXELS", "CONTEXT_INT(Unpack.SkipPixels), NO_EXTRA" ], 282bf215546Sopenharmony_ci [ "UNPACK_SKIP_ROWS", "CONTEXT_INT(Unpack.SkipRows), NO_EXTRA" ], 283bf215546Sopenharmony_ci [ "UNPACK_SKIP_IMAGES", "CONTEXT_INT(Unpack.SkipImages), NO_EXTRA" ], 284bf215546Sopenharmony_ci [ "UNPACK_IMAGE_HEIGHT", "CONTEXT_INT(Unpack.ImageHeight), NO_EXTRA" ], 285bf215546Sopenharmony_ci 286bf215546Sopenharmony_ci# GL_ARB_clip_control/GL_EXT_clip_control 287bf215546Sopenharmony_ci [ "CLIP_DEPTH_MODE", "CONTEXT_ENUM16(Transform.ClipDepthMode), extra_ARB_clip_control" ], 288bf215546Sopenharmony_ci [ "CLIP_ORIGIN", "CONTEXT_ENUM16(Transform.ClipOrigin), extra_ARB_clip_control" ], 289bf215546Sopenharmony_ci 290bf215546Sopenharmony_ci# GL_ARB_draw_buffers 291bf215546Sopenharmony_ci [ "MAX_DRAW_BUFFERS_ARB", "CONTEXT_INT(Const.MaxDrawBuffers), NO_EXTRA" ], 292bf215546Sopenharmony_ci 293bf215546Sopenharmony_ci# GL_ARB_parallel_shader_compile 294bf215546Sopenharmony_ci [ "MAX_SHADER_COMPILER_THREADS_ARB", "CONTEXT_INT(Hint.MaxShaderCompilerThreads), NO_EXTRA" ], 295bf215546Sopenharmony_ci 296bf215546Sopenharmony_ci# GL_EXT_framebuffer_object / GL_NV_fbo_color_attachments 297bf215546Sopenharmony_ci [ "MAX_COLOR_ATTACHMENTS", "CONTEXT_INT(Const.MaxColorAttachments), NO_EXTRA" ], 298bf215546Sopenharmony_ci 299bf215546Sopenharmony_ci# GL_ARB_draw_buffers / GL_NV_draw_buffers (for ES 2.0) 300bf215546Sopenharmony_ci [ "DRAW_BUFFER0_ARB", "BUFFER_ENUM16(ColorDrawBuffer[0]), NO_EXTRA" ], 301bf215546Sopenharmony_ci [ "DRAW_BUFFER1_ARB", "BUFFER_ENUM16(ColorDrawBuffer[1]), extra_valid_draw_buffer" ], 302bf215546Sopenharmony_ci [ "DRAW_BUFFER2_ARB", "BUFFER_ENUM16(ColorDrawBuffer[2]), extra_valid_draw_buffer" ], 303bf215546Sopenharmony_ci [ "DRAW_BUFFER3_ARB", "BUFFER_ENUM16(ColorDrawBuffer[3]), extra_valid_draw_buffer" ], 304bf215546Sopenharmony_ci [ "DRAW_BUFFER4_ARB", "BUFFER_ENUM16(ColorDrawBuffer[4]), extra_valid_draw_buffer" ], 305bf215546Sopenharmony_ci [ "DRAW_BUFFER5_ARB", "BUFFER_ENUM16(ColorDrawBuffer[5]), extra_valid_draw_buffer" ], 306bf215546Sopenharmony_ci [ "DRAW_BUFFER6_ARB", "BUFFER_ENUM16(ColorDrawBuffer[6]), extra_valid_draw_buffer" ], 307bf215546Sopenharmony_ci [ "DRAW_BUFFER7_ARB", "BUFFER_ENUM16(ColorDrawBuffer[7]), extra_valid_draw_buffer" ], 308bf215546Sopenharmony_ci [ "BLEND_COLOR_EXT", "LOC_CUSTOM, TYPE_FLOATN_4, 0, NO_EXTRA" ], 309bf215546Sopenharmony_ci 310bf215546Sopenharmony_ci# GL_ARB_fragment_program 311bf215546Sopenharmony_ci# == GL_MAX_TEXTURE_IMAGE_UNITS_NV 312bf215546Sopenharmony_ci [ "MAX_TEXTURE_IMAGE_UNITS_ARB", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxTextureImageUnits), extra_ARB_fragment_program" ], 313bf215546Sopenharmony_ci [ "MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits), extra_ARB_vertex_shader" ], 314bf215546Sopenharmony_ci [ "MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB", "CONTEXT_INT(Const.MaxCombinedTextureImageUnits), extra_ARB_vertex_shader" ], 315bf215546Sopenharmony_ci 316bf215546Sopenharmony_ci# GL_ARB_shader_objects 317bf215546Sopenharmony_ci# Actually, this token isn't part of GL_ARB_shader_objects, but is 318bf215546Sopenharmony_ci# close enough for now. 319bf215546Sopenharmony_ci [ "CURRENT_PROGRAM", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 320bf215546Sopenharmony_ci 321bf215546Sopenharmony_ci# OpenGL 2.0 322bf215546Sopenharmony_ci [ "STENCIL_BACK_FUNC", "CONTEXT_ENUM16(Stencil.Function[1]), NO_EXTRA" ], 323bf215546Sopenharmony_ci [ "STENCIL_BACK_VALUE_MASK", "CONTEXT_UINT(Stencil.ValueMask[1]), NO_EXTRA" ], 324bf215546Sopenharmony_ci [ "STENCIL_BACK_WRITEMASK", "CONTEXT_UINT(Stencil.WriteMask[1]), NO_EXTRA" ], 325bf215546Sopenharmony_ci [ "STENCIL_BACK_REF", "LOC_CUSTOM, TYPE_UINT, NO_OFFSET, NO_EXTRA" ], 326bf215546Sopenharmony_ci [ "STENCIL_BACK_FAIL", "CONTEXT_ENUM16(Stencil.FailFunc[1]), NO_EXTRA" ], 327bf215546Sopenharmony_ci [ "STENCIL_BACK_PASS_DEPTH_FAIL", "CONTEXT_ENUM16(Stencil.ZFailFunc[1]), NO_EXTRA" ], 328bf215546Sopenharmony_ci [ "STENCIL_BACK_PASS_DEPTH_PASS", "CONTEXT_ENUM16(Stencil.ZPassFunc[1]), NO_EXTRA" ], 329bf215546Sopenharmony_ci [ "MAX_VERTEX_ATTRIBS_ARB", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAttribs), extra_ARB_vertex_program_api_es2" ], 330bf215546Sopenharmony_ci 331bf215546Sopenharmony_ci# OES_texture_3D 332bf215546Sopenharmony_ci [ "TEXTURE_BINDING_3D", "LOC_CUSTOM, TYPE_INT, TEXTURE_3D_INDEX, NO_EXTRA" ], 333bf215546Sopenharmony_ci [ "MAX_3D_TEXTURE_SIZE", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_context, Const.Max3DTextureLevels), NO_EXTRA" ], 334bf215546Sopenharmony_ci 335bf215546Sopenharmony_ci# GL_ARB_fragment_program/OES_standard_derivatives 336bf215546Sopenharmony_ci [ "FRAGMENT_SHADER_DERIVATIVE_HINT", "CONTEXT_ENUM16(Hint.FragmentShaderDerivative), extra_ARB_fragment_shader" ], 337bf215546Sopenharmony_ci 338bf215546Sopenharmony_ci# GL_NV_read_buffer 339bf215546Sopenharmony_ci [ "READ_BUFFER", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, extra_NV_read_buffer_api_gl" ], 340bf215546Sopenharmony_ci 341bf215546Sopenharmony_ci# GL_ARB_ES2_compatibility 342bf215546Sopenharmony_ci [ "SHADER_COMPILER", "CONST(1), extra_ARB_ES2_compatibility_api_es2" ], 343bf215546Sopenharmony_ci [ "MAX_VARYING_VECTORS", "CONTEXT_INT(Const.MaxVarying), extra_ARB_ES2_compatibility_api_es2" ], 344bf215546Sopenharmony_ci [ "MAX_VERTEX_UNIFORM_VECTORS", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_ES2_compatibility_api_es2" ], 345bf215546Sopenharmony_ci [ "MAX_FRAGMENT_UNIFORM_VECTORS", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_ES2_compatibility_api_es2" ], 346bf215546Sopenharmony_ci [ "NUM_SHADER_BINARY_FORMATS", "CONST(0), extra_ARB_ES2_compatibility_api_es2" ], 347bf215546Sopenharmony_ci [ "SHADER_BINARY_FORMATS", "LOC_CUSTOM, TYPE_INVALID, 0, extra_ARB_ES2_compatibility_api_es2" ], 348bf215546Sopenharmony_ci 349bf215546Sopenharmony_ci# GL_ARB_get_program_binary / GL_OES_get_program_binary 350bf215546Sopenharmony_ci [ "NUM_PROGRAM_BINARY_FORMATS", "CONTEXT_UINT(Const.NumProgramBinaryFormats), NO_EXTRA" ], 351bf215546Sopenharmony_ci [ "PROGRAM_BINARY_FORMATS", "LOC_CUSTOM, TYPE_INT_N, 0, NO_EXTRA" ], 352bf215546Sopenharmony_ci 353bf215546Sopenharmony_ci# GL_INTEL_performance_query 354bf215546Sopenharmony_ci [ "PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL", "CONST(MAX_PERFQUERY_QUERY_NAME_LENGTH), extra_INTEL_performance_query" ], 355bf215546Sopenharmony_ci [ "PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL", "CONST(MAX_PERFQUERY_COUNTER_NAME_LENGTH), extra_INTEL_performance_query" ], 356bf215546Sopenharmony_ci [ "PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL", "CONST(MAX_PERFQUERY_COUNTER_DESC_LENGTH), extra_INTEL_performance_query" ], 357bf215546Sopenharmony_ci [ "PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL", "CONST(PERFQUERY_HAVE_GPA_EXTENDED_COUNTERS), extra_INTEL_performance_query" ], 358bf215546Sopenharmony_ci 359bf215546Sopenharmony_ci# GL_KHR_context_flush_control 360bf215546Sopenharmony_ci [ "CONTEXT_RELEASE_BEHAVIOR", "CONTEXT_ENUM16(Const.ContextReleaseBehavior), NO_EXTRA" ], 361bf215546Sopenharmony_ci 362bf215546Sopenharmony_ci# blend_func_extended 363bf215546Sopenharmony_ci [ "MAX_DUAL_SOURCE_DRAW_BUFFERS", "CONTEXT_INT(Const.MaxDualSourceDrawBuffers), extra_ARB_blend_func_extended" ], 364bf215546Sopenharmony_ci 365bf215546Sopenharmony_ci# GL_KHR_blend_equation_advanced_coherent 366bf215546Sopenharmony_ci [ "BLEND_ADVANCED_COHERENT_KHR", "CONTEXT_BOOL(Color.BlendCoherent), extra_KHR_blend_equation_advanced_coherent" ], 367bf215546Sopenharmony_ci 368bf215546Sopenharmony_ci# GL_ARB_robustness / GL_KHR_robustness 369bf215546Sopenharmony_ci [ "CONTEXT_ROBUST_ACCESS", "CONTEXT_ENUM16(Const.RobustAccess), extra_KHR_robustness" ], 370bf215546Sopenharmony_ci [ "RESET_NOTIFICATION_STRATEGY_ARB", "CONTEXT_ENUM16(Const.ResetStrategy), extra_KHR_robustness_or_GL" ], 371bf215546Sopenharmony_ci 372bf215546Sopenharmony_ci# GL_NV_conservative_raster 373bf215546Sopenharmony_ci [ "SUBPIXEL_PRECISION_BIAS_X_BITS_NV", "CONTEXT_UINT(SubpixelPrecisionBias[0]), extra_NV_conservative_raster" ], 374bf215546Sopenharmony_ci [ "SUBPIXEL_PRECISION_BIAS_Y_BITS_NV", "CONTEXT_UINT(SubpixelPrecisionBias[1]), extra_NV_conservative_raster" ], 375bf215546Sopenharmony_ci [ "MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV", "CONTEXT_UINT(Const.MaxSubpixelPrecisionBiasBits), extra_NV_conservative_raster" ], 376bf215546Sopenharmony_ci 377bf215546Sopenharmony_ci# GL_NV_conservative_raster_dilate 378bf215546Sopenharmony_ci [ "CONSERVATIVE_RASTER_DILATE_RANGE_NV", "CONTEXT_FLOAT2(Const.ConservativeRasterDilateRange), extra_NV_conservative_raster_dilate" ], 379bf215546Sopenharmony_ci [ "CONSERVATIVE_RASTER_DILATE_GRANULARITY_NV", "CONTEXT_FLOAT(Const.ConservativeRasterDilateGranularity), extra_NV_conservative_raster_dilate" ], 380bf215546Sopenharmony_ci [ "CONSERVATIVE_RASTER_DILATE_NV", "CONTEXT_FLOAT(ConservativeRasterDilate), extra_NV_conservative_raster_dilate" ], 381bf215546Sopenharmony_ci 382bf215546Sopenharmony_ci# GL_NV_conservative_raster_pre_snap_triangles 383bf215546Sopenharmony_ci [ "CONSERVATIVE_RASTER_MODE_NV", "CONTEXT_ENUM16(ConservativeRasterMode), extra_NV_conservative_raster_pre_snap_triangles" ], 384bf215546Sopenharmony_ci 385bf215546Sopenharmony_ci# GL_AMD_framebuffer_multisample_advanced 386bf215546Sopenharmony_ci [ "MAX_COLOR_FRAMEBUFFER_SAMPLES_AMD", "CONTEXT_INT(Const.MaxColorFramebufferSamples), extra_AMD_framebuffer_multisample_advanced" ], 387bf215546Sopenharmony_ci [ "MAX_COLOR_FRAMEBUFFER_STORAGE_SAMPLES_AMD", "CONTEXT_INT(Const.MaxColorFramebufferStorageSamples), extra_AMD_framebuffer_multisample_advanced" ], 388bf215546Sopenharmony_ci [ "MAX_DEPTH_STENCIL_FRAMEBUFFER_SAMPLES_AMD", "CONTEXT_INT(Const.MaxDepthStencilFramebufferSamples), extra_AMD_framebuffer_multisample_advanced" ], 389bf215546Sopenharmony_ci [ "NUM_SUPPORTED_MULTISAMPLE_MODES_AMD", "CONTEXT_INT(Const.NumSupportedMultisampleModes), extra_AMD_framebuffer_multisample_advanced" ], 390bf215546Sopenharmony_ci [ "SUPPORTED_MULTISAMPLE_MODES_AMD", "LOC_CUSTOM, TYPE_INT_N, 0, extra_AMD_framebuffer_multisample_advanced" ], 391bf215546Sopenharmony_ci 392bf215546Sopenharmony_ci# GL_NV_alpha_to_coverage_dither_control 393bf215546Sopenharmony_ci [ "ALPHA_TO_COVERAGE_DITHER_MODE_NV", "CONTEXT_ENUM(Multisample.SampleAlphaToCoverageDitherControl ), NO_EXTRA" ], 394bf215546Sopenharmony_ci 395bf215546Sopenharmony_ci# GL_EXT_pixel_buffer_object 396bf215546Sopenharmony_ci [ "PIXEL_PACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ], 397bf215546Sopenharmony_ci [ "PIXEL_UNPACK_BUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_pixel_buffer_object" ], 398bf215546Sopenharmony_ci 399bf215546Sopenharmony_ci# GL_ARB_framebuffer_object or GL_EXT_framebuffer_multisample or GL_EXT_multisampled_render_to_texture 400bf215546Sopenharmony_ci [ "MAX_SAMPLES", "CONTEXT_INT(Const.MaxSamples), extra_ARB_framebuffer_object_or_EXT_framebuffer_multisample_or_EXT_multisampled_render_to_texture" ], 401bf215546Sopenharmony_ci]}, 402bf215546Sopenharmony_ci 403bf215546Sopenharmony_ci# GLES3 is not a typo. 404bf215546Sopenharmony_ci{ "apis": ["GL", "GLES", "GLES3", "GL_CORE"], "params": [ 405bf215546Sopenharmony_ci# GL_EXT_texture_lod_bias 406bf215546Sopenharmony_ci [ "MAX_TEXTURE_LOD_BIAS_EXT", "CONTEXT_FLOAT(Const.MaxTextureLodBias), NO_EXTRA" ], 407bf215546Sopenharmony_ci 408bf215546Sopenharmony_ci# GL_ARB_timer_query, GL_EXT_disjoint_timer_query 409bf215546Sopenharmony_ci [ "TIMESTAMP", "LOC_CUSTOM, TYPE_INT64, 0, extra_ARB_timer_query_or_EXT_disjoint_timer_query" ], 410bf215546Sopenharmony_ci]}, 411bf215546Sopenharmony_ci 412bf215546Sopenharmony_ci 413bf215546Sopenharmony_ci# Enums in OpenGL and ES 3.0 414bf215546Sopenharmony_ci{ "apis": ["GL", "GL_CORE", "GLES3"], "params": [ 415bf215546Sopenharmony_ci# GL 3.0 / GLES3 416bf215546Sopenharmony_ci [ "NUM_EXTENSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ], 417bf215546Sopenharmony_ci [ "MAJOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ], 418bf215546Sopenharmony_ci [ "MINOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ], 419bf215546Sopenharmony_ci 420bf215546Sopenharmony_ci # GL 3.2 / GLES3 421bf215546Sopenharmony_ci [ "MAX_VERTEX_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxOutputComponents), extra_gl32_es3" ], 422bf215546Sopenharmony_ci [ "MAX_FRAGMENT_INPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxInputComponents), extra_gl32_es3" ], 423bf215546Sopenharmony_ci 424bf215546Sopenharmony_ci# GL_ARB_ES3_compatibility 425bf215546Sopenharmony_ci [ "MAX_ELEMENT_INDEX", "CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3"], 426bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART_FIXED_INDEX", "CONTEXT_BOOL(Array.PrimitiveRestartFixedIndex), extra_ARB_ES3_compatibility_api_es3" ], 427bf215546Sopenharmony_ci 428bf215546Sopenharmony_ci# GL_ARB_fragment_shader 429bf215546Sopenharmony_ci [ "MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxUniformComponents), extra_ARB_fragment_shader" ], 430bf215546Sopenharmony_ci 431bf215546Sopenharmony_ci# GL_ARB_sampler_objects / GL 3.3 / GLES 3.0 432bf215546Sopenharmony_ci [ "SAMPLER_BINDING", "LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, NO_EXTRA" ], 433bf215546Sopenharmony_ci 434bf215546Sopenharmony_ci# GL_ARB_spirv_extensions 435bf215546Sopenharmony_ci [ "NUM_SPIR_V_EXTENSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_spirv_extensions" ], 436bf215546Sopenharmony_ci 437bf215546Sopenharmony_ci# GL_ARB_sync 438bf215546Sopenharmony_ci [ "MAX_SERVER_WAIT_TIMEOUT", "CONTEXT_INT64(Const.MaxServerWaitTimeout), extra_ARB_sync" ], 439bf215546Sopenharmony_ci 440bf215546Sopenharmony_ci# GL_ARB_transform_feedback2 441bf215546Sopenharmony_ci [ "TRANSFORM_FEEDBACK_BUFFER_PAUSED", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_ARB_transform_feedback2_api_es3" ], 442bf215546Sopenharmony_ci [ "TRANSFORM_FEEDBACK_BUFFER_ACTIVE", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_ARB_transform_feedback2_api_es3" ], 443bf215546Sopenharmony_ci [ "TRANSFORM_FEEDBACK_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_transform_feedback2_api_es3" ], 444bf215546Sopenharmony_ci 445bf215546Sopenharmony_ci# GL_ARB_uniform_buffer_object 446bf215546Sopenharmony_ci [ "MAX_VERTEX_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxUniformBlocks), extra_ARB_uniform_buffer_object" ], 447bf215546Sopenharmony_ci [ "MAX_FRAGMENT_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxUniformBlocks), extra_ARB_uniform_buffer_object" ], 448bf215546Sopenharmony_ci [ "MAX_COMBINED_UNIFORM_BLOCKS", "CONTEXT_INT(Const.MaxCombinedUniformBlocks), extra_ARB_uniform_buffer_object" ], 449bf215546Sopenharmony_ci [ "MAX_UNIFORM_BLOCK_SIZE", "CONTEXT_UINT(Const.MaxUniformBlockSize), extra_ARB_uniform_buffer_object" ], 450bf215546Sopenharmony_ci [ "MAX_UNIFORM_BUFFER_BINDINGS", "CONTEXT_INT(Const.MaxUniformBufferBindings), extra_ARB_uniform_buffer_object" ], 451bf215546Sopenharmony_ci [ "MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_VERTEX].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object" ], 452bf215546Sopenharmony_ci [ "MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_FRAGMENT].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object" ], 453bf215546Sopenharmony_ci [ "UNIFORM_BUFFER_OFFSET_ALIGNMENT", "CONTEXT_INT(Const.UniformBufferOffsetAlignment), extra_ARB_uniform_buffer_object" ], 454bf215546Sopenharmony_ci [ "UNIFORM_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_uniform_buffer_object" ], 455bf215546Sopenharmony_ci 456bf215546Sopenharmony_ci# GL_ARB_vertex_shader 457bf215546Sopenharmony_ci [ "MAX_VERTEX_UNIFORM_COMPONENTS_ARB", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxUniformComponents), extra_ARB_vertex_shader" ], 458bf215546Sopenharmony_ci [ "MAX_VARYING_FLOATS_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_shader" ], 459bf215546Sopenharmony_ci 460bf215546Sopenharmony_ci# GL_EXT_framebuffer_blit 461bf215546Sopenharmony_ci# NOTE: GL_DRAW_FRAMEBUFFER_BINDING_EXT == GL_FRAMEBUFFER_BINDING_EXT 462bf215546Sopenharmony_ci [ "READ_FRAMEBUFFER_BINDING_EXT", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 463bf215546Sopenharmony_ci 464bf215546Sopenharmony_ci# GL_EXT_gpu_shader4 / GLSL 1.30 465bf215546Sopenharmony_ci [ "MIN_PROGRAM_TEXEL_OFFSET", "CONTEXT_INT(Const.MinProgramTexelOffset), extra_GLSL_130_es3_gpushader4" ], 466bf215546Sopenharmony_ci [ "MAX_PROGRAM_TEXEL_OFFSET", "CONTEXT_INT(Const.MaxProgramTexelOffset), extra_GLSL_130_es3_gpushader4" ], 467bf215546Sopenharmony_ci 468bf215546Sopenharmony_ci # GL_EXT_texture_array 469bf215546Sopenharmony_ci [ "TEXTURE_BINDING_2D_ARRAY", "LOC_CUSTOM, TYPE_INT, TEXTURE_2D_ARRAY_INDEX, extra_EXT_texture_array_es3" ], 470bf215546Sopenharmony_ci [ "MAX_ARRAY_TEXTURE_LAYERS_EXT", "CONTEXT_INT(Const.MaxArrayTextureLayers), extra_EXT_texture_array_es3" ], 471bf215546Sopenharmony_ci 472bf215546Sopenharmony_ci# GL_EXT_transform_feedback 473bf215546Sopenharmony_ci [ "TRANSFORM_FEEDBACK_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_transform_feedback" ], 474bf215546Sopenharmony_ci [ "RASTERIZER_DISCARD", "CONTEXT_BOOL(RasterDiscard), extra_EXT_transform_feedback" ], 475bf215546Sopenharmony_ci [ "MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS", "CONTEXT_INT(Const.MaxTransformFeedbackInterleavedComponents), extra_EXT_transform_feedback" ], 476bf215546Sopenharmony_ci [ "MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS", "CONTEXT_INT(Const.MaxTransformFeedbackBuffers), extra_EXT_transform_feedback" ], 477bf215546Sopenharmony_ci [ "MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS", "CONTEXT_INT(Const.MaxTransformFeedbackSeparateComponents), extra_EXT_transform_feedback" ], 478bf215546Sopenharmony_ci 479bf215546Sopenharmony_ci# GL_EXT_window_rectangles 480bf215546Sopenharmony_ci [ "MAX_WINDOW_RECTANGLES_EXT", "CONTEXT_INT(Const.MaxWindowRectangles), extra_EXT_window_rectangles" ], 481bf215546Sopenharmony_ci [ "NUM_WINDOW_RECTANGLES_EXT", "CONTEXT_INT(Scissor.NumWindowRects), extra_EXT_window_rectangles" ], 482bf215546Sopenharmony_ci [ "WINDOW_RECTANGLE_MODE_EXT", "CONTEXT_ENUM16(Scissor.WindowRectMode), extra_EXT_window_rectangles" ], 483bf215546Sopenharmony_ci 484bf215546Sopenharmony_ci # GL_ARB_gpu_shader5 / GL_OES_shader_multisample_interpolation 485bf215546Sopenharmony_ci [ "MIN_FRAGMENT_INTERPOLATION_OFFSET", "CONTEXT_FLOAT(Const.MinFragmentInterpolationOffset), extra_ARB_gpu_shader5_or_OES_sample_variables" ], 486bf215546Sopenharmony_ci [ "MAX_FRAGMENT_INTERPOLATION_OFFSET", "CONTEXT_FLOAT(Const.MaxFragmentInterpolationOffset), extra_ARB_gpu_shader5_or_OES_sample_variables" ], 487bf215546Sopenharmony_ci [ "FRAGMENT_INTERPOLATION_OFFSET_BITS", "CONST(FRAGMENT_INTERPOLATION_OFFSET_BITS), extra_ARB_gpu_shader5_or_OES_sample_variables" ], 488bf215546Sopenharmony_ci 489bf215546Sopenharmony_ci# GL_EXT_framebuffer_EXT / GLES 3.0 + EXT_sRGB_write_control 490bf215546Sopenharmony_ci [ "FRAMEBUFFER_SRGB_EXT", "CONTEXT_BOOL(Color.sRGBEnabled), extra_EXT_framebuffer_sRGB" ], 491bf215546Sopenharmony_ci]}, 492bf215546Sopenharmony_ci 493bf215546Sopenharmony_ci{ "apis": ["GLES", "GLES2"], "params": [ 494bf215546Sopenharmony_ci# GL_EXT_shader_framebuffer_fetch. Should be true for most modern hardware 495bf215546Sopenharmony_ci# supporting sample shading. 496bf215546Sopenharmony_ci [ "FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT", "CONTEXT_BOOL(Extensions.EXT_shader_framebuffer_fetch), extra_EXT_shader_framebuffer_fetch" ], 497bf215546Sopenharmony_ci# GL_OES_EGL_image_external 498bf215546Sopenharmony_ci [ "TEXTURE_BINDING_EXTERNAL_OES", "LOC_CUSTOM, TYPE_INT, TEXTURE_EXTERNAL_INDEX, extra_OES_EGL_image_external" ], 499bf215546Sopenharmony_ci [ "TEXTURE_EXTERNAL_OES", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_OES_EGL_image_external" ], 500bf215546Sopenharmony_ci]}, 501bf215546Sopenharmony_ci 502bf215546Sopenharmony_ci# Enums in OpenGL and ES 3.1 503bf215546Sopenharmony_ci{ "apis": ["GL", "GL_CORE", "GLES31"], "params": [ 504bf215546Sopenharmony_ci# GL_ARB_texture_buffer_object / GL_OES_texture_buffer 505bf215546Sopenharmony_ci [ "MAX_TEXTURE_BUFFER_SIZE_ARB", "CONTEXT_UINT(Const.MaxTextureBufferSize), extra_texture_buffer_object" ], 506bf215546Sopenharmony_ci [ "TEXTURE_BINDING_BUFFER_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object" ], 507bf215546Sopenharmony_ci [ "TEXTURE_BUFFER_DATA_STORE_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_BUFFER_INDEX, extra_texture_buffer_object" ], 508bf215546Sopenharmony_ci [ "TEXTURE_BUFFER_FORMAT_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object" ], 509bf215546Sopenharmony_ci [ "TEXTURE_BUFFER_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_texture_buffer_object" ], 510bf215546Sopenharmony_ci 511bf215546Sopenharmony_ci# GL_ARB_texture_buffer_range 512bf215546Sopenharmony_ci [ "TEXTURE_BUFFER_OFFSET_ALIGNMENT", "CONTEXT_INT(Const.TextureBufferOffsetAlignment), extra_ARB_texture_buffer_range" ], 513bf215546Sopenharmony_ci 514bf215546Sopenharmony_ci# GL_ARB_shader_image_load_store / GLES 3.1 515bf215546Sopenharmony_ci [ "MAX_IMAGE_UNITS", "CONTEXT_INT(Const.MaxImageUnits), extra_ARB_shader_image_load_store_es31" ], 516bf215546Sopenharmony_ci [ "MAX_VERTEX_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxImageUniforms), extra_ARB_shader_image_load_store_es31" ], 517bf215546Sopenharmony_ci [ "MAX_FRAGMENT_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxImageUniforms), extra_ARB_shader_image_load_store_es31" ], 518bf215546Sopenharmony_ci [ "MAX_COMBINED_IMAGE_UNIFORMS", "CONTEXT_INT(Const.MaxCombinedImageUniforms), extra_ARB_shader_image_load_store_es31" ], 519bf215546Sopenharmony_ci 520bf215546Sopenharmony_ci# GL_ARB_shader_atomic_counters / GLES 3.1 521bf215546Sopenharmony_ci [ "ATOMIC_COUNTER_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_shader_atomic_counters_es31" ], 522bf215546Sopenharmony_ci [ "MAX_ATOMIC_COUNTER_BUFFER_BINDINGS", "CONTEXT_INT(Const.MaxAtomicBufferBindings), extra_ARB_shader_atomic_counters_es31" ], 523bf215546Sopenharmony_ci [ "MAX_ATOMIC_COUNTER_BUFFER_SIZE", "CONTEXT_INT(Const.MaxAtomicBufferSize), extra_ARB_shader_atomic_counters_es31" ], 524bf215546Sopenharmony_ci [ "MAX_VERTEX_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_es31" ], 525bf215546Sopenharmony_ci [ "MAX_VERTEX_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxAtomicCounters), extra_ARB_shader_atomic_counters_es31" ], 526bf215546Sopenharmony_ci [ "MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_es31" ], 527bf215546Sopenharmony_ci [ "MAX_FRAGMENT_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxAtomicCounters), extra_ARB_shader_atomic_counters_es31" ], 528bf215546Sopenharmony_ci [ "MAX_COMBINED_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.MaxCombinedAtomicBuffers), extra_ARB_shader_atomic_counters_es31" ], 529bf215546Sopenharmony_ci [ "MAX_COMBINED_ATOMIC_COUNTERS", "CONTEXT_INT(Const.MaxCombinedAtomicCounters), extra_ARB_shader_atomic_counters_es31" ], 530bf215546Sopenharmony_ci 531bf215546Sopenharmony_ci# GL_ARB_texture_multisample / GLES 3.1 532bf215546Sopenharmony_ci [ "TEXTURE_BINDING_2D_MULTISAMPLE", "LOC_CUSTOM, TYPE_INT, TEXTURE_2D_MULTISAMPLE_INDEX, extra_ARB_texture_multisample" ], 533bf215546Sopenharmony_ci [ "MAX_COLOR_TEXTURE_SAMPLES", "CONTEXT_INT(Const.MaxColorTextureSamples), extra_ARB_texture_multisample" ], 534bf215546Sopenharmony_ci [ "MAX_DEPTH_TEXTURE_SAMPLES", "CONTEXT_INT(Const.MaxDepthTextureSamples), extra_ARB_texture_multisample" ], 535bf215546Sopenharmony_ci [ "MAX_INTEGER_SAMPLES", "CONTEXT_INT(Const.MaxIntegerSamples), extra_ARB_texture_multisample" ], 536bf215546Sopenharmony_ci [ "SAMPLE_MASK", "CONTEXT_BOOL(Multisample.SampleMask), extra_ARB_texture_multisample" ], 537bf215546Sopenharmony_ci [ "MAX_SAMPLE_MASK_WORDS", "CONST(1), extra_ARB_texture_multisample" ], 538bf215546Sopenharmony_ci 539bf215546Sopenharmony_ci# GL_ARB_texture_multisample / ES 3.1 with GL_OES_texture_storage_multisample_2d_array 540bf215546Sopenharmony_ci [ "TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY", "LOC_CUSTOM, TYPE_INT, TEXTURE_2D_MULTISAMPLE_ARRAY_INDEX, extra_ARB_texture_multisample" ], 541bf215546Sopenharmony_ci 542bf215546Sopenharmony_ci# GL_ARB_texture_gather / GLES 3.1 543bf215546Sopenharmony_ci [ "MIN_PROGRAM_TEXTURE_GATHER_OFFSET", "CONTEXT_INT(Const.MinProgramTextureGatherOffset), extra_ARB_texture_gather"], 544bf215546Sopenharmony_ci [ "MAX_PROGRAM_TEXTURE_GATHER_OFFSET", "CONTEXT_INT(Const.MaxProgramTextureGatherOffset), extra_ARB_texture_gather"], 545bf215546Sopenharmony_ci 546bf215546Sopenharmony_ci# GL_ARB_compute_shader / GLES 3.1 547bf215546Sopenharmony_ci [ "MAX_COMPUTE_WORK_GROUP_INVOCATIONS", "CONTEXT_INT(Const.MaxComputeWorkGroupInvocations), extra_ARB_compute_shader_es31" ], 548bf215546Sopenharmony_ci [ "MAX_COMPUTE_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxUniformBlocks), extra_ARB_compute_shader_es31" ], 549bf215546Sopenharmony_ci [ "MAX_COMPUTE_TEXTURE_IMAGE_UNITS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits), extra_ARB_compute_shader_es31" ], 550bf215546Sopenharmony_ci [ "MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxAtomicBuffers), extra_ARB_compute_shader_es31" ], 551bf215546Sopenharmony_ci [ "MAX_COMPUTE_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxAtomicCounters), extra_ARB_compute_shader_es31" ], 552bf215546Sopenharmony_ci [ "MAX_COMPUTE_SHARED_MEMORY_SIZE", "CONTEXT_INT(Const.MaxComputeSharedMemorySize), extra_ARB_compute_shader_es31" ], 553bf215546Sopenharmony_ci [ "MAX_COMPUTE_UNIFORM_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents), extra_ARB_compute_shader_es31" ], 554bf215546Sopenharmony_ci [ "MAX_COMPUTE_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxImageUniforms), extra_ARB_compute_shader_es31" ], 555bf215546Sopenharmony_ci [ "DISPATCH_INDIRECT_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_compute_shader_es31" ], 556bf215546Sopenharmony_ci [ "MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_COMPUTE].MaxCombinedUniformComponents), extra_ARB_compute_shader_es31" ], 557bf215546Sopenharmony_ci 558bf215546Sopenharmony_ci# GL_ARB_framebuffer_no_attachments / GLES 3.1 559bf215546Sopenharmony_ci ["MAX_FRAMEBUFFER_WIDTH", "CONTEXT_INT(Const.MaxFramebufferWidth), extra_ARB_framebuffer_no_attachments"], 560bf215546Sopenharmony_ci ["MAX_FRAMEBUFFER_HEIGHT", "CONTEXT_INT(Const.MaxFramebufferHeight), extra_ARB_framebuffer_no_attachments"], 561bf215546Sopenharmony_ci ["MAX_FRAMEBUFFER_SAMPLES", "CONTEXT_INT(Const.MaxFramebufferSamples), extra_ARB_framebuffer_no_attachments"], 562bf215546Sopenharmony_ci 563bf215546Sopenharmony_ci# GL_ARB_framebuffer_no_attachments / geometry shader 564bf215546Sopenharmony_ci [ "MAX_FRAMEBUFFER_LAYERS", "CONTEXT_INT(Const.MaxFramebufferLayers), extra_ARB_framebuffer_no_attachments_and_geometry_shader" ], 565bf215546Sopenharmony_ci 566bf215546Sopenharmony_ci# GL_ARB_explicit_uniform_location / GLES 3.1 567bf215546Sopenharmony_ci [ "MAX_UNIFORM_LOCATIONS", "CONTEXT_INT(Const.MaxUserAssignableUniformLocations), extra_ARB_explicit_uniform_location" ], 568bf215546Sopenharmony_ci 569bf215546Sopenharmony_ci# GL_ARB_separate_shader_objects / GLES 3.1 570bf215546Sopenharmony_ci [ "PROGRAM_PIPELINE_BINDING", "LOC_CUSTOM, TYPE_INT, GL_PROGRAM_PIPELINE_BINDING, NO_EXTRA" ], 571bf215546Sopenharmony_ci 572bf215546Sopenharmony_ci# GL_ARB_vertex_attrib_binding / GLES 3.1 573bf215546Sopenharmony_ci [ "MAX_VERTEX_ATTRIB_RELATIVE_OFFSET", "CONTEXT_INT(Const.MaxVertexAttribRelativeOffset), NO_EXTRA" ], 574bf215546Sopenharmony_ci [ "MAX_VERTEX_ATTRIB_BINDINGS", "CONTEXT_INT(Const.MaxVertexAttribBindings), NO_EXTRA" ], 575bf215546Sopenharmony_ci 576bf215546Sopenharmony_ci# GL 4.4 / GLES 3.1 577bf215546Sopenharmony_ci [ "MAX_VERTEX_ATTRIB_STRIDE", "CONTEXT_UINT(Const.MaxVertexAttribStride), NO_EXTRA" ], 578bf215546Sopenharmony_ci 579bf215546Sopenharmony_ci # GL_ARB_shader_storage_buffer_object / GLES 3.1 580bf215546Sopenharmony_ci [ "MAX_VERTEX_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_VERTEX].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31" ], 581bf215546Sopenharmony_ci [ "MAX_FRAGMENT_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_FRAGMENT].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31" ], 582bf215546Sopenharmony_ci [ "MAX_COMPUTE_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_COMPUTE].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31" ], 583bf215546Sopenharmony_ci [ "MAX_COMBINED_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.MaxCombinedShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_es31" ], 584bf215546Sopenharmony_ci [ "MAX_SHADER_STORAGE_BLOCK_SIZE", "CONTEXT_UINT(Const.MaxShaderStorageBlockSize), extra_ARB_shader_storage_buffer_object_es31" ], 585bf215546Sopenharmony_ci [ "MAX_SHADER_STORAGE_BUFFER_BINDINGS", "CONTEXT_INT(Const.MaxShaderStorageBufferBindings), extra_ARB_shader_storage_buffer_object_es31" ], 586bf215546Sopenharmony_ci [ "SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT", "CONTEXT_INT(Const.ShaderStorageBufferOffsetAlignment), extra_ARB_shader_storage_buffer_object_es31" ], 587bf215546Sopenharmony_ci [ "SHADER_STORAGE_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_shader_storage_buffer_object_es31" ], 588bf215546Sopenharmony_ci 589bf215546Sopenharmony_ci # GL_ARB_shader_image_load_store / GL_ARB_shader_storage_buffer_object / GLES 3.1 590bf215546Sopenharmony_ci # (MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS in GL_ARB_shader_image_load_store) 591bf215546Sopenharmony_ci [ "MAX_COMBINED_SHADER_OUTPUT_RESOURCES", "CONTEXT_INT(Const.MaxCombinedShaderOutputResources), extra_ARB_shader_image_load_store_shader_storage_buffer_object_es31" ], 592bf215546Sopenharmony_ci 593bf215546Sopenharmony_ci # GL_ARB_texture_cube_map_array 594bf215546Sopenharmony_ci [ "TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array_OES_texture_cube_map_array" ], 595bf215546Sopenharmony_ci 596bf215546Sopenharmony_ci # GL_NUM_SHADING_LANGUAGE_VERSIONS 597bf215546Sopenharmony_ci [ "NUM_SHADING_LANGUAGE_VERSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_version_43" ], 598bf215546Sopenharmony_ci 599bf215546Sopenharmony_ci # GL_ARB_sample_locations 600bf215546Sopenharmony_ci [ "SAMPLE_LOCATION_SUBPIXEL_BITS_ARB", "LOC_CUSTOM, TYPE_UINT, 0, extra_ARB_sample_locations" ], 601bf215546Sopenharmony_ci [ "SAMPLE_LOCATION_PIXEL_GRID_WIDTH_ARB", "LOC_CUSTOM, TYPE_UINT, 0, extra_ARB_sample_locations" ], 602bf215546Sopenharmony_ci [ "SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_ARB", "LOC_CUSTOM, TYPE_UINT, 0, extra_ARB_sample_locations" ], 603bf215546Sopenharmony_ci [ "PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_ARB", "LOC_CUSTOM, TYPE_UINT, 0, extra_ARB_sample_locations" ], 604bf215546Sopenharmony_ci 605bf215546Sopenharmony_ci# GL_ARB_draw_indirect / GLES 3.1 606bf215546Sopenharmony_ci [ "DRAW_INDIRECT_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_draw_indirect" ], 607bf215546Sopenharmony_ci 608bf215546Sopenharmony_ci# GL 3.2 / GL OES_geometry_shader 609bf215546Sopenharmony_ci [ "MAX_GEOMETRY_INPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxInputComponents), extra_version_32_OES_geometry_shader" ], 610bf215546Sopenharmony_ci [ "MAX_GEOMETRY_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxOutputComponents), extra_version_32_OES_geometry_shader" ], 611bf215546Sopenharmony_ci [ "MAX_GEOMETRY_TEXTURE_IMAGE_UNITS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxTextureImageUnits), extra_version_32_OES_geometry_shader" ], 612bf215546Sopenharmony_ci [ "MAX_GEOMETRY_OUTPUT_VERTICES", "CONTEXT_INT(Const.MaxGeometryOutputVertices), extra_version_32_OES_geometry_shader" ], 613bf215546Sopenharmony_ci [ "MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.MaxGeometryTotalOutputComponents), extra_version_32_OES_geometry_shader" ], 614bf215546Sopenharmony_ci [ "MAX_GEOMETRY_UNIFORM_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxUniformComponents), extra_version_32_OES_geometry_shader" ], 615bf215546Sopenharmony_ci 616bf215546Sopenharmony_ci# GL_ARB_tessellation_shader / also OES and EXT 617bf215546Sopenharmony_ci [ "PATCH_VERTICES", "CONTEXT_INT(TessCtrlProgram.patch_vertices), extra_ARB_tessellation_shader" ], 618bf215546Sopenharmony_ci [ "PATCH_DEFAULT_OUTER_LEVEL", "CONTEXT_FLOAT4(TessCtrlProgram.patch_default_outer_level), extra_ARB_tessellation_shader" ], 619bf215546Sopenharmony_ci [ "PATCH_DEFAULT_INNER_LEVEL", "CONTEXT_FLOAT2(TessCtrlProgram.patch_default_inner_level), extra_ARB_tessellation_shader" ], 620bf215546Sopenharmony_ci [ "MAX_TESS_GEN_LEVEL", "CONTEXT_INT(Const.MaxTessGenLevel), extra_ARB_tessellation_shader" ], 621bf215546Sopenharmony_ci [ "MAX_PATCH_VERTICES", "CONTEXT_INT(Const.MaxPatchVertices), extra_ARB_tessellation_shader" ], 622bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_UNIFORM_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxUniformComponents), extra_ARB_tessellation_shader" ], 623bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_UNIFORM_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxUniformComponents), extra_ARB_tessellation_shader" ], 624bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxTextureImageUnits), extra_ARB_tessellation_shader" ], 625bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxTextureImageUnits), extra_ARB_tessellation_shader" ], 626bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxOutputComponents), extra_ARB_tessellation_shader" ], 627bf215546Sopenharmony_ci [ "MAX_TESS_PATCH_COMPONENTS", "CONTEXT_INT(Const.MaxTessPatchComponents), extra_ARB_tessellation_shader" ], 628bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.MaxTessControlTotalOutputComponents), extra_ARB_tessellation_shader" ], 629bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_OUTPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxOutputComponents), extra_ARB_tessellation_shader" ], 630bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_INPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxInputComponents), extra_ARB_tessellation_shader" ], 631bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_INPUT_COMPONENTS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxInputComponents), extra_ARB_tessellation_shader" ], 632bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxUniformBlocks), extra_ARB_tessellation_shader" ], 633bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxUniformBlocks), extra_ARB_tessellation_shader" ], 634bf215546Sopenharmony_ci [ "MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_TESS_CTRL].MaxCombinedUniformComponents), extra_ARB_tessellation_shader" ], 635bf215546Sopenharmony_ci [ "MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_TESS_EVAL].MaxCombinedUniformComponents), extra_ARB_tessellation_shader" ], 636bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED", "CONTEXT_BOOL(Const.PrimitiveRestartForPatches), extra_ARB_tessellation_shader" ], 637bf215546Sopenharmony_ci 638bf215546Sopenharmony_ci# GL_ARB_shader_image_load_store / geometry shader 639bf215546Sopenharmony_ci [ "MAX_GEOMETRY_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxImageUniforms), extra_ARB_shader_image_load_store_and_geometry_shader" ], 640bf215546Sopenharmony_ci 641bf215546Sopenharmony_ci# GL_ARB_shader_image_load_store / tessellation shader 642bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxImageUniforms), extra_ARB_shader_image_load_store_and_tessellation"], 643bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_IMAGE_UNIFORMS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxImageUniforms), extra_ARB_shader_image_load_store_and_tessellation"], 644bf215546Sopenharmony_ci 645bf215546Sopenharmony_ci# GL_ARB_shader_atomic_counters / geometry shader 646bf215546Sopenharmony_ci [ "MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_geometry_shader " ], 647bf215546Sopenharmony_ci [ "MAX_GEOMETRY_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_geometry_shader" ], 648bf215546Sopenharmony_ci 649bf215546Sopenharmony_ci# GL_ARB_shader_atomic_counters / tessellation shader 650bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_tessellation" ], 651bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_tessellation" ], 652bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxAtomicBuffers), extra_ARB_shader_atomic_counters_and_tessellation" ], 653bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_ATOMIC_COUNTERS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxAtomicCounters), extra_ARB_shader_atomic_counters_and_tessellation" ], 654bf215546Sopenharmony_ci 655bf215546Sopenharmony_ci# GL_ARB_shader_storage_buffer_object / geometry shader 656bf215546Sopenharmony_ci [ "MAX_GEOMETRY_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object_and_geometry_shader" ], 657bf215546Sopenharmony_ci 658bf215546Sopenharmony_ci# GL_ARB_shader_storage_buffer_object / tessellation shader 659bf215546Sopenharmony_ci [ "MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_CTRL].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object" ], 660bf215546Sopenharmony_ci [ "MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_TESS_EVAL].MaxShaderStorageBlocks), extra_ARB_shader_storage_buffer_object" ], 661bf215546Sopenharmony_ci 662bf215546Sopenharmony_ci# GL_ARB_uniform_buffer_object / geometry shader 663bf215546Sopenharmony_ci [ "MAX_GEOMETRY_UNIFORM_BLOCKS", "CONTEXT_INT(Const.Program[MESA_SHADER_GEOMETRY].MaxUniformBlocks), extra_ARB_uniform_buffer_object_and_geometry_shader" ], 664bf215546Sopenharmony_ci [ "MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS", "CONTEXT_INT64(Const.Program[MESA_SHADER_GEOMETRY].MaxCombinedUniformComponents), extra_ARB_uniform_buffer_object_and_geometry_shader" ], 665bf215546Sopenharmony_ci 666bf215546Sopenharmony_ci# GL_ARB_viewport_array / GL_OES_geometry_shader 667bf215546Sopenharmony_ci [ "LAYER_PROVOKING_VERTEX", "CONTEXT_ENUM16(Const.LayerAndVPIndexProvokingVertex), extra_ARB_viewport_array_or_oes_geometry_shader" ], 668bf215546Sopenharmony_ci 669bf215546Sopenharmony_ci# GL_ARB_gpu_shader5 / GL_OES_geometry_shader 670bf215546Sopenharmony_ci [ "MAX_GEOMETRY_SHADER_INVOCATIONS", "CONTEXT_INT(Const.MaxGeometryShaderInvocations), extra_ARB_gpu_shader5_or_oes_geometry_shader" ], 671bf215546Sopenharmony_ci 672bf215546Sopenharmony_ci# GL_OES_primitive_bounding_box 673bf215546Sopenharmony_ci [ "PRIMITIVE_BOUNDING_BOX_ARB", "CONTEXT_FLOAT8(PrimitiveBoundingBox), extra_OES_primitive_bounding_box" ], 674bf215546Sopenharmony_ci 675bf215546Sopenharmony_ci# GL_ARB_viewport_array / GL_OES_viewport_array 676bf215546Sopenharmony_ci [ "MAX_VIEWPORTS", "CONTEXT_INT(Const.MaxViewports), extra_ARB_viewport_array_or_oes_viewport_array" ], 677bf215546Sopenharmony_ci [ "VIEWPORT_SUBPIXEL_BITS", "CONTEXT_INT(Const.ViewportSubpixelBits), extra_ARB_viewport_array_or_oes_viewport_array" ], 678bf215546Sopenharmony_ci [ "VIEWPORT_BOUNDS_RANGE", "CONTEXT_FLOAT2(Const.ViewportBounds), extra_ARB_viewport_array_or_oes_viewport_array" ], 679bf215546Sopenharmony_ci [ "VIEWPORT_INDEX_PROVOKING_VERTEX", "CONTEXT_ENUM16(Const.LayerAndVPIndexProvokingVertex), extra_ARB_viewport_array_or_oes_viewport_array" ], 680bf215546Sopenharmony_ci 681bf215546Sopenharmony_ci# INTEL_conservative_rasterization 682bf215546Sopenharmony_ci [ "CONSERVATIVE_RASTERIZATION_INTEL", "CONTEXT_BOOL(IntelConservativeRasterization), extra_INTEL_conservative_rasterization" ], 683bf215546Sopenharmony_ci 684bf215546Sopenharmony_ci# GL_NV_viewport_swizzle 685bf215546Sopenharmony_ci [ "VIEWPORT_SWIZZLE_X_NV", "LOC_CUSTOM, TYPE_ENUM, 0, extra_NV_viewport_swizzle" ], 686bf215546Sopenharmony_ci [ "VIEWPORT_SWIZZLE_Y_NV", "LOC_CUSTOM, TYPE_ENUM, 0, extra_NV_viewport_swizzle" ], 687bf215546Sopenharmony_ci [ "VIEWPORT_SWIZZLE_Z_NV", "LOC_CUSTOM, TYPE_ENUM, 0, extra_NV_viewport_swizzle" ], 688bf215546Sopenharmony_ci [ "VIEWPORT_SWIZZLE_W_NV", "LOC_CUSTOM, TYPE_ENUM, 0, extra_NV_viewport_swizzle" ], 689bf215546Sopenharmony_ci]}, 690bf215546Sopenharmony_ci 691bf215546Sopenharmony_ci# Enums in OpenGL and ES 3.2 692bf215546Sopenharmony_ci{ "apis": ["GL", "GL_CORE", "GLES32"], "params": [ 693bf215546Sopenharmony_ci [ "MULTISAMPLE_LINE_WIDTH_RANGE_ARB", "CONTEXT_FLOAT2(Const.MinLineWidthAA), extra_ES32" ], 694bf215546Sopenharmony_ci [ "MULTISAMPLE_LINE_WIDTH_GRANULARITY_ARB", "CONTEXT_FLOAT(Const.LineWidthGranularity), extra_ES32" ], 695bf215546Sopenharmony_ci 696bf215546Sopenharmony_ci# GL 3.0 or ES 3.2 697bf215546Sopenharmony_ci [ "CONTEXT_FLAGS", "CONTEXT_INT(Const.ContextFlags), extra_version_30" ], 698bf215546Sopenharmony_ci]}, 699bf215546Sopenharmony_ci 700bf215546Sopenharmony_ci# Remaining enums are only in OpenGL 701bf215546Sopenharmony_ci{ "apis": ["GL", "GL_CORE"], "params": [ 702bf215546Sopenharmony_ci [ "ACCUM_RED_BITS", "BUFFER_INT(Visual.accumRedBits), NO_EXTRA" ], 703bf215546Sopenharmony_ci [ "ACCUM_GREEN_BITS", "BUFFER_INT(Visual.accumGreenBits), NO_EXTRA" ], 704bf215546Sopenharmony_ci [ "ACCUM_BLUE_BITS", "BUFFER_INT(Visual.accumBlueBits), NO_EXTRA" ], 705bf215546Sopenharmony_ci [ "ACCUM_ALPHA_BITS", "BUFFER_INT(Visual.accumAlphaBits), NO_EXTRA" ], 706bf215546Sopenharmony_ci [ "ACCUM_CLEAR_VALUE", "CONTEXT_FIELD(Accum.ClearColor[0], TYPE_FLOATN_4), NO_EXTRA" ], 707bf215546Sopenharmony_ci [ "ALPHA_BIAS", "CONTEXT_FLOAT(Pixel.AlphaBias), NO_EXTRA" ], 708bf215546Sopenharmony_ci [ "ALPHA_SCALE", "CONTEXT_FLOAT(Pixel.AlphaScale), NO_EXTRA" ], 709bf215546Sopenharmony_ci [ "ATTRIB_STACK_DEPTH", "CONTEXT_INT(AttribStackDepth), NO_EXTRA" ], 710bf215546Sopenharmony_ci [ "AUTO_NORMAL", "CONTEXT_BOOL(Eval.AutoNormal), NO_EXTRA" ], 711bf215546Sopenharmony_ci [ "AUX_BUFFERS", "CONST(0), NO_EXTRA" ], 712bf215546Sopenharmony_ci [ "BLUE_BIAS", "CONTEXT_FLOAT(Pixel.BlueBias), NO_EXTRA" ], 713bf215546Sopenharmony_ci [ "BLUE_SCALE", "CONTEXT_FLOAT(Pixel.BlueScale), NO_EXTRA" ], 714bf215546Sopenharmony_ci [ "CLIENT_ATTRIB_STACK_DEPTH", "CONTEXT_INT(ClientAttribStackDepth), NO_EXTRA" ], 715bf215546Sopenharmony_ci [ "COLOR_MATERIAL_FACE", "CONTEXT_ENUM16(Light.ColorMaterialFace), NO_EXTRA" ], 716bf215546Sopenharmony_ci [ "COLOR_MATERIAL_PARAMETER", "CONTEXT_ENUM16(Light.ColorMaterialMode), NO_EXTRA" ], 717bf215546Sopenharmony_ci [ "CURRENT_INDEX", "CONTEXT_FLOAT(Current.Attrib[VERT_ATTRIB_COLOR_INDEX][0]), extra_flush_current" ], 718bf215546Sopenharmony_ci [ "CURRENT_RASTER_COLOR", "CONTEXT_FIELD(Current.RasterColor[0], TYPE_FLOATN_4), NO_EXTRA" ], 719bf215546Sopenharmony_ci [ "CURRENT_RASTER_DISTANCE", "CONTEXT_FLOAT(Current.RasterDistance), NO_EXTRA" ], 720bf215546Sopenharmony_ci [ "CURRENT_RASTER_INDEX", "CONST(1), NO_EXTRA" ], 721bf215546Sopenharmony_ci [ "CURRENT_RASTER_POSITION", "CONTEXT_FLOAT4(Current.RasterPos[0]), NO_EXTRA" ], 722bf215546Sopenharmony_ci [ "CURRENT_RASTER_SECONDARY_COLOR", "CONTEXT_FIELD(Current.RasterSecondaryColor[0], TYPE_FLOATN_4), NO_EXTRA" ], 723bf215546Sopenharmony_ci [ "CURRENT_RASTER_TEXTURE_COORDS", "LOC_CUSTOM, TYPE_FLOAT_4, 0, extra_valid_texture_unit" ], 724bf215546Sopenharmony_ci [ "CURRENT_RASTER_POSITION_VALID", "CONTEXT_BOOL(Current.RasterPosValid), NO_EXTRA" ], 725bf215546Sopenharmony_ci [ "DEPTH_BIAS", "CONTEXT_FLOAT(Pixel.DepthBias), NO_EXTRA" ], 726bf215546Sopenharmony_ci [ "DEPTH_SCALE", "CONTEXT_FLOAT(Pixel.DepthScale), NO_EXTRA" ], 727bf215546Sopenharmony_ci [ "DOUBLEBUFFER", "BUFFER_INT(Visual.doubleBufferMode), NO_EXTRA" ], 728bf215546Sopenharmony_ci [ "DRAW_BUFFER", "BUFFER_ENUM16(ColorDrawBuffer[0]), NO_EXTRA" ], 729bf215546Sopenharmony_ci [ "EDGE_FLAG", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_flush_current" ], 730bf215546Sopenharmony_ci [ "FEEDBACK_BUFFER_SIZE", "CONTEXT_INT(Feedback.BufferSize), NO_EXTRA" ], 731bf215546Sopenharmony_ci [ "FEEDBACK_BUFFER_TYPE", "CONTEXT_ENUM16(Feedback.Type), NO_EXTRA" ], 732bf215546Sopenharmony_ci [ "FOG_INDEX", "CONTEXT_FLOAT(Fog.Index), NO_EXTRA" ], 733bf215546Sopenharmony_ci [ "GREEN_BIAS", "CONTEXT_FLOAT(Pixel.GreenBias), NO_EXTRA" ], 734bf215546Sopenharmony_ci [ "GREEN_SCALE", "CONTEXT_FLOAT(Pixel.GreenScale), NO_EXTRA" ], 735bf215546Sopenharmony_ci [ "INDEX_BITS", "CONST(0), NO_EXTRA" ], 736bf215546Sopenharmony_ci [ "INDEX_CLEAR_VALUE", "CONTEXT_INT(Color.ClearIndex), NO_EXTRA" ], 737bf215546Sopenharmony_ci [ "INDEX_MODE", "CONST(0) , NO_EXTRA" ], 738bf215546Sopenharmony_ci [ "INDEX_OFFSET", "CONTEXT_INT(Pixel.IndexOffset), NO_EXTRA" ], 739bf215546Sopenharmony_ci [ "INDEX_SHIFT", "CONTEXT_INT(Pixel.IndexShift), NO_EXTRA" ], 740bf215546Sopenharmony_ci [ "INDEX_WRITEMASK", "CONTEXT_INT(Color.IndexMask), NO_EXTRA" ], 741bf215546Sopenharmony_ci [ "LIGHT_MODEL_COLOR_CONTROL", "CONTEXT_ENUM16(Light.Model.ColorControl), NO_EXTRA" ], 742bf215546Sopenharmony_ci [ "LIGHT_MODEL_LOCAL_VIEWER", "CONTEXT_BOOL(Light.Model.LocalViewer), NO_EXTRA" ], 743bf215546Sopenharmony_ci [ "LINE_STIPPLE", "CONTEXT_BOOL(Line.StippleFlag), NO_EXTRA" ], 744bf215546Sopenharmony_ci [ "LINE_STIPPLE_PATTERN", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 745bf215546Sopenharmony_ci [ "LINE_STIPPLE_REPEAT", "CONTEXT_INT(Line.StippleFactor), NO_EXTRA" ], 746bf215546Sopenharmony_ci [ "LINE_WIDTH_GRANULARITY", "CONTEXT_FLOAT(Const.LineWidthGranularity), NO_EXTRA" ], 747bf215546Sopenharmony_ci [ "LIST_BASE", "CONTEXT_INT(List.ListBase), NO_EXTRA" ], 748bf215546Sopenharmony_ci [ "LIST_INDEX", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 749bf215546Sopenharmony_ci [ "LIST_MODE", "LOC_CUSTOM, TYPE_ENUM16, 0, NO_EXTRA" ], 750bf215546Sopenharmony_ci [ "INDEX_LOGIC_OP", "CONTEXT_BOOL(Color.IndexLogicOpEnabled), NO_EXTRA" ], 751bf215546Sopenharmony_ci [ "MAP1_COLOR_4", "CONTEXT_BOOL(Eval.Map1Color4), NO_EXTRA" ], 752bf215546Sopenharmony_ci [ "MAP1_GRID_DOMAIN", "CONTEXT_FLOAT2(Eval.MapGrid1u1), NO_EXTRA" ], 753bf215546Sopenharmony_ci [ "MAP1_GRID_SEGMENTS", "CONTEXT_INT(Eval.MapGrid1un), NO_EXTRA" ], 754bf215546Sopenharmony_ci [ "MAP1_INDEX", "CONTEXT_BOOL(Eval.Map1Index), NO_EXTRA" ], 755bf215546Sopenharmony_ci [ "MAP1_NORMAL", "CONTEXT_BOOL(Eval.Map1Normal), NO_EXTRA" ], 756bf215546Sopenharmony_ci [ "MAP1_TEXTURE_COORD_1", "CONTEXT_BOOL(Eval.Map1TextureCoord1), NO_EXTRA" ], 757bf215546Sopenharmony_ci [ "MAP1_TEXTURE_COORD_2", "CONTEXT_BOOL(Eval.Map1TextureCoord2), NO_EXTRA" ], 758bf215546Sopenharmony_ci [ "MAP1_TEXTURE_COORD_3", "CONTEXT_BOOL(Eval.Map1TextureCoord3), NO_EXTRA" ], 759bf215546Sopenharmony_ci [ "MAP1_TEXTURE_COORD_4", "CONTEXT_BOOL(Eval.Map1TextureCoord4), NO_EXTRA" ], 760bf215546Sopenharmony_ci [ "MAP1_VERTEX_3", "CONTEXT_BOOL(Eval.Map1Vertex3), NO_EXTRA" ], 761bf215546Sopenharmony_ci [ "MAP1_VERTEX_4", "CONTEXT_BOOL(Eval.Map1Vertex4), NO_EXTRA" ], 762bf215546Sopenharmony_ci [ "MAP2_COLOR_4", "CONTEXT_BOOL(Eval.Map2Color4), NO_EXTRA" ], 763bf215546Sopenharmony_ci [ "MAP2_GRID_DOMAIN", "LOC_CUSTOM, TYPE_FLOAT_4, 0, NO_EXTRA" ], 764bf215546Sopenharmony_ci [ "MAP2_GRID_SEGMENTS", "CONTEXT_INT2(Eval.MapGrid2un), NO_EXTRA" ], 765bf215546Sopenharmony_ci [ "MAP2_INDEX", "CONTEXT_BOOL(Eval.Map2Index), NO_EXTRA" ], 766bf215546Sopenharmony_ci [ "MAP2_NORMAL", "CONTEXT_BOOL(Eval.Map2Normal), NO_EXTRA" ], 767bf215546Sopenharmony_ci [ "MAP2_TEXTURE_COORD_1", "CONTEXT_BOOL(Eval.Map2TextureCoord1), NO_EXTRA" ], 768bf215546Sopenharmony_ci [ "MAP2_TEXTURE_COORD_2", "CONTEXT_BOOL(Eval.Map2TextureCoord2), NO_EXTRA" ], 769bf215546Sopenharmony_ci [ "MAP2_TEXTURE_COORD_3", "CONTEXT_BOOL(Eval.Map2TextureCoord3), NO_EXTRA" ], 770bf215546Sopenharmony_ci [ "MAP2_TEXTURE_COORD_4", "CONTEXT_BOOL(Eval.Map2TextureCoord4), NO_EXTRA" ], 771bf215546Sopenharmony_ci [ "MAP2_VERTEX_3", "CONTEXT_BOOL(Eval.Map2Vertex3), NO_EXTRA" ], 772bf215546Sopenharmony_ci [ "MAP2_VERTEX_4", "CONTEXT_BOOL(Eval.Map2Vertex4), NO_EXTRA" ], 773bf215546Sopenharmony_ci [ "MAP_COLOR", "CONTEXT_BOOL(Pixel.MapColorFlag), NO_EXTRA" ], 774bf215546Sopenharmony_ci [ "MAP_STENCIL", "CONTEXT_BOOL(Pixel.MapStencilFlag), NO_EXTRA" ], 775bf215546Sopenharmony_ci [ "MAX_ATTRIB_STACK_DEPTH", "CONST(MAX_ATTRIB_STACK_DEPTH), NO_EXTRA" ], 776bf215546Sopenharmony_ci [ "MAX_CLIENT_ATTRIB_STACK_DEPTH", "CONST(MAX_CLIENT_ATTRIB_STACK_DEPTH), NO_EXTRA" ], 777bf215546Sopenharmony_ci [ "MAX_EVAL_ORDER", "CONST(MAX_EVAL_ORDER), NO_EXTRA" ], 778bf215546Sopenharmony_ci [ "MAX_LIST_NESTING", "CONST(MAX_LIST_NESTING), NO_EXTRA" ], 779bf215546Sopenharmony_ci [ "MAX_NAME_STACK_DEPTH", "CONST(MAX_NAME_STACK_DEPTH), NO_EXTRA" ], 780bf215546Sopenharmony_ci [ "MAX_PIXEL_MAP_TABLE", "CONST(MAX_PIXEL_MAP_TABLE), NO_EXTRA" ], 781bf215546Sopenharmony_ci [ "NAME_STACK_DEPTH", "CONTEXT_INT(Select.NameStackDepth), NO_EXTRA" ], 782bf215546Sopenharmony_ci [ "PACK_LSB_FIRST", "CONTEXT_BOOL(Pack.LsbFirst), NO_EXTRA" ], 783bf215546Sopenharmony_ci [ "PACK_SWAP_BYTES", "CONTEXT_BOOL(Pack.SwapBytes), NO_EXTRA" ], 784bf215546Sopenharmony_ci [ "PACK_INVERT_MESA", "CONTEXT_BOOL(Pack.Invert), NO_EXTRA" ], 785bf215546Sopenharmony_ci [ "PIXEL_MAP_A_TO_A_SIZE", "CONTEXT_INT(PixelMaps.AtoA.Size), NO_EXTRA" ], 786bf215546Sopenharmony_ci [ "PIXEL_MAP_B_TO_B_SIZE", "CONTEXT_INT(PixelMaps.BtoB.Size), NO_EXTRA" ], 787bf215546Sopenharmony_ci [ "PIXEL_MAP_G_TO_G_SIZE", "CONTEXT_INT(PixelMaps.GtoG.Size), NO_EXTRA" ], 788bf215546Sopenharmony_ci [ "PIXEL_MAP_I_TO_A_SIZE", "CONTEXT_INT(PixelMaps.ItoA.Size), NO_EXTRA" ], 789bf215546Sopenharmony_ci [ "PIXEL_MAP_I_TO_B_SIZE", "CONTEXT_INT(PixelMaps.ItoB.Size), NO_EXTRA" ], 790bf215546Sopenharmony_ci [ "PIXEL_MAP_I_TO_G_SIZE", "CONTEXT_INT(PixelMaps.ItoG.Size), NO_EXTRA" ], 791bf215546Sopenharmony_ci [ "PIXEL_MAP_I_TO_I_SIZE", "CONTEXT_INT(PixelMaps.ItoI.Size), NO_EXTRA" ], 792bf215546Sopenharmony_ci [ "PIXEL_MAP_I_TO_R_SIZE", "CONTEXT_INT(PixelMaps.ItoR.Size), NO_EXTRA" ], 793bf215546Sopenharmony_ci [ "PIXEL_MAP_R_TO_R_SIZE", "CONTEXT_INT(PixelMaps.RtoR.Size), NO_EXTRA" ], 794bf215546Sopenharmony_ci [ "PIXEL_MAP_S_TO_S_SIZE", "CONTEXT_INT(PixelMaps.StoS.Size), NO_EXTRA" ], 795bf215546Sopenharmony_ci [ "POINT_SIZE_GRANULARITY", "CONTEXT_FLOAT(Const.PointSizeGranularity), NO_EXTRA" ], 796bf215546Sopenharmony_ci [ "POLYGON_MODE", "CONTEXT_ENUM2(Polygon.FrontMode), NO_EXTRA" ], 797bf215546Sopenharmony_ci [ "POLYGON_OFFSET_POINT", "CONTEXT_BOOL(Polygon.OffsetPoint), NO_EXTRA" ], 798bf215546Sopenharmony_ci [ "POLYGON_OFFSET_LINE", "CONTEXT_BOOL(Polygon.OffsetLine), NO_EXTRA" ], 799bf215546Sopenharmony_ci [ "POLYGON_SMOOTH", "CONTEXT_BOOL(Polygon.SmoothFlag), NO_EXTRA" ], 800bf215546Sopenharmony_ci [ "POLYGON_SMOOTH_HINT", "CONTEXT_ENUM16(Hint.PolygonSmooth), NO_EXTRA" ], 801bf215546Sopenharmony_ci [ "POLYGON_STIPPLE", "CONTEXT_BOOL(Polygon.StippleFlag), NO_EXTRA" ], 802bf215546Sopenharmony_ci [ "RED_BIAS", "CONTEXT_FLOAT(Pixel.RedBias), NO_EXTRA" ], 803bf215546Sopenharmony_ci [ "RED_SCALE", "CONTEXT_FLOAT(Pixel.RedScale), NO_EXTRA" ], 804bf215546Sopenharmony_ci [ "RENDER_MODE", "CONTEXT_ENUM16(RenderMode), NO_EXTRA" ], 805bf215546Sopenharmony_ci [ "RGBA_MODE", "CONST(1), NO_EXTRA" ], 806bf215546Sopenharmony_ci [ "SELECTION_BUFFER_SIZE", "CONTEXT_INT(Select.BufferSize), NO_EXTRA" ], 807bf215546Sopenharmony_ci [ "STEREO", "BUFFER_INT(Visual.stereoMode), NO_EXTRA" ], 808bf215546Sopenharmony_ci [ "TEXTURE_1D", "LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA" ], 809bf215546Sopenharmony_ci [ "TEXTURE_3D", "LOC_CUSTOM, TYPE_BOOLEAN, NO_OFFSET, NO_EXTRA" ], 810bf215546Sopenharmony_ci [ "TEXTURE_BINDING_1D", "LOC_CUSTOM, TYPE_INT, TEXTURE_1D_INDEX, NO_EXTRA" ], 811bf215546Sopenharmony_ci [ "TEXTURE_BINDING_1D_ARRAY", "LOC_CUSTOM, TYPE_INT, TEXTURE_1D_ARRAY_INDEX, extra_EXT_texture_array" ], 812bf215546Sopenharmony_ci [ "TEXTURE_GEN_S", "LOC_TEXUNIT, TYPE_BIT_0, offsetof(struct gl_fixedfunc_texture_unit, TexGenEnabled), NO_EXTRA" ], 813bf215546Sopenharmony_ci [ "TEXTURE_GEN_T", "LOC_TEXUNIT, TYPE_BIT_1, offsetof(struct gl_fixedfunc_texture_unit, TexGenEnabled), NO_EXTRA" ], 814bf215546Sopenharmony_ci [ "TEXTURE_GEN_R", "LOC_TEXUNIT, TYPE_BIT_2, offsetof(struct gl_fixedfunc_texture_unit, TexGenEnabled), NO_EXTRA" ], 815bf215546Sopenharmony_ci [ "TEXTURE_GEN_Q", "LOC_TEXUNIT, TYPE_BIT_3, offsetof(struct gl_fixedfunc_texture_unit, TexGenEnabled), NO_EXTRA" ], 816bf215546Sopenharmony_ci [ "UNPACK_LSB_FIRST", "CONTEXT_BOOL(Unpack.LsbFirst), NO_EXTRA" ], 817bf215546Sopenharmony_ci [ "UNPACK_SWAP_BYTES", "CONTEXT_BOOL(Unpack.SwapBytes), NO_EXTRA" ], 818bf215546Sopenharmony_ci [ "ZOOM_X", "CONTEXT_FLOAT(Pixel.ZoomX), NO_EXTRA" ], 819bf215546Sopenharmony_ci [ "ZOOM_Y", "CONTEXT_FLOAT(Pixel.ZoomY), NO_EXTRA" ], 820bf215546Sopenharmony_ci 821bf215546Sopenharmony_ci# Vertex arrays 822bf215546Sopenharmony_ci [ "VERTEX_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 823bf215546Sopenharmony_ci [ "NORMAL_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 824bf215546Sopenharmony_ci [ "COLOR_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 825bf215546Sopenharmony_ci [ "INDEX_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 826bf215546Sopenharmony_ci [ "INDEX_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Format.Type), NO_EXTRA" ], 827bf215546Sopenharmony_ci [ "INDEX_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_COLOR_INDEX].Stride), NO_EXTRA" ], 828bf215546Sopenharmony_ci [ "INDEX_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 829bf215546Sopenharmony_ci [ "TEXTURE_COORD_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 830bf215546Sopenharmony_ci [ "EDGE_FLAG_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 831bf215546Sopenharmony_ci [ "EDGE_FLAG_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_EDGEFLAG].Stride), NO_EXTRA" ], 832bf215546Sopenharmony_ci [ "EDGE_FLAG_ARRAY_COUNT_EXT", "CONST(0), NO_EXTRA" ], 833bf215546Sopenharmony_ci 834bf215546Sopenharmony_ci# GL_ARB_texture_compression 835bf215546Sopenharmony_ci [ "TEXTURE_COMPRESSION_HINT_ARB", "CONTEXT_ENUM16(Hint.TextureCompression), NO_EXTRA" ], 836bf215546Sopenharmony_ci 837bf215546Sopenharmony_ci# GL_EXT_compiled_vertex_array 838bf215546Sopenharmony_ci [ "ARRAY_ELEMENT_LOCK_FIRST_EXT", "CONTEXT_INT(Array.LockFirst), NO_EXTRA" ], 839bf215546Sopenharmony_ci [ "ARRAY_ELEMENT_LOCK_COUNT_EXT", "CONTEXT_INT(Array.LockCount), NO_EXTRA" ], 840bf215546Sopenharmony_ci 841bf215546Sopenharmony_ci# GL_ARB_compressed_texture_pixel_storage 842bf215546Sopenharmony_ci [ "UNPACK_COMPRESSED_BLOCK_WIDTH", "CONTEXT_INT(Unpack.CompressedBlockWidth), NO_EXTRA" ], 843bf215546Sopenharmony_ci [ "UNPACK_COMPRESSED_BLOCK_HEIGHT", "CONTEXT_INT(Unpack.CompressedBlockHeight), NO_EXTRA" ], 844bf215546Sopenharmony_ci [ "UNPACK_COMPRESSED_BLOCK_DEPTH", "CONTEXT_INT(Unpack.CompressedBlockDepth), NO_EXTRA" ], 845bf215546Sopenharmony_ci [ "UNPACK_COMPRESSED_BLOCK_SIZE", "CONTEXT_INT(Unpack.CompressedBlockSize), NO_EXTRA" ], 846bf215546Sopenharmony_ci [ "PACK_COMPRESSED_BLOCK_WIDTH", "CONTEXT_INT(Pack.CompressedBlockWidth), NO_EXTRA" ], 847bf215546Sopenharmony_ci [ "PACK_COMPRESSED_BLOCK_HEIGHT", "CONTEXT_INT(Pack.CompressedBlockHeight), NO_EXTRA" ], 848bf215546Sopenharmony_ci [ "PACK_COMPRESSED_BLOCK_DEPTH", "CONTEXT_INT(Pack.CompressedBlockDepth), NO_EXTRA" ], 849bf215546Sopenharmony_ci [ "PACK_COMPRESSED_BLOCK_SIZE", "CONTEXT_INT(Pack.CompressedBlockSize), NO_EXTRA" ], 850bf215546Sopenharmony_ci 851bf215546Sopenharmony_ci# GL_ARB_transpose_matrix 852bf215546Sopenharmony_ci [ "TRANSPOSE_MODELVIEW_MATRIX_ARB", "CONTEXT_MATRIX_T(ModelviewMatrixStack), NO_EXTRA" ], 853bf215546Sopenharmony_ci [ "TRANSPOSE_PROJECTION_MATRIX_ARB", "CONTEXT_MATRIX_T(ProjectionMatrixStack.Top), NO_EXTRA" ], 854bf215546Sopenharmony_ci [ "TRANSPOSE_TEXTURE_MATRIX_ARB", "CONTEXT_MATRIX_T(TextureMatrixStack), NO_EXTRA" ], 855bf215546Sopenharmony_ci 856bf215546Sopenharmony_ci# GL_EXT_secondary_color 857bf215546Sopenharmony_ci [ "COLOR_SUM", "CONTEXT_BOOL(Fog.ColorSumEnabled), NO_EXTRA" ], 858bf215546Sopenharmony_ci [ "CURRENT_SECONDARY_COLOR", "CONTEXT_FIELD(Current.Attrib[VERT_ATTRIB_COLOR1][0], TYPE_FLOATN_4), extra_flush_current" ], 859bf215546Sopenharmony_ci [ "SECONDARY_COLOR_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 860bf215546Sopenharmony_ci [ "SECONDARY_COLOR_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_COLOR1].Format.Type), NO_EXTRA" ], 861bf215546Sopenharmony_ci [ "SECONDARY_COLOR_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_COLOR1].Stride), NO_EXTRA" ], 862bf215546Sopenharmony_ci [ "SECONDARY_COLOR_ARRAY_SIZE", "LOC_CUSTOM, TYPE_INT, 0, NO_EXTRA" ], 863bf215546Sopenharmony_ci 864bf215546Sopenharmony_ci# GL_EXT_fog_coord 865bf215546Sopenharmony_ci [ "CURRENT_FOG_COORDINATE", "CONTEXT_FLOAT(Current.Attrib[VERT_ATTRIB_FOG][0]), extra_flush_current" ], 866bf215546Sopenharmony_ci [ "FOG_COORDINATE_ARRAY", "LOC_CUSTOM, TYPE_BOOLEAN, 0, NO_EXTRA" ], 867bf215546Sopenharmony_ci [ "FOG_COORDINATE_ARRAY_TYPE", "ARRAY_ENUM16(VertexAttrib[VERT_ATTRIB_FOG].Format.Type), NO_EXTRA" ], 868bf215546Sopenharmony_ci [ "FOG_COORDINATE_ARRAY_STRIDE", "ARRAY_SHORT(VertexAttrib[VERT_ATTRIB_FOG].Stride), NO_EXTRA" ], 869bf215546Sopenharmony_ci [ "FOG_COORDINATE_SOURCE", "CONTEXT_ENUM16(Fog.FogCoordinateSource), NO_EXTRA" ], 870bf215546Sopenharmony_ci 871bf215546Sopenharmony_ci# GL_NV_fog_distance 872bf215546Sopenharmony_ci [ "FOG_DISTANCE_MODE_NV", "CONTEXT_ENUM16(Fog.FogDistanceMode), extra_NV_fog_distance" ], 873bf215546Sopenharmony_ci 874bf215546Sopenharmony_ci# GL_IBM_rasterpos_clip 875bf215546Sopenharmony_ci [ "RASTER_POSITION_UNCLIPPED_IBM", "CONTEXT_BOOL(Transform.RasterPositionUnclipped), NO_EXTRA" ], 876bf215546Sopenharmony_ci 877bf215546Sopenharmony_ci# GL_ARB_point_sprite 878bf215546Sopenharmony_ci [ "POINT_SPRITE_COORD_ORIGIN", "CONTEXT_ENUM16(Point.SpriteOrigin), extra_ARB_point_sprite" ], 879bf215546Sopenharmony_ci 880bf215546Sopenharmony_ci# GL_NV_texture_rectangle 881bf215546Sopenharmony_ci [ "TEXTURE_RECTANGLE_NV", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_NV_texture_rectangle" ], 882bf215546Sopenharmony_ci [ "TEXTURE_BINDING_RECTANGLE_NV", "LOC_CUSTOM, TYPE_INT, TEXTURE_RECT_INDEX, extra_NV_texture_rectangle" ], 883bf215546Sopenharmony_ci [ "MAX_RECTANGLE_TEXTURE_SIZE_NV", "CONTEXT_INT(Const.MaxTextureRectSize), extra_NV_texture_rectangle" ], 884bf215546Sopenharmony_ci 885bf215546Sopenharmony_ci# GL_EXT_stencil_two_side 886bf215546Sopenharmony_ci [ "STENCIL_TEST_TWO_SIDE_EXT", "CONTEXT_BOOL(Stencil.TestTwoSide), extra_EXT_stencil_two_side" ], 887bf215546Sopenharmony_ci [ "ACTIVE_STENCIL_FACE_EXT", "LOC_CUSTOM, TYPE_ENUM16, NO_OFFSET, NO_EXTRA" ], 888bf215546Sopenharmony_ci 889bf215546Sopenharmony_ci# GL_NV_light_max_exponent 890bf215546Sopenharmony_ci [ "MAX_SHININESS_NV", "CONTEXT_FLOAT(Const.MaxShininess), NO_EXTRA" ], 891bf215546Sopenharmony_ci [ "MAX_SPOT_EXPONENT_NV", "CONTEXT_FLOAT(Const.MaxSpotExponent), NO_EXTRA" ], 892bf215546Sopenharmony_ci 893bf215546Sopenharmony_ci# GL_NV_primitive_restart 894bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART_NV", "CONTEXT_BOOL(Array.PrimitiveRestart), extra_NV_primitive_restart" ], 895bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART_INDEX_NV", "CONTEXT_INT(Array.RestartIndex), extra_NV_primitive_restart" ], 896bf215546Sopenharmony_ci 897bf215546Sopenharmony_ci# GL_ARB_vertex_buffer_object 898bf215546Sopenharmony_ci [ "INDEX_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR_INDEX].BufferObj), NO_EXTRA" ], 899bf215546Sopenharmony_ci [ "EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_EDGEFLAG].BufferObj), NO_EXTRA" ], 900bf215546Sopenharmony_ci [ "SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_COLOR1].BufferObj), NO_EXTRA" ], 901bf215546Sopenharmony_ci [ "FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, offsetof(struct gl_vertex_array_object, BufferBinding[VERT_ATTRIB_FOG].BufferObj), NO_EXTRA" ], 902bf215546Sopenharmony_ci 903bf215546Sopenharmony_ci# GL_ARB_vertex_program 904bf215546Sopenharmony_ci# == GL_VERTEX_PROGRAM_NV 905bf215546Sopenharmony_ci [ "VERTEX_PROGRAM_ARB", "CONTEXT_BOOL(VertexProgram.Enabled), extra_ARB_vertex_program" ], 906bf215546Sopenharmony_ci# == GL_VERTEX_PROGRAM_POINT_SIZE_NV 907bf215546Sopenharmony_ci [ "VERTEX_PROGRAM_POINT_SIZE_ARB", "CONTEXT_BOOL(VertexProgram.PointSizeEnabled), extra_ARB_vertex_program" ], 908bf215546Sopenharmony_ci# == GL_VERTEX_PROGRAM_TWO_SIDE_NV 909bf215546Sopenharmony_ci [ "VERTEX_PROGRAM_TWO_SIDE_ARB", "CONTEXT_BOOL(VertexProgram.TwoSideEnabled), extra_ARB_vertex_program" ], 910bf215546Sopenharmony_ci# == GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 911bf215546Sopenharmony_ci [ "MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB", "CONTEXT_INT(Const.MaxProgramMatrixStackDepth), extra_ARB_vertex_program_ARB_fragment_program" ], 912bf215546Sopenharmony_ci# == GL_MAX_TRACK_MATRICES_NV 913bf215546Sopenharmony_ci [ "MAX_PROGRAM_MATRICES_ARB", "CONTEXT_INT(Const.MaxProgramMatrices), extra_ARB_vertex_program_ARB_fragment_program" ], 914bf215546Sopenharmony_ci# == GL_CURRENT_MATRIX_STACK_DEPTH_NV 915bf215546Sopenharmony_ci [ "CURRENT_MATRIX_STACK_DEPTH_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_vertex_program_ARB_fragment_program" ], 916bf215546Sopenharmony_ci# == GL_CURRENT_MATRIX_NV 917bf215546Sopenharmony_ci [ "CURRENT_MATRIX_ARB", "LOC_CUSTOM, TYPE_MATRIX, 0, extra_ARB_vertex_program_ARB_fragment_program" ], 918bf215546Sopenharmony_ci# == GL_CURRENT_MATRIX_NV 919bf215546Sopenharmony_ci [ "TRANSPOSE_CURRENT_MATRIX_ARB", "LOC_CUSTOM, TYPE_MATRIX_T, 0, extra_ARB_vertex_program_ARB_fragment_program" ], 920bf215546Sopenharmony_ci# == GL_PROGRAM_ERROR_POSITION_NV 921bf215546Sopenharmony_ci [ "PROGRAM_ERROR_POSITION_ARB", "CONTEXT_INT(Program.ErrorPos), extra_ARB_vertex_program_ARB_fragment_program" ], 922bf215546Sopenharmony_ci 923bf215546Sopenharmony_ci# GL_ARB_fragment_program 924bf215546Sopenharmony_ci [ "FRAGMENT_PROGRAM_ARB", "CONTEXT_BOOL(FragmentProgram.Enabled), extra_ARB_fragment_program" ], 925bf215546Sopenharmony_ci 926bf215546Sopenharmony_ci# GL_EXT_packed_float 927bf215546Sopenharmony_ci [ "RGBA_SIGNED_COMPONENTS_EXT", "LOC_CUSTOM, TYPE_INT_4, 0, extra_EXT_packed_float" ], 928bf215546Sopenharmony_ci 929bf215546Sopenharmony_ci# GL_EXT_depth_bounds_test 930bf215546Sopenharmony_ci [ "DEPTH_BOUNDS_TEST_EXT", "CONTEXT_BOOL(Depth.BoundsTest), extra_EXT_depth_bounds_test" ], 931bf215546Sopenharmony_ci [ "DEPTH_BOUNDS_EXT", "CONTEXT_FLOAT2(Depth.BoundsMin), extra_EXT_depth_bounds_test" ], 932bf215546Sopenharmony_ci 933bf215546Sopenharmony_ci# GL_ARB_depth_clamp 934bf215546Sopenharmony_ci [ "DEPTH_CLAMP", "LOC_CUSTOM, TYPE_BOOLEAN, 0, extra_ARB_depth_clamp" ], 935bf215546Sopenharmony_ci 936bf215546Sopenharmony_ci# GL_ATI_fragment_shader 937bf215546Sopenharmony_ci [ "FRAGMENT_SHADER_ATI", "CONTEXT_BOOL(ATIFragmentShader.Enabled), extra_ATI_fragment_shader" ], 938bf215546Sopenharmony_ci [ "NUM_FRAGMENT_REGISTERS_ATI", "CONST(6), extra_ATI_fragment_shader" ], 939bf215546Sopenharmony_ci [ "NUM_FRAGMENT_CONSTANTS_ATI", "CONST(8), extra_ATI_fragment_shader" ], 940bf215546Sopenharmony_ci [ "NUM_PASSES_ATI", "CONST(2), extra_ATI_fragment_shader" ], 941bf215546Sopenharmony_ci [ "NUM_INSTRUCTIONS_PER_PASS_ATI", "CONST(8), extra_ATI_fragment_shader" ], 942bf215546Sopenharmony_ci [ "NUM_INSTRUCTIONS_TOTAL_ATI", "CONST(16), extra_ATI_fragment_shader" ], 943bf215546Sopenharmony_ci [ "COLOR_ALPHA_PAIRING_ATI", "CONST(GL_TRUE), extra_ATI_fragment_shader" ], 944bf215546Sopenharmony_ci [ "NUM_LOOPBACK_COMPONENTS_ATI", "CONST(3), extra_ATI_fragment_shader" ], 945bf215546Sopenharmony_ci [ "NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI", "CONST(3), extra_ATI_fragment_shader" ], 946bf215546Sopenharmony_ci 947bf215546Sopenharmony_ci# GL_EXT_provoking_vertex 948bf215546Sopenharmony_ci [ "PROVOKING_VERTEX_EXT", "CONTEXT_ENUM16(Light.ProvokingVertex), extra_EXT_provoking_vertex" ], 949bf215546Sopenharmony_ci [ "QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT", "CONTEXT_BOOL(Const.QuadsFollowProvokingVertexConvention), extra_EXT_provoking_vertex_32" ], 950bf215546Sopenharmony_ci 951bf215546Sopenharmony_ci# GL_ARB_seamless_cube_map 952bf215546Sopenharmony_ci [ "TEXTURE_CUBE_MAP_SEAMLESS", "CONTEXT_BOOL(Texture.CubeMapSeamless), extra_ARB_seamless_cube_map" ], 953bf215546Sopenharmony_ci 954bf215546Sopenharmony_ci# GL_EXT_texture_integer 955bf215546Sopenharmony_ci [ "RGBA_INTEGER_MODE_EXT", "LOC_CUSTOM, TYPE_INT, 0, extra_EXT_texture_integer_and_new_buffers" ], 956bf215546Sopenharmony_ci 957bf215546Sopenharmony_ci# GL_ARB_transform_feedback3 958bf215546Sopenharmony_ci [ "MAX_TRANSFORM_FEEDBACK_BUFFERS", "CONTEXT_INT(Const.MaxTransformFeedbackBuffers), extra_ARB_transform_feedback3" ], 959bf215546Sopenharmony_ci [ "MAX_VERTEX_STREAMS", "CONTEXT_INT(Const.MaxVertexStreams), extra_ARB_transform_feedback3_ARB_gpu_shader5" ], 960bf215546Sopenharmony_ci 961bf215546Sopenharmony_ci# GL_ARB_color_buffer_float 962bf215546Sopenharmony_ci [ "RGBA_FLOAT_MODE_ARB", "BUFFER_FIELD(Visual.floatMode, TYPE_BOOLEAN), extra_core_ARB_color_buffer_float_and_new_buffers" ], 963bf215546Sopenharmony_ci 964bf215546Sopenharmony_ci# GL_ARB_sparse_texture 965bf215546Sopenharmony_ci [ "MAX_SPARSE_TEXTURE_SIZE_ARB", "CONTEXT_INT(Const.MaxSparseTextureSize), extra_ARB_sparse_texture" ], 966bf215546Sopenharmony_ci [ "MAX_SPARSE_3D_TEXTURE_SIZE_ARB", "CONTEXT_INT(Const.MaxSparse3DTextureSize), extra_ARB_sparse_texture" ], 967bf215546Sopenharmony_ci [ "MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB", "CONTEXT_INT(Const.MaxSparseArrayTextureLayers), extra_ARB_sparse_texture" ], 968bf215546Sopenharmony_ci [ "SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB", "CONTEXT_BOOL(Const.SparseTextureFullArrayCubeMipmaps), extra_ARB_sparse_texture" ], 969bf215546Sopenharmony_ci 970bf215546Sopenharmony_ci# GL3.0 / GL_EXT_framebuffer_sRGB 971bf215546Sopenharmony_ci [ "FRAMEBUFFER_SRGB_CAPABLE_EXT", "BUFFER_INT(Visual.sRGBCapable), extra_EXT_framebuffer_sRGB_and_new_buffers" ], 972bf215546Sopenharmony_ci 973bf215546Sopenharmony_ci# GL 3.1 974bf215546Sopenharmony_ci# NOTE: different enum values for GL_PRIMITIVE_RESTART_NV 975bf215546Sopenharmony_ci# vs. GL_PRIMITIVE_RESTART! 976bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART", "CONTEXT_BOOL(Array.PrimitiveRestart), extra_version_31" ], 977bf215546Sopenharmony_ci [ "PRIMITIVE_RESTART_INDEX", "CONTEXT_INT(Array.RestartIndex), extra_version_31" ], 978bf215546Sopenharmony_ci 979bf215546Sopenharmony_ci# GL 3.2 980bf215546Sopenharmony_ci [ "CONTEXT_PROFILE_MASK", "CONTEXT_INT(Const.ProfileMask), extra_version_32" ], 981bf215546Sopenharmony_ci 982bf215546Sopenharmony_ci# GL_ARB_map_buffer_alignment 983bf215546Sopenharmony_ci [ "MIN_MAP_BUFFER_ALIGNMENT", "CONTEXT_INT(Const.MinMapBufferAlignment), NO_EXTRA" ], 984bf215546Sopenharmony_ci 985bf215546Sopenharmony_ci# GL_ARB_texture_gather 986bf215546Sopenharmony_ci [ "MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB", "CONTEXT_INT(Const.MaxProgramTextureGatherComponents), extra_ARB_texture_gather"], 987bf215546Sopenharmony_ci 988bf215546Sopenharmony_ci# GL_ARB_shader_image_load_store 989bf215546Sopenharmony_ci [ "MAX_IMAGE_SAMPLES", "CONTEXT_INT(Const.MaxImageSamples), extra_ARB_shader_image_load_store" ], 990bf215546Sopenharmony_ci 991bf215546Sopenharmony_ci# GL_ARB_query_buffer_object 992bf215546Sopenharmony_ci [ "QUERY_BUFFER_BINDING", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_query_buffer_object" ], 993bf215546Sopenharmony_ci 994bf215546Sopenharmony_ci# GL_ATI_meminfo 995bf215546Sopenharmony_ci [ "VBO_FREE_MEMORY_ATI", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo" ], 996bf215546Sopenharmony_ci [ "TEXTURE_FREE_MEMORY_ATI", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo" ], 997bf215546Sopenharmony_ci [ "RENDERBUFFER_FREE_MEMORY_ATI", "LOC_CUSTOM, TYPE_INT_4, NO_OFFSET, extra_ATI_meminfo" ], 998bf215546Sopenharmony_ci 999bf215546Sopenharmony_ci# GL_NVX_gpu_memory_info 1000bf215546Sopenharmony_ci [ "GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], 1001bf215546Sopenharmony_ci [ "GPU_MEMORY_INFO_TOTAL_AVAILABLE_MEMORY_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], 1002bf215546Sopenharmony_ci [ "GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], 1003bf215546Sopenharmony_ci [ "GPU_MEMORY_INFO_EVICTION_COUNT_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], 1004bf215546Sopenharmony_ci [ "GPU_MEMORY_INFO_EVICTED_MEMORY_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], 1005bf215546Sopenharmony_ci 1006bf215546Sopenharmony_ci# GL_ARB_cull_distance 1007bf215546Sopenharmony_ci [ "MAX_CULL_DISTANCES", "CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance" ], 1008bf215546Sopenharmony_ci [ "MAX_COMBINED_CLIP_AND_CULL_DISTANCES", "CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance" ], 1009bf215546Sopenharmony_ci 1010bf215546Sopenharmony_ci# GL_ARB_compute_variable_group_size 1011bf215546Sopenharmony_ci [ "MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB", "CONTEXT_INT(Const.MaxComputeVariableGroupInvocations), extra_ARB_compute_variable_group_size" ], 1012bf215546Sopenharmony_ci 1013bf215546Sopenharmony_ci# GL_ARB_sparse_buffer 1014bf215546Sopenharmony_ci [ "SPARSE_BUFFER_PAGE_SIZE_ARB", "CONTEXT_INT(Const.SparseBufferPageSize), extra_ARB_sparse_buffer" ], 1015bf215546Sopenharmony_ci 1016bf215546Sopenharmony_ci# GL_ARB_shader_subroutine 1017bf215546Sopenharmony_ci [ "MAX_SUBROUTINES", "CONST(MAX_SUBROUTINES), NO_EXTRA" ], 1018bf215546Sopenharmony_ci [ "MAX_SUBROUTINE_UNIFORM_LOCATIONS", "CONST(MAX_SUBROUTINE_UNIFORM_LOCATIONS), NO_EXTRA" ], 1019bf215546Sopenharmony_ci 1020bf215546Sopenharmony_ci# GL_ARB_indirect_parameters 1021bf215546Sopenharmony_ci [ "PARAMETER_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_indirect_parameters" ], 1022bf215546Sopenharmony_ci 1023bf215546Sopenharmony_ci# GL 4.1 1024bf215546Sopenharmony_ci# GL_AMD_depth_clamp_separate 1025bf215546Sopenharmony_ci [ "DEPTH_CLAMP_NEAR_AMD", "CONTEXT_BOOL(Transform.DepthClampNear), extra_AMD_depth_clamp_separate" ], 1026bf215546Sopenharmony_ci [ "DEPTH_CLAMP_FAR_AMD", "CONTEXT_BOOL(Transform.DepthClampFar), extra_AMD_depth_clamp_separate" ], 1027bf215546Sopenharmony_ci]}, 1028bf215546Sopenharmony_ci 1029bf215546Sopenharmony_ci] 1030