[GH-ISSUE #5303] Shader packs: scalar swizzles, matrix column components and min/max of a uint fail to translate #1634

Closed
opened 2026-11-02 15:48:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TobiasLogic on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5303

Originally assigned to: @TobiasLogic on GitHub.

🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally.

naga's GLSL frontend refuses three things GL drivers take, and Horizon skips the program:

  • A swizzle of a scalar (GLSL 4.20 allows f.x, f.xx): Kappa's program/gbuffer/solid.vsh:133 and gbuffers_translucent.vsh:131, "Can't lookup field on this type".
  • A matrix column's component written to (uv[1].y = ... on a mat2x2).
  • min, max or clamp of a uint and integer literals (max(n, 1)): Kappa's program/post/bloom_1.fsh:107, "Ambiguous best function for 'max'". GL picks the uint overload.

With Kappa v5.3 on main, 30 errors of the first kind and 3 of the third; 46 of its programs are skipped.

Originally created by @TobiasLogic on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5303 Originally assigned to: @TobiasLogic on GitHub. > 🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally. naga's GLSL frontend refuses three things GL drivers take, and Horizon skips the program: - **A swizzle of a scalar** (GLSL 4.20 allows `f.x`, `f.xx`): Kappa's `program/gbuffer/solid.vsh:133` and `gbuffers_translucent.vsh:131`, "Can't lookup field on this type". - **A matrix column's component written to** (`uv[1].y = ...` on a `mat2x2`). - **`min`, `max` or `clamp` of a `uint` and integer literals** (`max(n, 1)`): Kappa's `program/post/bloom_1.fsh:107`, "Ambiguous best function for 'max'". GL picks the `uint` overload. With Kappa v5.3 on main, 30 errors of the first kind and 3 of the third; 46 of its programs are skipped.
Author
Owner

@TobiasLogic commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6546776804 --> @TobiasLogic commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1634
No description provided.