docs(textures_arrays): document tools/dds_png.py preview conversions and limits #2423

Open
github-bot wants to merge 1 commit from github-bot/gh-2423 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-27 03:17 UTC · original
ubiquitarianism:docs/textures-arrays-dds-preview → main · +33 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-TEXTURES-ARRAYS-DDS-PREVIEW (#1608)

What and why

  • Add a concise Preview conversions and limits (tools/dds_png.py) subsection to docs/textures_arrays.md covering RGB9E5, float formats, SNORM, UINT/SINT, R10G10B10A2, premultiplied alpha/sRGB handling, and BC6H / HDR clamping limits, verified directly against tools/dds_png.py.

Tested

  • Verified directly against tools/dds_png.py.
  • All tests/test_docs_*.py + tests/test_text_write_line_endings.py: OK.
  • python -I scripts/check_no_game_data.py docs/textures_arrays.md: exit 0.

GPUs tested: n/a

AI-assisted: yes (Antigravity gemini-4-neon)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — not a translator rule)
**@⁠Andretuta** on GitHub · 2026-11-27 03:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2423) `ubiquitarianism:docs/textures-arrays-dds-preview` → `main` · +33 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-TEXTURES-ARRAYS-DDS-PREVIEW (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why - Add a concise *Preview conversions and limits (`tools/dds_png.py`)* subsection to `docs/textures_arrays.md` covering `RGB9E5`, float formats, `SNORM`, `UINT`/`SINT`, `R10G10B10A2`, premultiplied alpha/sRGB handling, and `BC6H` / HDR clamping limits, verified directly against `tools/dds_png.py`. ### Tested - Verified directly against `tools/dds_png.py`. - All `tests/test_docs_*.py` + `tests/test_text_write_line_endings.py`: OK. - `python -I scripts/check_no_game_data.py docs/textures_arrays.md`: exit 0. GPUs tested: n/a AI-assisted: yes (Antigravity gemini-4-neon) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. *(n/a — not a translator rule)*
Document RGB9E5, float, SNORM, UINT/SINT, R10G10B10A2, premultiplied alpha/sRGB
handling, and the BC6H / HDR clamping limits verified against tools/dds_png.py.

AI-assisted: Antigravity gemini-4-neon.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:19:57 +00:00
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 06:02 UTC · original · approved these changes

Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (tests/ -k doc: 95 passed, 207 subtests) pass. Spot-checked against tools/dds_png.py on main: its header says BC6H is not supported (so the Limits line is right today; #2248 would change that, so whichever merges second should update this section), and the shared-exponent formula mantissa * 2^(exponent - 24) is the standard 2^(e-15-9). The SNORM -128/-127 note matches D3D's rule.

**@⁠tiguan26** on GitHub · 2026-11-27 06:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2423#pullrequestreview-6084147931) · **approved these changes** Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (`tests/` -k doc: 95 passed, 207 subtests) pass. Spot-checked against `tools/dds_png.py` on main: its header says BC6H is not supported (so the Limits line is right today; #2248 would change that, so whichever merges second should update this section), and the shared-exponent formula `mantissa * 2^(exponent - 24)` is the standard 2^(e-15-9). The SNORM -128/-127 note matches D3D's rule.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2423/head:github-bot/gh-2423'
git switch 'github-bot/gh-2423'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2423'
git switch 'github-bot/gh-2423'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2423'
git switch 'github-bot/gh-2423'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2423'
git switch 'main'
git merge --squash 'github-bot/gh-2423'
git switch 'main'
git merge --ff-only 'github-bot/gh-2423'
git switch 'main'
git merge 'github-bot/gh-2423'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.