Some fixes for GLES2/GLES3 differences table

This commit is contained in:
Yuri Roubinsky
2019-11-01 20:16:36 +03:00
parent 8a0992cb80
commit b1f125ce3c

View File

@@ -124,49 +124,39 @@ that are not available or are have limited support in GLES2.
For a complete list of built-in GLSL functions see the :ref:`Shading Language doc <doc_shading_language>`.
+------------------------------------------------------------------------+--------------------------------------------------+
| Function | Note |
+========================================================================+==================================================+
| vec_type **modf** ( vec_type x, out vec_type i ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_int_type **floatBitsToInt** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_uint_type **floatBitsToUint** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **intBitsToFloat** ( vec_int_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **uintBitsToFloat** ( vec_uint_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| mat_type **outerProduct** ( vec_type, vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( sampler2D_type s, int lod ) | See workaround below |
+------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( samplerCube s, int lod ) | See workaround below |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **texture** ( sampler2D_type s, vec2 uv [, float bias] ) | **bias** not available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **texture** ( samplerCube s, vec3 uv [, float bias] ) | **bias** not available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProj** ( sampler2D_type s, vec3 uv [, float bias] ) | **bias** not available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProj** ( sampler2D_type s, vec4 uv [, float bias] ) | **bias** not available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureLod** ( sampler2D_type s, vec2 uv, float lod ) | Only available in vertex shader on some hardware |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureLod** ( samplerCube s, vec3 uv, float lod ) | Only available in vertex shader on some hardware |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProjLod** ( sampler2D_type s, vec3 uv, float lod ) | Only available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProjLod** ( sampler2D_type s, vec4 uv, float lod ) | Only available in vertex shader |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **texelFetch** ( sampler2D_type s, ivec2 uv, int lod ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **dFdx** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **dFdy** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **fwidth** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| Function | |
+=============================================================================================+==================================================+
| vec_type **modf** ( vec_type x, out vec_type i ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_int_type **floatBitsToInt** ( vec_type x ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_uint_type **floatBitsToUint** ( vec_type x ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **intBitsToFloat** ( vec_int_type x ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **uintBitsToFloat** ( vec_uint_type x ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( sampler2D_type s, int lod ) | See workaround below |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( samplerCube s, int lod ) | See workaround below |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **texture** ( sampler_type s, vec_type uv [, float bias] ) | **bias** not available in vertex shader |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProj** ( sampler_type s, vec_type uv [, float bias] ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureLod** ( sampler_type s, vec_type uv, float lod ) | Only available in vertex shader on some hardware |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureProjLod** ( sampler_type s, vec_type uv, float lod ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec4_type **textureGrad** ( sampler_type s, vec_type uv, vec_type dPdx, vec_type dPdy) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **dFdx** ( vec_type p ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **dFdy** ( vec_type p ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **fwidth** ( vec_type p ) | |
+---------------------------------------------------------------------------------------------+--------------------------------------------------+
``textureSize()`` workaround
^^^^^^^^^^^^^^^^^^^^^^^^^^^^