Repository navigation
Use UTF-8 for shader library module filenames (SHADER-LIBRARY-UTF8-MODULE-PATHS) - #2043
Merged
MoonEyes merged 1 commit intoNov 29, 2026
Conversation
This was referenced Nov 25, 2026
Contributor
|
Verified on Windows 11 (
AI-assisted. |
Contributor
|
Verified by OreoFR
Note: shares AI-assisted (Claude Code, Claude Opus 5.5). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: SHADER-LIBRARY-UTF8-MODULE-PATHS
What and why
Index strings are decoded as UTF-8.
spirv_bytes()andspirv()append those strings as narrow paths, which on Windows can use the system code page. A shader indexed ascs_\u00e9can therefore be found in the metadata but missed on disk.Use one path builder that appends the filename as UTF-8 for both the generated filename and the explicit
spvfallback. A filename the host cannot decode is treated as unavailable, so a working fallback can still be used.Tested
9f9a7c5f3inspirv_bytes(). With the fix, the CMakeshader_librarytest passes in RelWithDebInfo on Windows 11 using MSVC 19.51. It checks size and word reads through both filename forms and a malformed default name with a valid fallback.git diff --checkand the source-only check passed.GPUs tested: n/a (CPU-only synthetic shader files)
AI-assisted: yes (Codex)
Checklist
main.