[GH-ISSUE #5370] Shader packs: a const that calls mix, smoothstep and the like fails the program (Bliss) #1653

Closed
opened 2026-11-02 15:48:40 +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/5370

Originally assigned to: @TobiasLogic on GitHub.

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

A const initialised with a call to mix, smoothstep, reflect, the pack/unpack functions and a few other built-ins fails the whole program: naga's constant evaluator lacks them ("Not implemented as constant expression: Mix built-in function"), while GL drivers fold them.

With Bliss v2.1.2 (Chocapic13 edit) on main, 66 of these errors; 3 of its composite programs load.

Global consts with a ?: already go to the globals our main initialises (scan.rs); calls to these built-ins don't.

Originally created by @TobiasLogic on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5370 Originally assigned to: @TobiasLogic on GitHub. > 🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally. A `const` initialised with a call to `mix`, `smoothstep`, `reflect`, the pack/unpack functions and a few other built-ins fails the whole program: naga's constant evaluator lacks them ("Not implemented as constant expression: Mix built-in function"), while GL drivers fold them. With Bliss v2.1.2 (Chocapic13 edit) on main, 66 of these errors; 3 of its composite programs load. Global `const`s with a `?:` already go to the globals our `main` initialises (`scan.rs`); calls to these built-ins don't.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6547366844 --> @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#1653
No description provided.