[GH-ISSUE #6683] Shader translator: keep the buffer keyword in extension-enabled legacy SSBO blocks #2179

Closed
opened 2026-11-02 15:52:47 +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/6683

Originally assigned to: @gigamans442 on GitHub.

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

What happens

A legacy-version shader with a storage-buffer extension reaches the existing buffer-block scanner, but the legacy identifier rewrite can still rename buffer as though it were an ordinary variable. The resulting declaration fails translation.

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

Translate an original #version 130 fragment shader enabling GL_ARB_shader_storage_buffer_object and reading a bound readonly buffer block. Verify that it retains the storage-buffer binding and returns a known value in an isolated GPU fixture. Ordinary legacy user identifiers must keep their existing compatibility handling.

Scope

Storage buffers are already supported. This only fixes keyword treatment for a buffer block the scanner has already recognized.

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/6683 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## What happens A legacy-version shader with a storage-buffer extension reaches the existing buffer-block scanner, but the legacy identifier rewrite can still rename buffer as though it were an ordinary variable. The resulting declaration fails translation. 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 Translate an original #version 130 fragment shader enabling GL_ARB_shader_storage_buffer_object and reading a bound readonly buffer block. Verify that it retains the storage-buffer binding and returns a known value in an isolated GPU fixture. Ordinary legacy user identifiers must keep their existing compatibility handling. ## Scope Storage buffers are already supported. This only fixes keyword treatment for a buffer block the scanner has already recognized. 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:6566777828 --> @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#2179
No description provided.