Added shading language differences to gles2 doc (#2237)

This commit is contained in:
Clay John
2019-03-10 03:24:29 -07:00
committed by Rémi Verschelde
parent 10a8a4fb3d
commit d0eacac884
2 changed files with 84 additions and 1 deletions

View File

@@ -115,3 +115,83 @@ Blend shapes
------------
Blend shapes are not supported in GLES2.
Shading language
----------------
GLES3 provides many built-in functions that GLES2 does not. Below is a list of functions
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 **sinh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **cosh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **tanh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **asinh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **acosh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **atanh** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **round** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **roundEven** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **trunc** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_type **modf** ( vec_type x, out vec_type i ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_bool_type **isnan** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| vec_bool_type **isinf** ( vec_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| 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 ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| mat_type **transpose** ( mat_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| float **determinant** ( mat_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| mat_type **inverse** ( mat_type ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( sampler2D_type s, int lod ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| ivec2 **textureSize** ( samplerCube s, int lod ) | |
+------------------------------------------------------------------------+--------------------------------------------------+
| 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 ) | |
+------------------------------------------------------------------------+--------------------------------------------------+