Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve docs for gl_ClipDistance: Interface blocks can't be redeclared in GLSL < 4.10 #69

Closed
HorstBaerbel opened this issue Mar 30, 2019 · 1 comment
Assignees

Comments

@HorstBaerbel
Copy link

Redeclaring blocks needs GL_ARB_separate_shader_objects or #version 410. When redeclaring gl_ClipDistance[] with a specific array size you have to use:
out float gl_ClipDistance[6];
The wiki page does not state a specific version requirement. The reference page and the built-ins wiki page don't either. The GLSL 3.3 language specs say redeclaring built in variables it forbidden unless specifically allowed for certain variables, so that probably covers it, but is easy to miss. Some implementations seem to complain, some don't.
See also this issue.

@pdaniell-nv pdaniell-nv self-assigned this Apr 10, 2019
@pdaniell-nv pdaniell-nv added this to the Needs Action/PR milestone Apr 10, 2019
@pdaniell-nv
Copy link
Contributor

I have put in a request to update the two wiki pages. If you want to reference page improved, could you file an issue here: https://github.com/KhronosGroup/OpenGL-Refpages. Thanks.

Since this isn't an issue with the GLSL specs I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants