[perf][LOW] nonuniformEXT on dynamically-uniform font slots (text shader) #49
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Catcrafts/Crafter.Graphics#49
Loading…
Add table
Add a link
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?
Subsystem: UI GLSL shaders
Location:
shaders/ui-text.comp.glsl:39-43Impact: LOW · Effort: Small
Problem
pc.fontTextureSlot/pc.fontSamplerSlotare push constants (provably dynamically uniform) but wrapped innonuniformEXT, forcing the per-invocation divergent-descriptor path and inhibiting hoisting the uniform load out of the per-pixel loop.Proposed fix
Drop
nonuniformEXTon the text shader's push-constant font slots only. Zero correctness risk — it is a read-index decoration.Correctness caveat
Do not apply to
ui-images.comp.glsl— itstexSlot/sampSlotcome from an SSBO load, which the compiler cannot prove uniform. Text-shader push constants only.