WIP: Add R8 integer PNG preview support #2324
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2324
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/dds-png-r8-integer"
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?
Pull request successfully merged and closed
Adds PNG previews for DXGI_FORMAT_R8_UINT and DXGI_FORMAT_R8_SINT. UINT channel bytes are preserved as red values; signed values are shifted from [-128, 127] into the PNG byte range [0, 255]. Green and blue remain zero and alpha is opaque. The texture exporter documentation now lists both formats.
DXGI format reference: https://learn.microsoft.com/en-us/windows/win32/api/dxgiformat/ne-dxgiformat-dxgi_format
Validation: Python AST parsing and
git diff --checkpassed. No tests were run.Merged through the integration PR #2394 (DDS preview formats batch), as head
4ba0afc2d, with a merge commit, so your commits stay yours._decode_channels, #2247's new name for_decode_single_channel. The code is the same.Thanks @ZroIsHere.
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)