context, version and profile
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
context | a #GstGLContext |
version_ | a #GstGLSLVersion |
profile | a #GstGLSLProfile |
Returns
a shader string defining the precision of float types based on