Allow requesting medium default float precision for GLSL ES


Will only work for real GLSL ES targets (version such as 100 es, 300 es,
etc.). By default a precision highp float is added to GLSL ES fragment
shaders. Have a flag that can be set to change this to mediump.

Usable via:
- QShaderBaker (the as of now still undocumented setGlslOptions())
- qsb, by passing --mediump
- CMake, by specifying MEDIUMP in qt_add_shaders()

[ChangeLog] Added the ability for request medium precision for floats in
the generated GLSL ES fragment shaders.

Change-Id: Ie0bc9ad9cd98daa3c1ed57396a7d43234ef5cd09
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit052ffb12599f53b40f15f0be1025683e590a7c80
parent12cd45982b873a8d2d9f9ca631f2cdf52bfa38b8
authorLaszlo Agocs <laszlo.agocs@qt.io>
committerLaszlo Agocs <laszlo.agocs@qt.io>
commit timeMon, 9 Sep 2024 12:54:52 +0200