mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #2043] Use UTF-8 for shader library module filenames (SHADER-LIBRARY-UTF8-MODULE-PATHS) #2049
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2049
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2043
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/shader-library-utf8-module-paths📝 Commits (1)
6198879Use UTF-8 for shader library module filenames📊 Changes
2 files changed (+48 additions, -16 deletions)
View changed files
📝
runtime/src/shader_library.h(+18 -16)📝
runtime/test/shader_library_test.cpp(+30 -0)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.