Skip to content

docs: map shader roles for a world frame - #69

Merged
simnJS merged 2 commits into
MiamiGame:mainfrom
PrivacyOnion:docs/shader-roles
Nov 25, 2026
Merged

simnJS merged 2 commits into
MiamiGame:mainfrom
PrivacyOnion:docs/shader-roles

Conversation

@PrivacyOnion

Copy link
Copy Markdown
Contributor

What and why

Add a shader role map so a program hash in a frame log can be traced to
its rendering work. The map covers 212 programs, starting with the named
world-frame geometry, material, lighting, sky, fog and post-processing
programs and the local-light and screen-probe chains. It includes related
timing and refusal entries. The evidence and confidence columns show where
the available captures identify a role and where code supports an inference.
The frame summary does not give every pipeline binding, so some pass
variants still need identification.

Part of #59

Fixes: none
Depends on: none

Area

Analysis documentation and the shader role map track of the contributor guide.

Tests

  • cargo xtask pr-check passes on my machine
  • New or changed behaviour has tests that need no game files, or I explain below why it cannot
  • Ran on a title: no

Formatting, asset policy and conventions passed with this docs-only command.

cargo xtask pr-check --base upstream/main --title 'docs: map shader roles for a world frame' --skip test --skip clippy --skip clippy-diagnostics

Verified unique hashes, matching stages in both local inputs and all
evidence links. The change contains documentation only.

Provenance

  • I wrote all of this change myself for XTP, or it only moves code already in XTP.
  • Some of it comes from elsewhere. Each source, its licence and the files concerned are listed here, and every licence is compatible with GPL-3.0-or-later:

AI assistance: AI coding tools wrote this change, mainly OpenAI Codex.

Roles are written from XTP analysis notes and observations of privately
held shader records. No XCL or AnyPS5 source was read.

Checklist

  • No game data, keys, console SDK code or headers, and nothing that circumvents DRM (asset policy)
  • No code copied from xcl or AnyPS5 (references only: read them to understand, write your own)
  • I agree to license this contribution under GPL-3.0-or-later
  • Title and every commit follow <area>: <summary>; one topic; under 400 changed lines, or the reason is above
  • Docs updated where behaviour, commands or variables changed (README, docs/)

@github-actions github-actions Bot added area/docs docs/, Markdown size/M 100 to 399 changed lines labels Nov 25, 2026

@simnJS simnJS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this is a careful map: 212 unique hashes, every link resolves, and nothing from the title. A few points before I approve:

  1. 1cd9bc634417a981 (line 73): lighting-terms.md §3 also lists a directional-light term and a specular term. Please add them and cite §3.
  2. lighting-terms.md names four more programs: fb9c7f430da14c4c, 5741294cf872ffb9, f11c3ddeaeb7d602 and a5b1c338a9607317. Please add a row for each, here or in a follow-up.
  3. The rows that rest only on refusals §6.3 (lines 179–291) take their roles from the command list (refusals.md lines 309 and 317), so "medium" fits your own definition better than "high". The same goes for ebe4e53f031f5249 and 512416d975ace48b, since gpu-frame checked only three of that family.
  4. Nit: please use British spelling, "behaviour" (line 129).

Thanks again, this map will save the lighting investigation a lot of time.

Cite lighting-terms.md for the deferred lighting program's directional
and specular terms, add the four programs that note names, mark rows
resting only on the refusal command list as medium confidence, and use
British spelling.
@PrivacyOnion

Copy link
Copy Markdown
Contributor Author

Thanks for the review. All four points are updated in docs/analysis/shader-roles.md:

  1. 1cd9bc634417a981: added the directional-light term and the specular term to the role description and cited lighting-terms.md §3.
  2. Added rows under "Local lights and deferred shading" for fb9c7f430da14c4c, a5b1c338a9607317, 5741294cf872ffb9 and f11c3ddeaeb7d602, citing the relevant sections of lighting-terms.md (bringing the map to 216 unique hashes).
  3. Changed confidence from high to medium for all 81 rows resting only on refusals.md §6.3, and for ebe4e53f031f5249 and 512416d975ace48b in the GPU timing section.
  4. Fixed "behavior" to "behaviour" and updated the remaining American -ize/-ization spellings (initialises, rasterise/rasterised/rasterisation) to British spelling.

@simnJS simnJS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, all four points are in:

  • 1cd9bc634417a981 has the §3 terms;
  • the four new programs match §4.3 and §7;
  • every refusals-only row is now medium;
  • the spelling is British throughout.

Approving and merging.

@simnJS
simnJS merged commit 5854974 into MiamiGame:main Nov 25, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs docs/, Markdown size/M 100 to 399 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants