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

Closed
opened 2026-11-21 21:39:50 +00:00 by Vonsek · 0 comments
Vonsek commented 2026-11-21 21:39:50 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:39:50Z.


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.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6534725020 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/307). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T21:39:50Z. --- ## 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.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#302
No description provided.