Add R8 SNORM PNG preview support #2323

Manually merged
github merged 1 commit from github-bot/gh-2323 into main 2026-11-26 18:35:47 +00:00 AGit
Owner

@⁠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 UTC

Adds 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 --check passed. No tests were run.

**@⁠ZroIsHere** on GitHub · 2026-11-26 13:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2323) `ZroIsHere:fix/dds-png-r8-snorm` → `main` · +11 −5 · 2 files · 1 commits · merged 2026-11-26 18:28 UTC Adds 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 --check` passed. No tests were run.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:50:17 +00:00
github manually merged commit 901d989e8c into main 2026-11-26 18:35:47 +00:00
Author
Owner

@⁠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.

  • Rename from #2247: _decode_single_channel is now _decode_channels, so your R8_SNORM branch sits in that function. The code is the same.
  • Test added: a synthetic R8_SNORM test.

Thanks @⁠ZroIsHere.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

**@⁠aslan2142** on GitHub · 2026-11-26 18:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2323#issuecomment-7200514602) Merged through the integration PR #2394 (DDS preview formats batch), as head `1c78f0fee`, with a merge commit, so your commits stay yours. - **Rename from #2247:** `_decode_single_channel` is now `_decode_channels`, so your R8_SNORM branch sits in that function. The code is the same. - **Test added:** a synthetic R8_SNORM test. Thanks @⁠ZroIsHere. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
This discussion has been locked. Commenting is limited to contributors.
No description provided.