Add R8 SNORM PNG preview support #2323
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2323
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2323"
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?
@ZroIsHere on GitHub · 2026-11-26 13:47 UTC · original
ZroIsHere:fix/dds-png-r8-snorm→main· +11 −5 · 2 files · 1 commits · merged 2026-11-26 18:28 UTCAdds PNG preview support for DXGI_FORMAT_R8_SNORM. The decoder maps the signed normalized red channel from [-1, 1] to [0, 255], and writes opaque alpha with green and blue set to zero. The texture exporter documentation now lists the format.
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.@aslan2142 on GitHub · 2026-11-26 18:29 UTC · original
Merged through the integration PR #2394 (DDS preview formats batch), as head
1c78f0fee, with a merge commit, so your commits stay yours._decode_single_channelis now_decode_channels, so your R8_SNORM branch sits in that function. The code is the same.Thanks @ZroIsHere.
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)