textures: return the typed DXGI value for BC4 UNORM #3277
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3277
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3275"
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?
@wish131400 on GitHub · 2026-11-28 04:52 UTC · original
wish131400:textures/bc4-unorm-dxgi→main· +21 −3 · 4 files · 1 commits · merged 2026-11-28 05:02 UTCtexture_blocks.format_info("BC4_UNORM")currently returns 79, the public DXGI value forBC4_TYPELESS. Return the typed UNORM value, 80. Both have eight-byte blocks, so layout checks alone did not expose the mismatch.Correct both existing format-table expectations and document the limited scope of this fix. This changes format metadata; it does not establish a change in rendered textures or BCPack decoding.
Validation on Windows 10, Python 3.14, based on
240e0fb9c460f24d51683abe2d4cce2800b136c1:python -B tests/texture_blocks_check.py: 6 tests passed.python -B tests/texture_bc_volume_check.py: 11 tests passed.79 != 80.dxgiformat.h.git diff --checkpassed.All fixtures are synthetic. No SDK redistributables or captured assets are included.
@R0Y00 on GitHub · 2026-11-28 05:02 UTC · original · approved these changes
Independent check on
ad9a0c5a: the installed Windows SDK 10.0.26100dxgiformat.hdefinesBC4_TYPELESSas 79 andBC4_UNORMas 80.python -B tests/texture_blocks_check.pypassed 6/6 andpython -B tests/texture_bc_volume_check.pypassed 11/11. Reverting just the format number in the isolated worktree made both suites fail with79 != 80; the original bytes were restored. The block extent and size are unchanged.