Inventory stage-local shader candidates for a named SGD5 effect #307

Closed
opened 2026-11-26 21:41:54 +00:00 by github-bot · 0 comments
Owner

@⁠Vonsek on GitHub · 2026-11-21 21:39 UTC · original

Question

Can a bounded SGD5 inventory report which stage-local program indices a named effect references when more than one program in a stage is eligible?

Evidence so far

The public SGD5 reader walks the six program arrays and reads the effect count. The related SGD2 format documents six index lists in each effect record. A source-built fixture can give two stages overlapping ordinal numbers and give a single effect two different pixel programs. SGD5 program arrays · SGD2 effect lists

Completion condition

Resolve the source-built effect to all its expected candidates in the owning stage, reject invalid program ordinals, malformed effect framing and out-of-budget metadata, and report the limits of the tested profile. Selecting a runtime draw pass needs separate evidence. I’m working on the bounded inventory and fixture. PR #300 concerns opcode support in the pipeline-readiness scanner.

Required environment

Python 3.11 or newer.

  • The task can be reproduced with source-built inputs.
  • I did not include game files, dumps, distribution links or credentials.
**@⁠Vonsek** on GitHub · 2026-11-21 21:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/307) ## Question Can a bounded SGD5 inventory report which stage-local program indices a named effect references when more than one program in a stage is eligible? ## Evidence so far The public SGD5 reader walks the six program arrays and reads the effect count. The related SGD2 format documents six index lists in each effect record. A source-built fixture can give two stages overlapping ordinal numbers and give a single effect two different pixel programs. [SGD5 program arrays](https://github.com/rpatty-dev/PercyStar/blob/1b710c5349ef1911d94092f19173e9813dfb300c/src/sgd5.rs#L208-L238) · [SGD2 effect lists](https://github.com/Kalmarv/rage-engine-formats/blob/91e5abb68476709fac80f256bc64f928c6fc2d19/src/sgd2.rs#L20-L32) ## Completion condition Resolve the source-built effect to all its expected candidates in the owning stage, reject invalid program ordinals, malformed effect framing and out-of-budget metadata, and report the limits of the tested profile. Selecting a runtime draw pass needs separate evidence. I’m working on the bounded inventory and fixture. PR #300 concerns opcode support in the pipeline-readiness scanner. ## Required environment Python 3.11 or newer. - [x] The task can be reproduced with source-built inputs. - [x] I did not include game files, dumps, distribution links or credentials.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:41:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/R0Y00--Xbox2Windows#307
No description provided.