mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +01:00
[PR #1782] [MERGED] docs/shader_validation.md: document tools/d16_image_probe.py and tools/semantic_mutants.py (DOC-SHADER-VAL-D16-MUTANTS) #1794
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1794
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1782
Author: @ShotTechOp
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta
Base:
main← Head:docs/shader-validation-d16-and-mutants📝 Commits (1)
7ea654fdocs/shader_validation.md: document tools/d16_image_probe.py and tools/semantic_mutants.py (DOC-SHADER-VAL-D16-MUTANTS)📊 Changes
1 file changed (+44 additions, -0 deletions)
View changed files
📝
docs/shader_validation.md(+44 -0)📄 Description
Summary
Claimed in #1608 as
DOC-SHADER-VAL-D16-MUTANTS: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161808658Documents two existing shader-validation tools in
docs/shader_validation.mdthat were not yet mentioned anywhere indocs/:tools/d16_image_probe.py(placed right after its buffer-load counterparttools/d16_format_probe.py):image_load, pointimage_sample_lz, and bilinearimage_sample_lz(--frac) paths acrossunorm8,snorm8,unorm16,snorm16,float16, andfloat32(f16 halfway ties).--formats,--waves,--frac,--json,--hw-arch,--self-test), exit codes (0/1/2/77), and its unit test suitetests/test_d16_image_probe.py.tools/semantic_mutants.py(placed right before## Coverage plan and cost):tools/rdna2spirv.pyagainst atests/semantictest file viaLEONIDA_TOOLS_DIR(same hook astests/semantic/test_mutations.py).tests/semantic/test_alu_sad.pywith--op v_sad_u8(no stale hardcoded--linesrange), lists selectors (--op,--function,--lines),--list,--timeout, exit codes (0/1/2), andtests/test_semantic_mutants.py.Zero line overlap with open
#1605(which deduplicates lines 1998–2184).Testing
Environment: Windows 11 x64, Python 3.12.10, CPU-only (no GPU or game files; based on
0d80bc5).python -I tools/d16_image_probe.py --self-test->self-test okpython -I tools/semantic_mutants.py tests/semantic/test_alu_sad.py --op v_sad_u8 --list-> lists 31 mutants cleanly (exit 0)python -m unittest discover -s tests -p "test_docs_*.py"-> all doc-integrity suites passpython -I scripts/check_no_game_data.py docs/shader_validation.md-> exit 0git diff --check-> cleanAI-assisted: yes (Antigravity). Docs-only; no game data.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.