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

Recognize ExtInstWithForwardRefsKHR #2446

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#version 450
#extension GL_EXT_buffer_reference2 : require
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

layout(buffer_reference) buffer Blah;
layout(buffer_reference) buffer Foo;
layout(buffer_reference, buffer_reference_align = 8, std430) buffer Blah
{
Foo foo;
int a;
};

layout(buffer_reference, std430) buffer Foo
{
int b;
};

layout(push_constant, std430) uniform Registers
{
Blah blah;
} _61;

void main()
{
_61.blah.a = 10;
}

24 changes: 24 additions & 0 deletions shaders-no-opt/comp/ext-inst-with-forward-refs.gV.vk.nocompat.comp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#version 450
#extension GL_EXT_buffer_reference : require
layout(local_size_x = 1) in;

layout(buffer_reference) buffer Blah;
layout(buffer_reference) buffer Foo;

layout(buffer_reference) buffer Blah
{
Foo foo;
int a;
};

layout(buffer_reference) buffer Foo
{
int b;
};

layout(push_constant) uniform Registers { Blah blah; };

void main()
{
blah.a = 10;
}
Loading