texture: add BC and volume readback #1098
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1105"
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 lambirou on 2026-11-24T01:05:23Z.
Change
Add a synthetic BC1–BC7 and volume readback table with byte-exact controls.
tools/texture_blocks.pymaps BC1–BC7 and a volume BC7 family to block size, bytes per blockand volume layout, and raises a named error for an unknown format.
tests/texture_bc_volume_check.pybuilds tagged BC blocks for each supported format and asmall 3D BC7 volume, then compares the readback with an independent CPU oracle.
format name in the exception.
This is offline byte-exact texture tooling. It does not claim a runtime upload, a GPU draw or a
console format path.
Verification
out\pe-env\Scripts\python.exe -B tests/texture_bc_volume_check.pyRan 10 tests ... OK.independent oracle.
named shape error; unknown format raises its name.
docs_links_check.py:Self-test passed.,Checked 15 Markdown files and 246 links..git diff --check origin/main...HEAD: clean.Evidence and follow-up
texture/bc-volume, head4480a13, based on the currentorigin/mainafterXCL-22.
tools; the oracle and first-difference controls guard against a self-consistent wrong layout.
docs/experiments.mdrecords the formats, volume shape and negative controls.separate work.
Checklist