diff options
| author | AndréLanD <andreviniciusmerlia@gmail.com> | 2026-11-25 18:27:14 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-25 18:27:14 -0300 |
| commit | c9c44fa8ccc6d5f0f0bcab02bfc31e8b199306d0 (patch) | |
| tree | 6a0bcd6a7c459b547fea30d0d2272eda42cf5136 /docs | |
| parent | 9832d40f4a0ba1d3392a50cae46339f82db9928f (diff) | |
| parent | 9f0c75b909749506704709c6120dde3f9fb83f91 (diff) | |
Merge pull request #1921 from ShotTechOp/docs/gbuffer-and-rpf-tools
docs: document tools/gbuffer_census.py in gbuffer.md and tools/classify_carve.py in rpf.md (DOC-GBUFFER-AND-RPF-TOOLS)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/gbuffer.md | 13 | ||||
| -rw-r--r-- | docs/rpf.md | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/docs/gbuffer.md b/docs/gbuffer.md index de76f4746..9813a3306 100644 --- a/docs/gbuffer.md +++ b/docs/gbuffer.md | |||
| @@ -82,3 +82,16 @@ captured PSO): | |||
| 82 | verified against the lighting pass). | 82 | verified against the lighting pass). |
| 83 | - The runtime must therefore bind the PSO's declared `RTVFormats[]` rather than inferring `R16G16B16A16_FLOAT` for all | 83 | - The runtime must therefore bind the PSO's declared `RTVFormats[]` rather than inferring `R16G16B16A16_FLOAT` for all |
| 84 | G-buffer attachments from `OSG1` or `exp ... compr`. | 84 | G-buffer attachments from `OSG1` or `exp ... compr`. |
| 85 | |||
| 86 | ## 4. Reproducing the census (`tools/gbuffer_census.py`) | ||
| 87 | |||
| 88 | ```powershell | ||
| 89 | python -I tools/gbuffer_census.py <work>\shaders\dxbc [--disasm <dir>] [--payload-coverage] | ||
| 90 | ``` | ||
| 91 | |||
| 92 | Reads `index.json`, each pixel shader's `OSG1` output signature, and the matching `.s` listing under `--disasm` | ||
| 93 | (default `<dxbc>\disasm`), and prints JSON counts for four cohorts (all indexed PS, case-folded `deferred` entry | ||
| 94 | names, case-sensitive `Deferred` stems, and `PS_DeferredTextured` stems) with declared target counts, signature | ||
| 95 | layouts, and observed `exp mrtN` export modes (`compr` vs `uncompressed`). With `--payload-coverage`, it also counts | ||
| 96 | distinct whole FSSM payloads per cohort and histograms how many indexed entries share each payload. Standard library | ||
| 97 | only; outputs counts and layouts only (no shader text). | ||
diff --git a/docs/rpf.md b/docs/rpf.md index 7bc656845..8b374ce42 100644 --- a/docs/rpf.md +++ b/docs/rpf.md | |||
| @@ -129,6 +129,17 @@ scanners on a 48 MiB gap and checks that each one's Python heap peak stays under | |||
| 129 | The carve is read-only and works on any `.rpf`, `.ttpf` or archive-like file. It does not decrypt the TOC, use | 129 | The carve is read-only and works on any `.rpf`, `.ttpf` or archive-like file. It does not decrypt the TOC, use |
| 130 | keys, or write anything outside the output directory. | 130 | keys, or write anything outside the output directory. |
| 131 | 131 | ||
| 132 | Once one or more archives have been carved under `<work>\carve`, `tools/classify_carve.py` groups every entry by | ||
| 133 | signature using only the per-archive `index.json` files (no carved payload reads): | ||
| 134 | |||
| 135 | ```powershell | ||
| 136 | python -I tools/classify_carve.py <work>\carve | ||
| 137 | ``` | ||
| 138 | |||
| 139 | It classifies each entry as `bink2` (`KB2x`), `rbf0` (`52424630`), `respage` (`42400000`), `gpu-zerohdr` (16+ leading | ||
| 140 | zero bytes), or `other:<hex>` (first 4 bytes), prints a summary table, and writes `<work>\carve\types.json` with | ||
| 141 | overall and per-archive file counts, total bytes, and `min`/`max`/`median` (`median_low`) byte sizes. | ||
| 142 | |||
| 132 | ## Recovery tools | 143 | ## Recovery tools |
| 133 | 144 | ||
| 134 | `tools/rpf9dump` is a bulk exporter built on the Core library from | 145 | `tools/rpf9dump` is a bulk exporter built on the Core library from |