dds_png: decode R8G8_SNORM previews #2317
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2317"
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 ubiquitarianism/leonida. Originally posted by ZroIsHere on 2026-11-26T13:46:01Z.
Summary
Add DDS preview decoding for DXGI R8G8_SNORM (format 51). Map its signed red and green channels from [-1, 1] to 8-bit values, with blue set to zero and alpha set to 255. The minimum encoded value maps to -1 as required for signed normalized formats.
The decoder validates row pitch and truncated payloads. Update the tex_export.py help text to include the format.
Validation
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T18:29:00Z.
Merged through the integration PR #2394 (DDS preview formats batch), as head
893f1a0f4, with a merge commit, so your commits stay yours.Thanks @ZroIsHere.
AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)