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

Clarification for GLSL_EXT_buffer_reference forward declaration #265

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions extensions/ext/GLSL_EXT_buffer_reference.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Status

Version

Last Modified Date: February 18, 2019
Revision: 1
Last Modified Date: October 25, 2024
Revision: 3

Number

Expand Down Expand Up @@ -128,6 +128,8 @@ Modifications to the OpenGL Shading Language Specification, Version 4.60
define a forward declaration to the reference type, so it can be used
in other block declarations or in its own block declaration. A forward
declaration is made by omitting the member list and instance name.
All layout qualifiers except "buffer_reference" are ignored during
forward declaration.

If any access through a buffer reference value uses an address that is
not within the bounds of a buffer, it produces undefined behavior.
Expand Down Expand Up @@ -247,3 +249,5 @@ Revision History
the constant qualifier is forbidden on reference types. Clarify that
only assignment, construction, conversion, and field selection
operators are supported.
Revision 3
- Clarify forward declaration ignore layout qualifiers