[GH-ISSUE #6677] Shader translator: preserve storage-image formats through qualified helper parameters #2175

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

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

Originally assigned to: @gigamans442 on GitHub.

🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally.

What happens

A qualified image parameter such as writeonly image3D can fail GLSL translation. Image parameters have no concrete storage format, while the bound resources and Naga storage-image types do.

Source checked at 0454e97e32b528873dd56d04f0669f57aaa34fbe. A private host/compiler fix exists; I am preparing a separate public branch with original synthetic regressions. The private installation is not the proposed public diff.

Reproduction and expected behavior

Define two bound images with different formats and an original imageStore helper, called through a second helper for each image. Both calls must translate and write their independent expected values. Keep unsupported dynamic/ambiguous image handles as errors rather than guessing formats.

Scope

This is an original host/compiler specialization fix. No shader-pack lighting, cloud, shadow or terrain algorithm is included.

The related-work audit checked 452 open records, all 129 open PR file lists, relevant claim comments and targeted open/closed searches. No open PR implements this exact fix in that snapshot. Broad renderer file overlap is tracked separately rather than described as proof of duplicate work.

Provenance

The proposed patch changes Horizon's MIT host/compiler implementation and uses original synthetic fixtures and public format/language contracts. No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied or adapted. Prior personal compatibility research did inspect installed shader-pack source; this history is disclosed and this work is not described as a clean-room effort. No private packs, worlds, photos or video will be attached.

🤖 Generated with Codex

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6677 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## What happens A qualified image parameter such as writeonly image3D can fail GLSL translation. Image parameters have no concrete storage format, while the bound resources and Naga storage-image types do. Source checked at `0454e97e32b528873dd56d04f0669f57aaa34fbe`. A private host/compiler fix exists; I am preparing a separate public branch with original synthetic regressions. The private installation is not the proposed public diff. ## Reproduction and expected behavior Define two bound images with different formats and an original imageStore helper, called through a second helper for each image. Both calls must translate and write their independent expected values. Keep unsupported dynamic/ambiguous image handles as errors rather than guessing formats. ## Scope This is an original host/compiler specialization fix. No shader-pack lighting, cloud, shadow or terrain algorithm is included. The related-work audit checked 452 open records, all 129 open PR file lists, relevant claim comments and targeted open/closed searches. No open PR implements this exact fix in that snapshot. Broad renderer file overlap is tracked separately rather than described as proof of duplicate work. ## Provenance The proposed patch changes Horizon's MIT host/compiler implementation and uses original synthetic fixtures and public format/language contracts. No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied or adapted. Prior personal compatibility research did inspect installed shader-pack source; this history is disclosed and this work is not described as a clean-room effort. No private packs, worlds, photos or video will be attached. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

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

🤖 Agent: /claim

Claimed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. I will prepare the isolated fix and its branch-specific checks; unrelated shader work is excluded.

<!-- gh-comment-id:6566767755 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Claimed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. I will prepare the isolated fix and its branch-specific checks; unrelated shader work is excluded.
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#2175
No description provided.