![opengl 4.5 spec opengl 4.5 spec](https://frondtech.com/wp-content/uploads/2020/11/teardown-2.jpg)
OpenGL 4.5 implementations are guaranteed to support versions 1.00,ģ.00, and 3.10 of the OpenGL ES Shading Language. Now you might still want to know which GLSL ES versions you can use in desktop GL. OpenGL ES 3.1 implementations are guaranteed to support versions 3.10,ģ.00 and 1.00 of the OpenGL ES Shading Language. In this case, errors will be generated when using language features such as compatibility profile built-ins notįor OpenGL ES, similiar things apply: GLES version GLSL version The Shading Language, and may support compatibility profile versionsġ.40 and earlier. Implementations the core profile may also support earlier versions of Versions of the OpenGL Shading Language back to version 1.40. TheĬore profile of OpenGL 4.5 is also guaranteed to support all previous The shading language may be queried as described in section 22.2. OpenGL 4.5 implementations are guaranteed to support version 4.50 of For example, in the OpenGL 4.5 core profile specification, the following is stated (emphasis mine): Note that besides being required to support the listed GLSL versions, GL implementations are also required to support older versions. If you request #version 100, you'll get GLSL 1.00 ES.
![opengl 4.5 spec opengl 4.5 spec](https://m.media-amazon.com/images/I/61razzJ1FTL._AC_SY450_.jpg)
However, that was never a core feature of OpenGL, so the version starts at 1.10 here (which is also the default if you don't have a #version directive in your shader).
![opengl 4.5 spec opengl 4.5 spec](http://cdn.arstechnica.net/wp-content/uploads/2015/10/OS-X-10.11-Metal.003.png)
That was available when shaders were developed as an extension to GL 1.x. Also note that there is no explicit version 1.00. So, beginning with GL 3.3, the version numbers are "synced" to make life easier. In desktop GL, the mapping between the GL version and the GLSL version is as follows: GL version GLSL version