GLShader.stringGetHighestPrecision

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

context gstgl.glcontext.GLContext

a #GstGLContext

version_ gstgl.types.GLSLVersion

a #GstGLSLVersion

profile gstgl.types.GLSLProfile

a #GstGLSLProfile

Return Value

Type: string

a shader string defining the precision of float types based on context, version and profile