add precision medium int

VC4 open source GLES driver needs precision mediump int to compile this
shaders without precision error.

https://github.com/libretro/glsl-shaders/pull/29#issuecomment-327880857
This commit is contained in:
gizmo98 2017-09-08 09:40:58 +02:00
parent 901d96aafa
commit 8e55856721
37 changed files with 37 additions and 0 deletions

View File

@ -2055,6 +2055,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2054,6 +2054,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2055,6 +2055,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2054,6 +2054,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2055,6 +2055,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2054,6 +2054,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -120,6 +120,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -114,6 +114,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -102,6 +102,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -4064,6 +4064,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -4550,6 +4550,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -3478,6 +3478,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -4705,6 +4705,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2305,6 +2305,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -1293,6 +1293,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -3440,6 +3440,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2957,6 +2957,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2957,6 +2957,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -4750,6 +4750,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -2320,6 +2320,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -111,6 +111,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -67,6 +67,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -67,6 +67,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -66,6 +66,7 @@ void main()
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -64,6 +64,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -63,6 +63,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -65,6 +65,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -92,6 +92,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -83,6 +83,7 @@ void main()
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -62,6 +62,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -76,6 +76,7 @@ void main()
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -72,6 +72,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -73,6 +73,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -86,6 +86,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -88,6 +88,7 @@ out mediump vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -76,6 +76,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else

View File

@ -105,6 +105,7 @@ out vec4 FragColor;
precision highp float;
#else
precision mediump float;
precision mediump int;
#endif
#define COMPAT_PRECISION mediump
#else