GLShader.stringGetHighestPrecision

string stringGetHighestPrecision(gstgl.glcontext.GLContext context, gstgl.types.GLSLVersion version_, gstgl.types.GLSLProfile profile)

Generates a shader string that defines the precision of float types in GLSL shaders. This is particularly needed for fragment shaders in a GLSL ES context where there is no default precision specified.

Practically, this will return the string 'precision mediump float' or 'precision highp float' depending on if high precision floats are determined to be supported.

Parameters

contexta #GstGLContext
version_a #GstGLSLVersion
profilea #GstGLSLProfile

Returns

a shader string defining the precision of float types based on

context, version and profile