mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
Currently, the set of functions which exist in GLES1 or GLES2 is determined by hardcoded lists of function names in gles_api.py. This patch encodes that information into the XML files using new attributes, es1 and es2. The es1 attribute denotes the first version of GLES 1 in which the function exists (e.g. es1="1.1" means the function exists in GLES 1.1 but not GLES 1.0). "none" (the default) means the function is not available in any version of GLES 1. The es2 attribute denotes the first version of GLES 2/3 in which the function exists (e.g. es2="2.0" means the function exists in both GLES 2.0 and GLES 3.0). "none" (the default) means the function is not available in any version of GLES 2 or GLES 3. Note that since GLES 3 is a strict superset of GLES 2, there is no need for a separate attribute for it; instead, 'es2="3.0"' should be used to denote functions that are present in GLES 3 but not GLES 2. This patch only adds information about GLES versions 1.0, 1.1, and 2.0. Later patches will modify the python code generation scripts to use this information rather than the hardcoded lists in gles_api.py. Tested-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
58 lines
2.5 KiB
XML
58 lines
2.5 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
|
|
|
|
<OpenGLAPI>
|
|
|
|
<category name="GL_ARB_ES2_compatibility" number="95">
|
|
<enum name="FIXED" count="1" value="0x140C"/>
|
|
<enum name="LOW_FLOAT" value="0x8DF0"/>
|
|
<enum name="MEDIUM_FLOAT" value="0x8DF1"/>
|
|
<enum name="HIGH_FLOAT" value="0x8DF2"/>
|
|
<enum name="LOW_INT" value="0x8DF3"/>
|
|
<enum name="MEDIUM_INT" value="0x8DF4"/>
|
|
<enum name="HIGH_INT" value="0x8DF5"/>
|
|
<enum name="SHADER_BINARY_FORMATS" value="0x8DF8"/>
|
|
<enum name="NUM_SHADER_BINARY_FORMATS" value="0x8DF9"/>
|
|
<enum name="SHADER_COMPILER" value="0x8DFA"/>
|
|
<enum name="MAX_VERTEX_UNIFORM_VECTORS" value="0x8DFB"/>
|
|
<enum name="MAX_VARYING_VECTORS" value="0x8DFC"/>
|
|
<enum name="MAX_FRAGMENT_UNIFORM_VECTORS" value="0x8DFD"/>
|
|
|
|
<function name="GetShaderPrecisionFormat" offset="assign" es2="2.0">
|
|
<param name="shadertype" type="GLenum"/>
|
|
<param name="precisiontype" type="GLenum"/>
|
|
<param name="range" type="GLint *"/>
|
|
<param name="precision" type="GLint *"/>
|
|
</function>
|
|
|
|
<function name="ReleaseShaderCompiler" offset="assign" es2="2.0">
|
|
</function>
|
|
|
|
<function name="ShaderBinary" offset="assign" es2="2.0">
|
|
<param name="n" type="GLsizei"/>
|
|
<param name="shaders" type="const GLuint *"/>
|
|
<param name="binaryformat" type="GLenum"/>
|
|
<param name="binary" type="const GLvoid *"/>
|
|
<param name="length" type="GLsizei"/>
|
|
</function>
|
|
|
|
<!-- from GL_OES_fixed_point -->
|
|
<enum name="FIXED" value="0x140C"/>
|
|
<type name="fixed" size="4" />
|
|
|
|
<!-- from GL_OES_read_format -->
|
|
<enum name="IMPLEMENTATION_COLOR_READ_TYPE" value="0x8B9A"/>
|
|
<enum name="IMPLEMENTATION_COLOR_READ_FORMAT" value="0x8B9B"/>
|
|
|
|
<!-- from GL_OES_single_precision -->
|
|
<function name="ClearDepthf" offset="assign" es1="1.0" es2="2.0">
|
|
<param name="depth" type="GLclampf"/>
|
|
</function>
|
|
|
|
<function name="DepthRangef" offset="assign" es1="1.0" es2="2.0">
|
|
<param name="zNear" type="GLclampf"/>
|
|
<param name="zFar" type="GLclampf"/>
|
|
</function>
|
|
</category>
|
|
|
|
</OpenGLAPI>
|