OpenGL支持的GLSL Versions 版本对应

来源:互联网 发布:网络监控客户端 编辑:程序博客网 时间:2024/06/11 17:27

OpenGL支持的GLSL Versions版本对应

原文: https://github.com/mattdesl/lwjgl-basics/wiki/GLSL-Versions

GLSLVersions

OpenGL Version

GLSL Version

2.0

110

2.1

120

3.0

130

3.1

140

3.2

150

3.3

330

4.0

400

4.1

410

4.2

420

4.3

430

 

GLSL ES Versions (Android, iOS, WebGL)

OpenGLES has its own Shading Language, and the versioning starts fresh. It is basedon OpenGL Shading Language version 1.10.

OpenGL ES Version

GLSL ES Version

2.0

100

3.0

300

So,for example, if a feature is available in GLSL 120, it probably won't beavailable in GLSL ES 100 unless the ES compiler specifically allows it.

 

OpenGL ES版本列表

OpenGL ES版本号对应OpenGL版本对应的DX版本版本特性1.0OpenGL 1.3低于DX9Fixed function rendering1.1OpenGL 1.5低于DX9Fixed function rendering。虽然OpenGL 1.5中引入了ARB shader,但是OpenGL ES 1.1中仍然是不支持的。2.0OpenGL 2.0DX9支持GLSL3.0OpenGL 3.0DX10与DX9之间兼容OpenGL ES 2.0,但不支持DX10中才有的Geometry Shader, OpenGL自3.2版本开始支持Geometry Shader.

 

 

0 0
原创粉丝点击