dds_png: preview R8 and R8G8 UNORM texture exports #2247

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

@⁠kirigayakazima on GitHub · 2026-11-26 10:23 UTC · original
kirigayakazima:codex/dds-png-r8-rg8-unorm → main · +25 −6 · 2 files · 1 commits · merged 2026-11-26 18:28 UTC

Claimed in the coordination issue as: DDS-PNG-R8-RG8-UNORM

Depends on: #2218, #2158, #2157 (overlapping DDS layout or dispatch edits). #2248 (adjacent texture dispatch cases; retain both on integration). Each branch builds directly on main. These references flag textual merge conflicts.

What and why

Preview DXGI R8_UNORM and R8G8_UNORM exports with their stored red and green components, zero for absent color channels and opaque alpha. Cover padded rows and truncated input. These are formats the repository’s TTPF tooling can already export.

Tested

Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_dds_png_dx10.py
  • python -I tests/test_dds_png.py
  • python -I tests/test_dds_subresources.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-26 10:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2247) `kirigayakazima:codex/dds-png-r8-rg8-unorm` → `main` · +25 −6 · 2 files · 1 commits · merged 2026-11-26 18:28 UTC Claimed in the coordination issue as: [DDS-PNG-R8-RG8-UNORM](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) Depends on: #2218, #2158, #2157 (overlapping DDS layout or dispatch edits). #2248 (adjacent texture dispatch cases; retain both on integration). Each branch builds directly on main. These references flag textual merge conflicts. ### What and why Preview DXGI R8_UNORM and R8G8_UNORM exports with their stored red and green components, zero for absent color channels and opaque alpha. Cover padded rows and truncated input. These are formats the repository’s TTPF tooling can already export. ### Tested Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change. - `python -I tests/test_dds_png_dx10.py` - `python -I tests/test_dds_png.py` - `python -I tests/test_dds_subresources.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:24:24 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:42 UTC · original

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_dds_png_dx10.py: 6 passed, 4 subtests passed (main: 5 passed, 2 subtests).

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2247#issuecomment-7189729878) Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_dds_png_dx10.py`: 6 passed, 4 subtests passed (main: 5 passed, 2 subtests). (AI-assisted test run; output checked by hand.)
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 11:08 UTC · original · reviewed

Windows 11: 6/6 DX10 tests passed. I also ran the isolated CLI on synthetic 3×2 R8 and R8G8 textures with padded rows and the final row's trailing padding omitted. Both PNGs matched the expected channel values and alpha byte-for-byte. No findings.

AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 11:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2247#pullrequestreview-6073066390) · **reviewed** Windows 11: 6/6 DX10 tests passed. I also ran the isolated CLI on synthetic 3×2 R8 and R8G8 textures with padded rows and the final row's trailing padding omitted. Both PNGs matched the expected channel values and alpha byte-for-byte. No findings. AI-assisted.
github manually merged commit 4894d72395 into main 2026-11-26 18:35:48 +00:00
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-26 18:28 UTC · original

Merged through the integration PR #2394 (DDS preview formats batch), as head f833599c8, with a merge commit, so your commits stay yours.

  • Nothing changed in your code.
  • The batch only rewrote the module docstring into one list of formats.

Thanks @⁠kirigayakazima, and thanks to DeadlyChirp and lixonik for the Windows runs.

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

**@⁠aslan2142** on GitHub · 2026-11-26 18:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2247#issuecomment-7200511391) Merged through the integration PR #2394 (DDS preview formats batch), as head `f833599c8`, with a merge commit, so your commits stay yours. - Nothing changed in your code. - The batch only rewrote the module docstring into one list of formats. Thanks @⁠kirigayakazima, and thanks to DeadlyChirp and lixonik for the Windows runs. 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.