Jump to content
  • Advertisement
Sign in to follow this  
Prune

glProgramParameter vs glProgramLocalParameter/glProgramEnvParameter

This topic is 2987 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!