Skip to content

Conversation

@sbourasse
Copy link

GLSL specification states that opaque types "can only be declared as function parameters or in uniform-qualified variables." (GLSL 4.6 section 4.1.7) making them suitable structure members under OpenGL semantics. However, GL_KHR_vulkan_glsl explicitly forbids such behaviour.
Our proposal is to add support for such variables through GL_EXT_vulkan_glsl_relaxed so that existing OpenGL shader codebases can still be used without further changes.

We implemented this method within glslang already, so we will open a PR for it along this one, should it be approved.

@CLAassistant
Copy link

CLAassistant commented Oct 3, 2023

CLA assistant check
All committers have signed the CLA.

@mbechard
Copy link
Contributor

mbechard commented Oct 3, 2023

This looks good to me

@pdaniell-nv pdaniell-nv added the Vulkan Functionality applies to Vulkan API label Oct 11, 2023
@sbourasse sbourasse force-pushed the bourasse/relaxed-opaque-members branch from cc56378 to 900b98c Compare January 4, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Vulkan Functionality applies to Vulkan API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants