Sign in to follow this  
Prune

glProgramParameter vs glProgramLocalParameter/glProgramEnvParameter

Recommended Posts

I understand the difference between glProgramLocalParameter*ARB and glProgramEnvParameter*ARB, but how do glProgramParameter*EXT/glProgramParameter*NV relate to these, and are they interchangeable? I've encountered the second set in the case of geometry shaders before the newer GLSL added setting the maximum output vertices and so on in geometry shaders in the shader source instead of through the API.

Share this post


Link to post
Share on other sites
glProgramParameter*NV is part of the old GL_NV_vertex_program and the EXT version is part of GL_EXT_vertex_program.
I don't know if they are interchangeable. They were also used for fragment_program and geometry_program back then, then GLSL came along so you should use glUniform*****

Share this post


Link to post
Share on other sites
I'm referring to the usage with geometry shaders, such as
glProgramParameteri(prog, GL_GEOMETRY_VERTICES_OUT_EXT, 6);
Not sure what I can use instead if I'm not using the GLSL 1.5+ where the count is specified in the shader source instead, but older version.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this