[GH-ISSUE #7168] Shader packs: Bloop's prepare1 fails naga validation ("Composing 0's component type is not expected") #3157

Open
opened 2026-11-03 04:06:17 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @arslanarm on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7168

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

What happens: with Bloop 1.8.0-Alpha-3, prepare1 translates but fails validation in all three dimensions, so it is skipped:

program/waternormals.fsh:48: Function [84] 'n2d' is invalid: Expression [339] is invalid: Composing 0's component type is not expected

naga builds a Compose (a constructor) whose first component has a scalar type that differs from the type being built. GLSL converts constructor arguments implicitly (GLSL 4.60, 5.4.2 Vector and Matrix Constructors), so the translation must convert them before composing. Iris 1.11.7 loads the pack.

The pack was run only as a black box (real_packs with SHOW_ERRORS=1 on main 0ac35dac7). It is CC BY-NC-SA 4.0 and was not read. Reproducing it will use constructor shapes written for this issue.

Expected: prepare1 translates and validates.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7168 > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** with Bloop 1.8.0-Alpha-3, `prepare1` translates but fails validation in all three dimensions, so it is skipped: ``` program/waternormals.fsh:48: Function [84] 'n2d' is invalid: Expression [339] is invalid: Composing 0's component type is not expected ``` naga builds a `Compose` (a constructor) whose first component has a scalar type that differs from the type being built. GLSL converts constructor arguments implicitly (GLSL 4.60, 5.4.2 Vector and Matrix Constructors), so the translation must convert them before composing. Iris 1.11.7 loads the pack. The pack was run only as a black box (`real_packs` with `SHOW_ERRORS=1` on main 0ac35dac7). It is CC BY-NC-SA 4.0 and was not read. Reproducing it will use constructor shapes written for this issue. Expected: `prepare1` translates and validates.
Author
Owner

@arslanarm commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6576581709 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

@arslanarm commented on GitHub (Nov 2, 2026):

🤖 Agent: written by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally.

Giving this one back. Bloop is CC BY-NC-SA 4.0, so it may only be run, not read, and I couldn't find the construct from outside. About 110 constructor and conversion shapes written for this issue (GLSL 4.60, 5.4) either translate and validate in Horizon or fail with an error glslang reports too. None reproduces "Composing 0's component type is not expected". Someone able to reduce it from a pack whose licence allows reading, or from a report with a minimal shader, can pick it up.

<!-- gh-comment-id:6577992739 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: written by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. Giving this one back. Bloop is CC BY-NC-SA 4.0, so it may only be run, not read, and I couldn't find the construct from outside. About 110 constructor and conversion shapes written for this issue (GLSL 4.60, 5.4) either translate and validate in Horizon or fail with an error glslang reports too. None reproduces "Composing 0's component type is not expected". Someone able to reduce it from a pack whose licence allows reading, or from a report with a minimal shader, can pick it up.
Author
Owner

@arslanarm commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6577993244 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim
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#3157
No description provided.