[GH-ISSUE #7179] Shader packs: the SEPARATE_HARDWARE_SAMPLERS feature is not supported #3162

Closed
opened 2026-11-03 04:06:20 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @arslanarm on GitHub.

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

What happens: RenderPearl v2.7.2 and Visual Vibrance v0.3.5a list SEPARATE_HARDWARE_SAMPLERS in iris.features.required. Horizon doesn't have that feature (FEATURES in crates/horizon-shaders/src/macros.rs: COMPUTE_SHADERS, CUSTOM_IMAGES, ENTITY_TRANSLUCENT, SSBO). So on main 0ac35dac7 the game logs "shader pack …: the pack requires SEPARATE_HARDWARE_SAMPLERS, which is not supported yet" for both packs, in every dimension, and real_packs prints the same note. An iris.features.optional listing of it gets no IRIS_FEATURE_SEPARATE_HARDWARE_SAMPLERS either.

In the game (a fast build of main 6d91fa694, one overworld scene, a fresh game home): both packs load with this warning, then crash the game on the first frame for an unrelated reason, a storage buffer smaller than its shader expects (#7178). So their pictures can't be compared with Iris 1.11.7 until that is fixed.

The feature (Iris ShaderDoc, "Feature Flags" and "Separate Hardware Shadow Samplers"): with the flag on and shadow hardware filtering on (shadowHardwareFiltering), shadowtex0 and shadowtex1 are no longer hardware (depth-comparison) samplers. shadowtex0HW and shadowtex1HW sample with hardware filtering instead, so a pack can do both in one program.

What Horizon has already: gfx/pack_post.rs binds shadowtex0HW/shadowtex1HW to the shadow depth buffers, and it picks a comparison sampler from the declared type (sampler2DShadow). So most of the behaviour may be there. What's missing is the flag itself, plus a check against Iris (a probe pack of our own) that shadowtex0/shadowtex1 and the HW names behave as they do there with filtering on and off.

Expected: Horizon reports SEPARATE_HARDWARE_SAMPLERS as supported (IRIS_FEATURE_SEPARATE_HARDWARE_SAMPLERS for iris.features.optional, no note for required), with the four samplers matching Iris 1.11.7.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7179 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** RenderPearl v2.7.2 and Visual Vibrance v0.3.5a list `SEPARATE_HARDWARE_SAMPLERS` in `iris.features.required`. Horizon doesn't have that feature (`FEATURES` in `crates/horizon-shaders/src/macros.rs`: `COMPUTE_SHADERS`, `CUSTOM_IMAGES`, `ENTITY_TRANSLUCENT`, `SSBO`). So on main 0ac35dac7 the game logs "shader pack …: the pack requires `SEPARATE_HARDWARE_SAMPLERS`, which is not supported yet" for both packs, in every dimension, and `real_packs` prints the same note. An `iris.features.optional` listing of it gets no `IRIS_FEATURE_SEPARATE_HARDWARE_SAMPLERS` either. **In the game** (a fast build of main 6d91fa694, one overworld scene, a fresh game home): both packs load with this warning, then crash the game on the first frame for an unrelated reason, a storage buffer smaller than its shader expects (#7178). So their pictures can't be compared with Iris 1.11.7 until that is fixed. **The feature** (Iris ShaderDoc, "Feature Flags" and "Separate Hardware Shadow Samplers"): with the flag on and shadow hardware filtering on (`shadowHardwareFiltering`), `shadowtex0` and `shadowtex1` are no longer hardware (depth-comparison) samplers. `shadowtex0HW` and `shadowtex1HW` sample with hardware filtering instead, so a pack can do both in one program. **What Horizon has already:** `gfx/pack_post.rs` binds `shadowtex0HW`/`shadowtex1HW` to the shadow depth buffers, and it picks a comparison sampler from the declared type (`sampler2DShadow`). So most of the behaviour may be there. What's missing is the flag itself, plus a check against Iris (a probe pack of our own) that `shadowtex0`/`shadowtex1` and the `HW` names behave as they do there with filtering on and off. **Expected:** Horizon reports `SEPARATE_HARDWARE_SAMPLERS` as supported (`IRIS_FEATURE_SEPARATE_HARDWARE_SAMPLERS` for `iris.features.optional`, no note for `required`), with the four samplers matching Iris 1.11.7.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6576742996 --> @arslanarm commented on GitHub (Nov 2, 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#3162
No description provided.