Add R10G10B10A2_UINT PNG preview support #2320

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

@⁠ZroIsHere on GitHub · 2026-11-26 13:46 UTC · original
ZroIsHere:fix/dds-png-r10-uint → main · +3 −3 · 2 files · 1 commits · merged 2026-11-26 18:28 UTC

Adds PNG preview support for DXGI_FORMAT_R10G10B10A2_UINT. The decoder extracts the packed 10:10:10:2 channels and scales each integer channel to the PNG byte range using the existing bitmask conversion path. The texture exporter documentation now lists this format as supported.

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:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2320) `ZroIsHere:fix/dds-png-r10-uint` → `main` · +3 −3 · 2 files · 1 commits · merged 2026-11-26 18:28 UTC Adds PNG preview support for DXGI_FORMAT_R10G10B10A2_UINT. The decoder extracts the packed 10:10:10:2 channels and scales each integer channel to the PNG byte range using the existing bitmask conversion path. The texture exporter documentation now lists this format as supported. 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:12 +00:00
github manually merged commit df81f60232 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 943bba2dd, with a merge commit, so your commits stay yours.

Added on top:

  • Test: a synthetic R10G10B10A2_UINT test, checked against the UNORM decode of the same texels.
  • Test update: two test_tex_export.py cases had used DXGI 25 as an undecodable format, and your change made it decodable. They now use R8G8B8A8_UINT (30).

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/2320#issuecomment-7200513850) Merged through the integration PR #2394 (DDS preview formats batch), as head `943bba2dd`, with a merge commit, so your commits stay yours. Added on top: - **Test:** a synthetic R10G10B10A2_UINT test, checked against the UNORM decode of the same texels. - **Test update:** two `test_tex_export.py` cases had used DXGI 25 as an undecodable format, and your change made it decodable. They now use R8G8B8A8_UINT (30). 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.