LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: bobjob on December 12, 2015, 21:18:14

Title: Assembly shaders
Post by: bobjob on December 12, 2015, 21:18:14
I couldn't find the method for binding assembly shaders namely: ARBFragmentProgram.glBindProgramARB(...)

Is this method in a different location, or is their a way to access it another way?

Also I was wondering, is it possible to access Assembly shaders in openGL 3+?
Title: Re: Assembly shaders
Post by: Kai on December 12, 2015, 21:30:09
The functions are in ARBVertexProgram. Both extensions double-define some common functions.
Whether that still works with OpenGL >= 3.2 core is a very interesting question!
The necessary use of vertex array objects (VAO) comes to my mind, and whether or not the necessary state is captured by a VAO. The ARB_vertex_program (https://www.opengl.org/registry/specs/ARB/vertex_program.txt) extension was not updated to mention the interaction with VAOs.
Guess, you just have to try it out. :)
Title: Re: Assembly shaders
Post by: bobjob on December 13, 2015, 01:24:56
thanks its working now