[GH-ISSUE #5826] Shader API: WGSL shared by only some stages goes into every stage #1831

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

Originally created by @Teiwazik on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5826

Originally assigned to: @Teiwazik on GitHub.

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

A native pack can split code across files only through shared, which goes before every stage's file. A helper only one stage needs can't be kept apart, and a helper calling something from one stage's prelude (textureSampleLevel(previous, ...) in post, say) doesn't compile in the others.

Proposed: an optional files list on a stage, put after shared and before its own file.

Originally created by @Teiwazik on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5826 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. A native pack can split code across files only through `shared`, which goes before every stage's file. A helper only one stage needs can't be kept apart, and a helper calling something from one stage's prelude (`textureSampleLevel(previous, ...)` in post, say) doesn't compile in the others. Proposed: an optional `files` list on a stage, put after `shared` and before its own file.
Author
Owner

@Teiwazik commented on GitHub (Nov 1, 2026):

/claim

<!-- gh-comment-id:6556114859 --> @Teiwazik commented on GitHub (Nov 1, 2026): /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#1831
No description provided.