BC7 BCPack: fit the last 34 endpoint preset slots #31
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!31
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/31/head"
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?
@holdmysocks on GitHub · 2026-11-23 03:47 UTC · original
holdmysocks:claude/bc7-last-slots→master· +35 −35 · 2 files · 1 commits · merged 2026-11-23 04:01 UTCWith this, a decode of every BCPack chunk in the install (108,605 chunks, six codecs) leaves no unfitted block in any codec. Only the generated BC7 table file and one README passage change.
What was missing: 34 BC7 endpoint preset slots, reached only by textures with no plain neighbour mip: 839,119 blocks in 251 chunks (1.05 % of BC7 blocks; 17.7 % in the content-pack stores).
How they were fitted: against the library's own decode of the next smaller mip, in two passes (first only child mips that decode from fitted slots, 59 % of the blocks; then all), plus a small block-edge continuity term.
Why not edges alone: where every block of a texture starts from the slot, a constant offset per channel keeps all edges continuous. An edge-only fit left blue shifted by up to 129 levels.
The four textures still under 20 dB did not move between passes, so their error has another cause (to be looked at with the existing-slot refinement).
Score on the 1,029 chunks with plain references is unchanged. Library tests pass.