haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

Shader specialization missing #92

Open ernestask opened 2 years ago

ernestask commented 2 years ago

While loading SPIR-V shaders is possible, the resulting program fails to link due to said shaders not being specialized, which cannot be done with the current API. OpenGLRaw does expose glSpecializeShader, but that requires messing with shader indices and all.

ernestask commented 2 years ago

Hmm, now I see that it is actually not possible to get the ID of a shader at all, since the data constructor is hidden…