Skip to content

docs/models.md: material shader hashes lead to effects; effect records select the draw programs - #2519

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:docs/material-effects
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
rafaelpssz:docs/material-effects

Conversation

@rafaelpssz

@rafaelpssz rafaelpssz commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Status (rebased on main 03b09a08): the merge in 749a1257 and the later main commits already carry everything below except one commit. This PR now holds only 203b207c: the u32 after an effect name is a size computed from the record's fields (@jeremygold02's formula, recomputed on all 932 records; it never equals the serialized record length). One file, docs/models.md, +17/−2.

Step 1 of my materials → shader programs claim (#2078; narrowed in #2300 after the measurements below).

What

A new section in docs/models.md, after "Shader render buckets", records what a drawable material's shader hash leads to and what it doesn't, so nobody repeats the search. Measured on my 1.0.2.1 copy (counts only, no names):

  • What it leads to:
    • A material's shader hash (rpf9dump models → manifest.json → Materials[].Shader) is the joaat of its effect name.
    • The carve index names every compute program <effect>:<entry>_<8 hex>_Wrapped, after a one-byte length prefix.
    • So a material reaches its effect and that effect's RaytracingResolve programs: 3,211 of data.rpf's 3,340 materials (96%), 8 of the 18 distinct hashes. 341 effects have such programs, 1,004 in all.
  • What it doesn't lead to: the draw programs.
    • None of the 23,619 VS/PS/MS programs carries an effect name.
    • shaders.rpf stores programs grouped by kind, not by effect.
    • The graphics programs' 8-hex suffix groups them (1,228 suffixes over all 23,619 programs) but is not a joaat of the name. Only 1 of the 896 suffixes on effect-named programs appears on any graphics program.
    • So the carved programs' names, order and suffixes don't lead from an effect to its VS/PS.
  • Update (240180e): the effect records in shaders.rpf do lead there. @jeremygold02 found and documented them in this thread: per-stage program lists, a technique table and 24-byte pass records whose first six bytes select a program from each list. I reproduced all three of his records on my copy (the same shaders.rpf SHA-256): technique counts 1/106/106, passes 1/108/108, and first-pass mesh/pixel ordinals 11017/10943, 9143/8925 and 9089/8835. The doc now describes the format and narrows the open part to two things: a general locator for effect records, and which technique and pass the game picks at run time (RT-5).

Docs only. Rebased on main so the first_light.md link resolves; tests/test_docs_links.py passes (5/5). tests/test_docs_design_rows.py fails 3 subtests (design.md, README.md, testing.md) identically on main, which is PROC-106; this PR doesn't touch those pages.

Thanks

  • @dcastell1 for running the CPU tests and catching the broken first_light.md link on the old base.
  • @jeremygold02 for finding the effect-record format and checking it on three records, which turned this PR's negative result into a positive one.
  • @ramenbellic for the review that pinned down what the ordinals index (VS ∪ MS, PS and CS groups in offset order) and corrected the suffix counts.

Thanks

  • @DenRakEiw for the trial merge and docs checks on the rebased head.

By @rafaelpssz, with Claude Code (AI-assisted).

@dcastell1

Copy link
Copy Markdown
Contributor

Code read + CPU tests, 4d15315: the docs link test fails, so this would not pass CI as it stands:

AssertionError: [('docs/models.md', 'first_light.md', 'missing file')]

`docs/models.md` links to `first_light.md`, which is not in the tree. Either add the page in this PR or point the link at the existing file (if it is meant to be `character_skeleton.md` or `models.md` itself, say so in the PR). The other four checks pass.

@rafaelpssz
rafaelpssz force-pushed the docs/material-effects branch from 4d15315 to bc66db1 Compare November 22, 2026 17:32
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks, good catch. The branch was based on an old fork main from before #1906 added docs/first_light.md. Rebased on current main (bc66db1): the link now resolves and tests/test_docs_links.py passes 5/5. No change to the section text.

@dcastell1

Copy link
Copy Markdown
Contributor

Re-tested bc66db1: pass, tests/test_docs_links.py → 5 passed. The first_light.md link resolves now.

@jeremygold02

Copy link
Copy Markdown
Contributor

I checked the effect-to-draw-program link on a local Xbox 1.0.2.1 package. For three Banshee materials from levels.rpf, the effect record in shaders.rpf identifies the mesh and pixel programs for a named technique. The evidence supports narrowing the conclusion in this PR. Which technique the game selects for a given frame is still open.

These are absolute byte offsets in shaders.rpf (SHA-256 0bc1634594e51ca8e7ef5f2bc6f5b32b081ce779ac094d686de08ecb75dc24a8). The last two columns are zero-based ordinals within their respective stage groups. The table uses the first technique and its first pass in each effect.

Material Effect record Technique table First pass Technique string block Mesh ordinal Pixel ordinal
Windshield wiper mask 0x102860B8 0x10286162 0x1028616E 0x10286EE2 11017 10943
Stock rim 0x100D4774 0x100D4CF2 0x100D4EA2 0x100DBE1F 9143 8925
Stock tire 0x100C342A 0x100C39A7 0x100C3B57 0x100CACCC 9089 8835

To reproduce on your own copy, all multi-byte fields below are little-endian.

  1. At each effect record, read the one-byte name length and skip that many bytes (including the terminator), then skip one u32. Read six stage lists. Each starts with a u32 count followed by that many u32 ordinals.
  2. At the technique table, read a u32 count followed by four-byte entries. The low 15 bits of the first u16 give the name offset in the indicated string block. Byte 3 gives the pass count. A u32 total and 24-byte pass records follow the entries. The sum of the individual counts matches that total. The windshield has one technique and one pass. The rim and tire each have 106 techniques and 108 passes.
  3. The first six bytes of each pass select entries in the six stage lists. Zero means unused. Otherwise use stage_list[selector - 1]. The first windshield pass selects the only mesh and pixel entries. You can cross-check the result directly with the graphics program records in the archive.
  4. For an independent check against Leonida's carve index, the first deferred pass on the rim resolves to mesh/pixel offsets 0x40125D9 / 0xA738C7F. The tire resolves to 0x3FAA934 / 0xA64104C. The two mesh entries have identical display names, as do the two pixel entries. The packed pixel programs are 24,593 and 13,644 bytes respectively, and their expanded hashes differ. A name-only join loses this distinction.

I verified these three anchored records. I haven't established a general locator for all effects or the runtime conditions that select a pass. This also gives the isolated-draw work in #1889 a way to pick independently checkable program pairs.

AI-assisted analysis and verification.

rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…'s mesh and pixel programs

Found by @jeremygold02 in ItsNotRexed#2519 and reproduced on three records of the same
shaders.rpf. The run-time choice of technique and pass, and a general locator
for effect records, stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelpssz
rafaelpssz force-pushed the docs/material-effects branch from bc66db1 to 240180e Compare November 22, 2026 18:33
@rafaelpssz rafaelpssz changed the title docs/models.md: material shader hashes lead to effects, not to draw programs docs/models.md: material shader hashes lead to effects; effect records select the draw programs Nov 22, 2026
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @jeremygold02, this is the missing link. I reproduced all three records on my copy, which has the same shaders.rpf SHA-256 (0bc16345…), following your steps 1–3:

Record Stage list sizes Techniques Passes (total / sum of counts) First pass mesh / pixel
wiper mask 1, 1, 0, 0, 0, 0 1 1 / 1 11017 / 10943
rim 41, 53, 0, 0, 0, 3 106 108 / 108 9143 / 8925
tire 41, 53, 0, 0, 0, 3 106 108 / 108 9089 / 8835

All match your table. In 240180e the section describes the effect record, the technique table and the pass selectors, credited to you, with these three rows as the measurement. The open part is now narrower:

  • a general locator for all effect records;
  • which technique and pass the game draws with at run time (RT-5).

The earlier negatives still stand as they are, since the names, order and suffixes alone don't carry the link. I also retitled the PR.

@ramenbellic

Copy link
Copy Markdown

Code read of 240180e, three questions about reproducibility:

  1. The table gives the first pass's mesh ordinal as 11017, but the corpus has 9,282 mesh programs (d3d12_vulkan.md:2773, fssm_crosscheck.md), so the ordinal can't index the carved MS programs. What does it count (shaders.rpf order across all kinds, the carve index, per stage)? And in what order are the six stage lists? Without both, steps 1-3 can't be checked.
  2. 23,619 graphics programs, but the suffix count covers 23,016. What are the other 603? (The 195 GS are in neither count; worth saying.)
  3. The record format is confirmed on three records; until it's counted over all effects, marking it as a hypothesis would match AGENTS.md ("count over the whole corpus"). "String block" and the u32 after the name aren't defined yet.

Docs tests pass on this head. I didn't re-measure (that needs the game files).

AI-assisted code read (Claude Code).

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @ramenbellic, all three points hold. I re-measured on my copy (counts only) and addressed them in 61ab2b1:

  1. What the ordinals count. An ordinal is the program's position, in shaders.rpf offset order, within its group of the carve index (index.json sorted by offset):
    • List 0 = VS ∪ MS (11,518 programs). That's why 11017 can exceed the 9,282 MS. The rim's first-pass mesh entry 0x40125D9 has 1,272 VS and 7,871 MS before it, which makes it ordinal 9143; the tire's 0x3FAA934 has 1,266 + 7,823 before it, ordinal 9089. Both are the ordinals in the table. The rim's 41 list-0 entries are 37 MS and 4 VS.
    • List 1 = PS (12,101). The pixel entries 0xA738C7F and 0xA64104C are PS number 8925 and 8835, again as in the table.
    • List 5 = CS. On the rim and the tire its 3 entries are exactly the effect's own <effect>:RaytracingResolve programs, which ties this back to the material-hash result above it.
    • Lists 2–4 are empty in all three records, so the doc doesn't name their stages.
  2. The 603. The old 23,016 came from a filter I can't reconstruct, so I replaced it. All 23,619 VS/PS/MS have an 8-hex suffix: 1,228 distinct ones, the largest shared by 1,806 programs, 53 used once. The "1 of 896 CS suffixes" figure re-measures the same. The 195 GS are now named as left out of the 23,619.
  3. Hypothesis. Agreed. The section now says the format is checked on three records and is a hypothesis for the rest until it's counted over all effects. The u32 after the name is marked as not known. The string block is described only as what the name offsets point into, and the doc says the tables were located by offset because their position relative to the record isn't derived yet.

tests/test_docs_links.py: 5 passed.

@jeremygold02

jeremygold02 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for remeasuring in 61ab2b1. I walked both native SGD5 databases in the same Xbox 1.0.2.1 archive (SHA-256 0bc1634594e51ca8e7ef5f2bc6f5b32b081ce779ac094d686de08ecb75dc24a8). Two details affect how to implement the lookup.

Program ordinals restart at each database. The six counted groups have the following contents, classified using the DXIL program-kind field in each of the 26,503 containers.

SGD5 start Group 0 (VS + MS) Group 1 (PS) Group 2 (GS) Group 3 Group 4 Group 5 (CS)
0x9000 1,736 + 9,282 10,944 195 0 0 2,647
0x10287000 500 + 0 1,157 0 0 0 42

The windshield's 11017 is the last zero-based entry in the first database's group 0. Group 2 can now be identified from its 195 geometry programs. Groups 3 and 4 remain untyped. There is a direct check on indexing in the second database: all 42 group-5 ordinal references resolve to a program carrying the referring effect's name prefix in its own compute group. The same 42 ordinals give zero prefix matches if resolved against the archive-wide compute list sorted by offset. A lookup key therefore needs the database as well as the group and ordinal.

Effect-table census. Starting at the effect counts following group 5, I got these results without supplying any per-effect table or string offsets:

Effect-count offset Declared effects Effects with program refs Effects with a matching named table Techniques Passes
0xF9028DD 910 890 891 23,938 27,536
0x1054F5A5 22 22 22 1,099 1,262

For reproduction on a local copy:

  1. Start the six group walks at 0x10E39 and 0x10289C81. Each group begins with a little-endian u32 count. For each program, skip the u8-length-counted NUL-terminated label, one tag byte, the u32-length-counted payload, 152 fixed bytes, then a u32-length-counted trailer. The next u32 after group 5 gives the declared effect count.
  2. Within the effect region, locate u8-length-counted identifier names (length includes the NUL), skip the following opaque u32, and validate six counted u32 ordinal arrays against that database's group bounds. At each next effect boundary there is exactly one preceding u32-length-prefixed, NUL-bounded ASCII string pool ending there. For the last effect in each database the pool ends before a terminal 1 and zero padding to 0x10287000 or 0x10579000, respectively.
  3. The technique count can be reached by a forward walk. From the end of the six arrays, skip 80 bytes. Read four tables in order: each has a u32 record count followed by records of width 16, 24, 68 and 36 bytes, respectively. The next u32 is the technique count. I tested these widths using the public SGD2 state-table reader as a comparison. Independently, scan from the end of the six arrays for candidate technique-table starts at four-byte intervals relative to that position. For each 4-byte technique entry, the low 15 bits of its first u16 point to a string start relative to the pool data, and its fourth byte gives the pass count. The counts sum to the stored u32 before the 24-byte pass rows. The first six bytes of each row are selectors, each zero or a one-based index into its effect's corresponding list. Reject out-of-range selectors, offsets inside a string, or a table crossing the pool.

Exactly one named table satisfied these checks for each of the 913 effects in the named-table column. There are 20 effects with no program references. Nineteen have just the single-NUL pool. The remaining one has a named technique and one pass with all six selectors zero. It is included in the table above. The forward walk and the independent search agree for every named table. For all 19 nameless effects the forward walk lands on two explicit zero counts (techniques and passes). The u32 after the effect name remains opaque. The fixed widths establish the record boundaries in this build; the meanings of individual state fields need separate checks. This measures stored candidates across this archive; runtime technique selection is still open.

AI-assisted local verification. Only format observations and aggregate counts are included here.

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Reproduced your group walk on my copy (same SHA-256), with the starts at 0x10E39 and 0x10289C81 and the program layout as you describe (label, tag byte, payload, 152 bytes, trailer):

Database Group sizes 0–5 Effects declared (u32 after group 5)
first 11,018 / 10,944 / 195 / 0 / 0 / 2,647 910 (at 0xF9028DD)
second 500 / 1,157 / 0 / 0 / 0 / 42 22 (at 0x1054F5A5)

These match your table exactly, and the two databases add up to the whole carve: 11,518 VS + MS, 12,101 PS, 195 GS and 2,689 CS. That's also why my offset-order rank worked: all three records are in the first database, whose programs come first in the archive.

In 49cad88 the doc says ordinals count per database and the lookup key is (database, group, ordinal). It names group 2 as the GS, leaves groups 3–4 untyped, includes the walk table above, and records your second-database CS check. I haven't re-run the effect-table census yet, so the doc credits it to you and keeps the format beyond the three checked records as reported rather than confirmed. It also notes that the tables are found by a validated search, not a pointer, and that the u32 after the name is still opaque.

jeremygold02 added a commit to jeremygold02/Leonida that referenced this pull request Nov 22, 2026
Accept the shader hash emitted by rpf9dump, retain every matching effect, and expose its techniques and stored passes even when it has no named compute program.

Refs: ItsNotRexed#2519, ItsNotRexed#3036
@jeremygold02

Copy link
Copy Markdown
Contributor

I reproduced the data.rpf denominator with Leonida's pinned rpf9-explorer decoder (e2939175). The 2,921 recovered resources produced 3,175 decoded models and 3,340 material slots with 18 distinct Materials[].Shader values. Two local runs gave identical counts with zero model decode failures.

I compared those same slots against both native SGD5 effect directories. This resolves the ten material hashes missing from the compute-name lookup.

Lookup on this package Distinct material hashes Material slots
Effect name from any compute-program prefix 8 / 18 3,211 / 3,340
Effect name from a ray-tracing resolve compute-program prefix 7 / 18 3,210 / 3,340
Native effect name hashed directly 18 / 18 3,340 / 3,340
Native effect has a stored pass with both a vertex/mesh and a pixel selector 17 / 18 3,339 / 3,340

Each of the 18 material hashes has exactly one native effect record. The effect for the remaining slot has one technique with four compute-only passes. This distinction matters when deciding whether to look for a draw program for every material. Gameplay's choice among authored passes remains open.

To repeat the hash comparison with an existing model manifest, run python -I tools/sgd5_effects.py <shaders.rpf> --list-effects at #3036 commit 0029eba7. Count each Items[].Materials[].Shader occurrence against the shader_hash values in both databases' matches arrays. To inspect the passes for one value, use --shader-hash HEX to list its techniques, then add --technique NAME. The command returns group/ordinal and both archive offsets. All 932 native effect records have distinct hashes in this build.

AI-assisted, CPU-only package check on Windows.

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Reproduced with your tools/sgd5_effects.py --list-effects (#3036 at 0029eba7) on my copy (same shaders.rpf). It ran in 5 s with a 34 MiB peak.

count
databases 2
effect records / distinct name hashes 932 / 932
with a technique table 913
techniques 25,037 (23,938 + 1,099)
passes 28,798 (27,536 + 1,262)

Against my data.rpf model manifest (3,340 material slots, 18 distinct Shader values), all 18/18 hashes and 3,340/3,340 slots match an effect record, and none matches more than one.

This also reproduces your earlier census, so in 48cf8db it's no longer marked as "reported". The material table gains a row for the native match (18 of 18) next to the carved-compute-name one (8 of 18). The open points are now only the decoded pointers (the tables are found by a validated search) and the run-time pass choice. I haven't separately re-checked your 17/18 figure for effects with a vertex/mesh + pixel pass, so the doc doesn't state it.

jeremygold02 added a commit to jeremygold02/Leonida that referenced this pull request Nov 22, 2026
Follow the post-pass tables through the counted string pool and next record. Check both database terminators and keep opaque payload contents out of structural matching.

Refs: ItsNotRexed#2519, ItsNotRexed#3036
@jeremygold02

Copy link
Copy Markdown
Contributor

Thanks for independently checking the 18 material hashes. The effect-record locator now has a forward walk in #3036, commit c0439966. Starting at each database’s effect count, it reaches every record’s string pool, the next record, and finally the terminal word and zero padding. This addresses the table-location question for Xbox 1.0.2.1. The word immediately after the effect name still has unknown semantics.

After the pass records, the cursor consumes a counted array of four-byte words, a marker, two length-prefixed byte blocks and a packed entry count. For each entry, the tag 0x80000000 consumes four payload bytes. The other observed tags give the payload length. The following u32 gives the string-pool length. The low byte of the packed field gave the entry count in all 932 effects. Bits 8–23 were always zero. Treating the entire word as the count fails in 559 records.

I compared both readers on the same package. All 932 effect starts, string-pool starts and next-record boundaries agreed, as did every technique, pass and program reference (25,037 / 28,798 / 51,535). A synthetic opaque block containing a plausible effect header and a string pool containing an apparent second length prefix both parse at their declared boundaries. To repeat: python -I tests/test_sgd5_effects.py -v with LEONIDA_GAME_DIR set.

One constraint on runtime selection: all 3,339 draw-capable material slots reference effects with multiple distinct vertex/mesh–pixel program pairs. Treating the material’s bucket (low seven bits) as the zero-based technique ordinal yields an in-range technique for every one, but that technique lacks a paired vertex/mesh and pixel pass for 3,246 of those slots. The bucket by itself therefore cannot serve as a general draw-technique ordinal. Which technique the runtime selects remains open.

AI-assisted, CPU-only checks on Windows 11 25H2 build 26200.9974, Python 3.12.10, Intel Core Ultra 7 265K. Installed GPUs: NVIDIA GeForce RTX 5070 (621.01) and Intel Graphics (32.0.101.9150).

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Ran tests/test_sgd5_effects.py -v at c0439966 with LEONIDA_GAME_DIR pointing at my copy: 10/10 pass, including test_xbox_package_counts and test_ordinals_restart_in_each_database. It took 1 s, with a 30 MiB peak.

In the latest commit, the doc drops the "validated search" caveat and describes the forward walk from stored lengths, with the test as the check. The only open format point is now the u32 after the name. I left out the bucket-vs-technique observation for now, since I haven't re-measured it. Thanks again, this turned a negative section into a working lookup.

ItsNotRexed added a commit that referenced this pull request Nov 22, 2026
@jeremygold02

Copy link
Copy Markdown
Contributor

Following up on the remaining u32 immediately after the effect name. I can now reproduce its numeric value from the independently counted fields on 932/932 records. It never equals the serialized record length in this build. Its runtime use is still unknown.

Using byte lengths that exclude their own prefixes, let G be the total number of ordinals in the six program lists, T the technique count, P the pass count, W the post-pass word count, A and B the two opaque block lengths, E the total tagged and inline entry count, I the sum of inline payload lengths only, and S the string-pool length including terminating NULs.

x = 4*W + A + B
aligned = ((x + 7) // 8) * 8 if E else x
word = 48 + 8*(G + T + E) + 32*P + I + S + aligned

An exact rational fit to 728 first-database rows recovered integer coefficients. I held out every fifth first-database row (182/182 matches) and the entire second database (22/22 matches). I then computed the expression independently using #3036's forward reader and also matched 910/910 and 22/22. Always rounding up misses all 22 empty entry tables by six bytes. Rounding only when an inline entry exists misses all 10 tagged-only tables. Groups 3 and 4 are empty here, so their contributions in a build that uses them are unmeasured.

The evidence supports a derived size value for 1.0.2.1. Calling it a runtime allocation size or using it to jump to the next record would require different evidence. The verified sequential walk remains the way to locate the next record.

AI-assisted CPU-only checks on Intel Core Ultra 7 265K, Windows 11 Home 25H2 (26200.9974), Python 3.12.10. NVIDIA GeForce RTX 5070 (621.01) and integrated Intel Graphics (32.0.101.9150) were installed.

rafaelpssz added a commit to rafaelpssz/Leonida that referenced this pull request Nov 22, 2026
…'s mesh and pixel programs

Found by @jeremygold02 in ItsNotRexed#2519 and reproduced on three records of the same
shaders.rpf. The run-time choice of technique and pass, and a general locator
for effect records, stay open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rafaelpssz
rafaelpssz force-pushed the docs/material-effects branch from f76ee8e to db4ddd6 Compare November 22, 2026 20:56
@jeremygold02

Copy link
Copy Markdown
Contributor

I checked one concrete case of the material-to-program lookup on my 1.0.2.1 copy. A mesh's stored material slot resolved through #3036 to a pass with a vertex and a pixel program. The vertex signature declares only the system vertex ID. I selected the packed-index branch as a test input and supplied the vertex and index buffers referenced by that same geometry record.

  • The branch's index addressing reproduced 2,427/2,427 triangle corners in their original order across 14 meshlets. Swapping the first and third corners changed 1,618 indices. Omitting the per-meshlet reference start changed 2,187.
  • I checked the position instruction listing against the native program bytes and replayed the position block on CPU. 1,656/1,656 XYZ triples matched the pinned model decoder bit for bit at binary32 precision. Changing only the axis word produced zero exact matches. Three synthetic cases independently exercised the three axis permutations.

This ties a pass stored on one material to the same packed-geometry rules documented in #752 and #2601. The check supplies the descriptor contents and chooses the branch explicitly. Which pass and descriptor addresses the game installs at draw time, the later transforms, and the rendered pixels remain open.

CPU-only on an Intel Core Ultra 7 265K, Windows 11 Home 25H2 build 26200.9974, Python 3.12.10 and the pinned .NET decoder. NVIDIA GeForce RTX 5070 (621.01) and Intel Graphics (32.0.101.9150) were installed and idle. All derived data stayed local. AI-assisted.

@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @jeremygold02, this ties the material → effect → pass chain to the packed-geometry rules (#752, #2601) in a concrete case. The negative controls (swapped corners, a missing meshlet start, the wrong axis word) make it convincing. I haven't reproduced the VS replay here, so I've kept this docs PR to what it measures and reproduces: the format, the lookup and the counts. Your replay would make a strong section of its own next to #3036.

@jeremygold02

Copy link
Copy Markdown
Contributor

Following your suggestion, I put the worked replay in #3808. It includes the mesh/pass selection checks for a second local run. The paired vertex shader writes a record indexed by the first draw constant, and six compute shaders read the matching two-index layout. The RTX test identifies where those indices become indistinguishable in the currently tested translation. The same drawable's surface pass separately resolves all 46 authored material members. The actual frame's pass selection and bindings remain open.

ItsNotRexed pushed a commit that referenced this pull request Nov 22, 2026
Walk both native databases and resolve effect-local pass selections to the exact shader carve offsets. Include synthetic coverage and an opt-in package census for TEST-608.

Refs: #2519, #2891
ItsNotRexed pushed a commit that referenced this pull request Nov 22, 2026
Record the effect-local fixed-function table mapping and the full-corpus discriminator used for PROC-143.

Refs: #2519, #3036, #3047
ItsNotRexed added a commit that referenced this pull request Nov 22, 2026
# Conflicts:
#	docs/models.md
@rafaelpssz

Copy link
Copy Markdown
Contributor Author

Thanks @jeremygold02, #3808 is the right home for the replay. Keeping it out of this PR also leaves this one limited to the format and counts I reproduced here.

…the record's fields

@jeremygold02's formula, recomputed here on all 932 records (910 + 22);
the value never equals the serialized record length, so the walk still
finds the next record. Runtime use unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DenRakEiw

Copy link
Copy Markdown
Contributor

Tested head 203b207c7abb1b48999e70ab94fb1bf2fbd9fe59 on Windows 11 / Python 3.12.10.

  • Trial merge onto origin/main (d974c88a): clean (0 conflicts, git diff --cached --check clean).
  • python -I tests/test_docs_links.py: 6/6 passed.
  • python -I tests/test_docs_table_rows.py: 2/2 passed.
  • Code/doc read: docs/models.md (+17/-2) documents the computed-size formula for the u32 after each effect name and updates the open-items bullet to note that the runtime use remains unknown, with no game data included.

AI-assisted review (Gemini 4 Neon).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants