glGetShaderPrecisionFormat

retrieve the range and precision for numeric formats supported by the shader compiler

Signature

glGetShaderPrecisionFormat( GLenum ( shaderType ) , GLenum ( precisionType ) , GLint *( range ) , GLint *( precision ) )-> void
glGetShaderPrecisionFormat( shadertype , precisiontype , range , precision )
Provides range and precision if not provided, returns (range,precision)

Parameters

VariablesDescription
shaderType
Specifies the type of shader whose precision to query. shaderType must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER .
precisionType
Specifies the numeric format whose precision and range to query.
range
Specifies the address of array of two integers into which encodings of the implementation's numeric range are returned.
precision
Specifies the address of an integer into which the numeric precision of the implementation is written.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glGetShaderPrecisionFormat
OpenGLContext tests/arbsync.py Lines: 50