norlesh
norlesh

Reputation: 1831

What version of OpenGL Shading Language is equivalent to OpenGL ES 3.2 SL?

What version of GLSL is equivalent to OpenGL ES 3.2 SL and do they have full parity or are there missing features? Is it safe to rely on an older version of The Orange book when learning to do ES shaders (primarily interested in Compute shaders)?

Upvotes: 2

Views: 1240

Answers (3)

nabr
nabr

Reputation: 131

"What version of GLSL is equivalent to OpenGL ES 3.2 SL"

"do they have full parity or are there missing features"

  • read the spec, likely the second.

"safe to rely on an older version of The Orange book"

  • you need that specific explorer personality, turning failure into successful experience and a lot of time. Whatever tutorials comes on the first three pages as websearch results, - i would call "safe".

Upvotes: 1

Nicol Bolas
Nicol Bolas

Reputation: 473397

There is no version of desktop GLSL that is exactly equivalent to ESSL 3.20. There are some features of GLSL that never made it into ES at all (shader subroutines, good riddance). And there are some features that, while technically part of both, only really matter in ESSL land (precision qualifiers, for example).

If you're not using ESSL-specific learning material, the best you can do is to reference the ESSL 3.20 specification when a new concept is introduced to make sure that it's available in ESSL.

Upvotes: 2

Rabbid76
Rabbid76

Reputation: 210909

Compute Shaders are provided since OpenGL 4.3, respectively GpenGL Shading Language 4.30.
They are also available by the extension ARB_compute_shader.

Upvotes: 1

Related Questions