perf(shaders): drop nonuniformEXT on text font slots #80
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics!80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/issue-49"
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?
Problem
In
shaders/ui-text.comp.glsl,pc.fontTextureSlot/pc.fontSamplerSlotare push constants (provably dynamically uniform) but were wrapped innonuniformEXT. This forced the per-invocation divergent-descriptor path and inhibited hoisting the uniform descriptor load out of the per-pixel glyph loop.Fix
Drop
nonuniformEXTon the text shader's push-constant font slots only. This is purely a read-index decoration, so it carries zero correctness risk.Caveat respected
Not applied to
ui-images.comp.glsl— itstexSlot/sampSlotcome from an SSBO load, which the compiler cannot prove uniform, sononuniformEXTremains required there.Testing
crafter-build test→ 3 passedglslang -V --target-env vulkan1.2validates the shader cleanlyResolves #49