OpenGL支持的GLSL Versions 版本对应

本文详细列举了OpenGL及其着色语言GLSL的不同版本之间的对应关系,并提供了OpenGLES及对应的GLSLES版本信息,有助于开发者了解不同版本间的兼容性和特性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 rendering
1.1OpenGL 1.5低于DX9Fixed function rendering。虽然OpenGL 1.5中引入了ARB shader,但是OpenGL ES 1.1中仍然是不支持的。
2.0OpenGL 2.0DX9支持GLSL
3.0OpenGL 3.0DX10与DX9之间兼容OpenGL ES 2.0,但不支持DX10中才有的Geometry Shader, OpenGL自3.2版本开始支持Geometry Shader.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值