Skip to content

GLSL: support SPIR-V library modules#2628

Merged
HansKristian-Work merged 4 commits into
KhronosGroup:mainfrom
castano:glsl-library-mode
May 8, 2026
Merged

GLSL: support SPIR-V library modules#2628
HansKristian-Work merged 4 commits into
KhronosGroup:mainfrom
castano:glsl-library-mode

Conversation

@castano

@castano castano commented May 6, 2026

Copy link
Copy Markdown
Contributor

Extends library-mode SPIR-V support to the GLSL backend, mirroring the HLSL emit and test changes from earlier PRs in this stack.

I think the main question is how to implement emit_header() I'm currently emitting a comment and skipping the #version and #extension directives, but as discussed in #2622 this may not be the best choice. I'm open to other suggestions.

I've also added two additional tests mirroring the HLSL tests. The main difference is the way these tests are validated by creating a minimal stub that includes the generated code.

Stacked on #2627. Addresses issue #2622.

@HansKristian-Work

Copy link
Copy Markdown
Contributor

Rebased it since there were conflicts.

@HansKristian-Work HansKristian-Work merged commit 7795c9d into KhronosGroup:main May 8, 2026
10 checks passed
@castano castano deleted the glsl-library-mode branch May 8, 2026 16:18
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