docs(textures_arrays): document tools/dds_png.py preview conversions and limits #2423
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2423"
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 Andretuta on 2026-11-27T03:17:21Z.
Claimed in the coordination issue as: DOC-TEXTURES-ARRAYS-DDS-PREVIEW (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7208856827)
What and why
tools/dds_png.py) subsection todocs/textures_arrays.mdcoveringRGB9E5, float formats,SNORM,UINT/SINT,R10G10B10A2, premultiplied alpha/sRGB handling, andBC6H/ HDR clamping limits, verified directly againsttools/dds_png.py.Tested
tools/dds_png.py.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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — not a translator rule)Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T06:02:03Z.
Review: APPROVED
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 againsttools/dds_png.pyon 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 formulamantissa * 2^(exponent - 24)is the standard 2^(e-15-9). The SNORM -128/-127 note matches D3D's rule.Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:02:33Z.
VERIFY-2423— verified head3be4d9cdc6merged cleanly withmain030d2039eon Windows 11 Pro (build 26200), synthetic DDS fixtures only.Red (
main030d2039e) -> Green (030d2039e+3be4d9cdc6)main:docs/textures_arrays.mdlacked### Preview conversions and limits (\tools/dds_png.py`), while livetools/dds_png.pyexercises those exact preview rules (R9G9B9E5_SHAREDEXPDXGI 67mantissa * 2^(exponent - 24)linear clamp, float+inf -> 255and-inf/ negative /NaN -> 0,R8_SNORM-128/-127 -> 0andR16G16B16A16_SNORM-32768/-32767 -> 0,R8_SINT+128bias,BC7reserved mode byte0transparent black, andBC6HDXGI 94..96 raisingDdsError`).docs/textures_arrays.md+tools/dds_png.pysynthetic DDS probe across all documented conversion cases -> OK.python -I tests/test_dds_png.py,tests/test_docs_links.py,tests/test_docs_encoding.py, andtests/test_text_write_line_endings.py-> all OK.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T18:28:44Z.
Red/green: Docs only: Documents tools/dds_png.py preview conversions and limits in docs/textures_arrays.md, matching the decoder on main.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure. Docs checked by a separate reviewer against the code on main.AI-assisted (Claude Code, Claude Opus 5.5)