Shaders: techniques and passes of every effect (shader-bindings) #158

Manually merged
github merged 7 commits from gh-pr/158/head into gh-pr/158/base 2026-11-26 20:14:14 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 13:50 UTC · original
holdmysocks:claude/shader-techniques → master · +121 −6 · 3 files · 7 commits · merged 2026-11-24 14:15 UTC

Third part of SIX-95, on top of #147 and #155 (both merged).

What

sixng shader-bindings <effect regex> now also prints the effect's techniques, each with its passes and the program of every stage of a pass, by name.

  • The technique table: u32 count, one u32 per technique (name offset, first pass, pass count), u32 passes, 24 bytes per pass (one program per stage as a 1-based index into the effect's program lists, eight flag bytes, a name offset, six more bytes).
  • Names come from the effect's last name table.
  • The table is found by its own rules (first name offset is 1, offsets rise, each technique's first pass follows the previous one's passes, the pass count is their sum, program numbers in range, every name offset starts an identifier), not by decoding what precedes it.

Checked on the game data

  • All 890 effects that have programs get their techniques: 23,937 techniques and 27,535 passes.
  • Every program of every effect is named by at least one pass (0 left over), which is a check on the table that the search rules do not enforce.
  • standard has 54 techniques (depthonly_drawmeshlets, forwardmirror_drawskinnedmeshlets, vfxvbuffer_draw ...).
  • The rest of the command is unchanged after the merge: 910 of 910 effects, 313,482 read records matched with --cache.
  • cargo test -p sixng-core passes; the synthetic-file test now covers techniques and passes.

Not decoded

  • The render states before the technique table, a pass's eight flag bytes and its last six bytes.
  • How the game picks a technique for a draw.
  • The optional viewer list of stages and bindings from SIX-95 is not built; the command's JSON is the only output.
**@⁠holdmysocks** on GitHub · 2026-11-24 13:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/158) `holdmysocks:claude/shader-techniques` → `master` · +121 −6 · 3 files · 7 commits · merged 2026-11-24 14:15 UTC Third part of SIX-95, on top of #147 and #155 (both merged). ## What `sixng shader-bindings <effect regex>` now also prints the effect's techniques, each with its passes and the program of every stage of a pass, by name. - The technique table: `u32 count`, one `u32` per technique (name offset, first pass, pass count), `u32 passes`, 24 bytes per pass (one program per stage as a 1-based index into the effect's program lists, eight flag bytes, a name offset, six more bytes). - Names come from the effect's last name table. - The table is found by its own rules (first name offset is 1, offsets rise, each technique's first pass follows the previous one's passes, the pass count is their sum, program numbers in range, every name offset starts an identifier), not by decoding what precedes it. ## Checked on the game data - All 890 effects that have programs get their techniques: 23,937 techniques and 27,535 passes. - Every program of every effect is named by at least one pass (0 left over), which is a check on the table that the search rules do not enforce. - `standard` has 54 techniques (`depthonly_drawmeshlets`, `forwardmirror_drawskinnedmeshlets`, `vfxvbuffer_draw` ...). - The rest of the command is unchanged after the merge: 910 of 910 effects, 313,482 read records matched with `--cache`. - `cargo test -p sixng-core` passes; the synthetic-file test now covers techniques and passes. ## Not decoded - The render states before the technique table, a pass's eight flag bytes and its last six bytes. - How the game picks a technique for a draw. - The optional viewer list of stages and bindings from SIX-95 is not built; the command's JSON is the only output.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:14:13 +00:00
github manually merged commit b62cb88076 into gh-pr/158/base 2026-11-26 20:14:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.