You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(msl): pass-through globals for helper functions
MSL helper functions cannot access entry point resource bindings
(textures, samplers, uniforms, storage buffers) directly. This adds
analysis to detect which globals each function references and passes
them as extra parameters at declaration and extra arguments at call
sites, matching the Rust naga reference implementation.
Fixesgogpu/ui#23 (black screen on M3 Mac due to undeclared
msdf_atlas/msdf_sampler in MSDF text shader helper functions).
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
+
## [0.14.6] - 2026-03-06
9
+
10
+
### Fixed
11
+
12
+
#### MSL Backend
13
+
-**Pass-through globals for helper functions** — textures, samplers, uniforms, and storage buffers used by non-entry-point functions are now passed as extra parameters and arguments; previously MSL helper functions could not access entry point resource bindings, causing `undeclared identifier` errors (e.g., `msdf_atlas`, `msdf_sampler`, `sh_scratch`) for any shader with helper functions referencing global resources ([gogpu/ui#23](https://github.com/gogpu/ui/issues/23))
0 commit comments