Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

[glsl-out] Rename identifiers containing two consecutive underscores since they are reserved #2412

Closed
teoxoy opened this issue Jul 25, 2023 · 0 comments · Fixed by #2510
Closed
Labels
area: back-end Outputs of shader conversion lang: GLSL OpenGL Shading Language

Comments

@teoxoy
Copy link
Member

teoxoy commented Jul 25, 2023

In addition, all identifiers containing two consecutive underscores (__) are reserved for use by underlying software layers. Defining such a name in a shader does not itself result in an error, but may result in unintended behaviors that stem from having multiple definitions of the same name.

from https://registry.khronos.org/OpenGL/specs/gl/GLSLangSpec.4.60.html#keywords

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: back-end Outputs of shader conversion lang: GLSL OpenGL Shading Language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant