tooling: report individual texture descriptors #469
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/475"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by venetanji on 2026-11-22T05:49:33Z.
Change
Add
--descriptor INDEXtotools/texture_descriptors.pyso a user can inspect a zero-based entry returned by--lookup-key. The JSON reports width, height, numeric DXGI format, mip-marker byte and the logical offset of the first 4 KiB page. The reader checks the archive and descriptor bounds and reads the selected 16-byte record after reading the headers.Builds on the bounded inventory in #266. Refs #458 for the archive-entry selection workflow.
Verification
Tested commit
80a4acb90d5024fe2482416f1e26e4071d37cef6, based on upstream25a00a731b181919e9364220ae1abe38914bfd01, on x86-64 Linux with Python 3.12.12.All passed, including 19 resource-range cases. With the unmodified tool,
python -B tests/resource_ranges_check.py ResourceChecks.test_texture_descriptor_detail_command -vfailed because the CLI exited 2 withunrecognized arguments: --descriptor 257. The new CLI reports the expected 12-by-44 descriptor and rejects out-of-range indices. The read-scope fixture permits only header and selected-record reads, forces short reads, and rejects a logical page beyond the archive.GitHub Actions passed all four jobs. The
resource_range_controlsCTest passed onwindows-2025in dev (1.19 s) and /O2 (1.48 s). CI runEvidence and follow-up
The tests use the repository's source-built RDS5 and ETPF fixture. The change and additions use the repository's MIT license. The README links to the command and its output fields in the experiment notes. The marker is reported as a raw byte. Mip residency and texture export require separate checks.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-22T05:49:49Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
80a4acbℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.