GL_GEOMETRY_SHADER is missing in iOS OpenGL ES 3.0

I am porting my engine to iOS and I got the error

'GL_GEOMETRY_SHADER' undefined

      

I am using iOS 8 SDK and OpenGL 3.0; Device - iPhone 5s. Is there any alternative to this? Or how can I access the geometry shader materials?

+3


source to share


1 answer


There are no geometry shaders in OpenGL ES, neither in 3.0 nor in 3.1.

There is an extension that is based on ES 3.1. Since iOS doesn't support 3.1 at the moment, the extension is of course not available on iOS.

Alternative? If you really want geometry shaders, Android devices are always an option. :) Geometry shaders are part of the Android Extension Pack for ES 3.1, which is a collection of extensions that Google encourages device vendors to support.




Update: Geometry shaders are standard in ES 3.2. It doesn't help on iOS though, as it still doesn't support anything higher than ES 3.0.

+6


source







All Articles