Skip to content

Use last rather than first dimension to check for runtime array#2618

Merged
HansKristian-Work merged 1 commit intoKhronosGroup:mainfrom
Toctave:main
Apr 27, 2026
Merged

Use last rather than first dimension to check for runtime array#2618
HansKristian-Work merged 1 commit intoKhronosGroup:mainfrom
Toctave:main

Conversation

@Toctave
Copy link
Copy Markdown
Contributor

@Toctave Toctave commented Apr 24, 2026

This fixes handling of multi-dimensional arrays with the last dimension being unspecified, as in this code:

layout(location = 0, binding = 0) buffer MyBuffer {
    float data[16][];
};

Copy link
Copy Markdown
Contributor

@HansKristian-Work HansKristian-Work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love oneliners that fix things.

@HansKristian-Work HansKristian-Work merged commit e7f242f into KhronosGroup:main Apr 27, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants