[PR #6210] [MERGED] Shader packs: the sky pass binds the pack's storage buffers #6717

Closed
opened 2026-11-03 06:25:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6210
Author: @arslanarm
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: shaderpacks/sky-binds-ssbos


📝 Commits (1)

  • 4fbbee3 Shader packs: the sky pass binds the pack's storage buffers

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx/pack_post.rs (+7 -0)

📄 Description

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

Fixes #6207.

What and why

The sky pass (PackPost's sky draw in pack_post.rs) set bind group 0 and the sky geometry, but not group 4, the pack's SSBOs, which every other pass binds when pass.buffers. A pack whose sky program reads its buffers (Noble 1.9.9's gbuffers_textured, the fallback of gbuffers_skytextured) made wgpu refuse the frame ("expects a BindGroup to be set at index 4") and the game panicked. Seven lines: the same binding the other passes do.

Tested

Noble 1.9.9 crashed on its first frame before this; with it, Noble renders 16 test scenes (overworld, caves, underwater, the five Nether biomes, the End) with no skipped program. (Its picture is still wrong, but that is a separate problem.) No pack code read.

Suggested label: none (a fix).

pr_ready (tools/pr_ready.py --quick on plony-pc, against origin/main at 7311b1e17, 3 min 18 s)

Check Result
Scope ✅ 1 files, +7 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 586 passed (30 s)
rustfmt ✅ (7 s)
clippy ✅ (1 min 31 s)
tests: horizon-client-render ✅ 917 passed (1 min 10 s)
doc tests ✅ 0 passed
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6210 **Author:** [@arslanarm](https://github.com/arslanarm) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `shaderpacks/sky-binds-ssbos` --- ### 📝 Commits (1) - [`4fbbee3`](https://github.com/horizon-rust/horizon/commit/4fbbee3d1368987fb024dd798144ed774363ebd3) Shader packs: the sky pass binds the pack's storage buffers ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx/pack_post.rs` (+7 -0) </details> ### 📄 Description > 🤖 Opened by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. Fixes #6207. ## What and why The sky pass (`PackPost`'s sky draw in `pack_post.rs`) set bind group 0 and the sky geometry, but not group 4, the pack's SSBOs, which every other pass binds when `pass.buffers`. A pack whose sky program reads its buffers (Noble 1.9.9's `gbuffers_textured`, the fallback of `gbuffers_skytextured`) made wgpu refuse the frame ("expects a BindGroup to be set at index 4") and the game panicked. Seven lines: the same binding the other passes do. ## Tested Noble 1.9.9 crashed on its first frame before this; with it, Noble renders 16 test scenes (overworld, caves, underwater, the five Nether biomes, the End) with no skipped program. (Its picture is still wrong, but that is a separate problem.) No pack code read. Suggested label: none (a fix). **pr_ready** (`tools/pr_ready.py --quick` on plony-pc, against origin/main at 7311b1e17, 3 min 18 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +7 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 586 passed (30 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 min 31 s) | | tests: horizon-client-render | ✅ 917 passed (1 min 10 s) | | doc tests | ✅ 0 passed | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:25:24 +07:00
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#6717
No description provided.