docs: UAV float clears round toward zero, as the code does (DOC-UAV-CLEAR-ROUNDING) #945

Manually merged
github merged 1 commit from gh-pr/945/head into gh-pr/945/base 2026-11-26 09:29:48 +00:00
Owner

@⁠TheGeogeo on GitHub · 2026-11-24 15:26 UTC · original
TheGeogeo:docs/uav-clear-rounding → main · +4 −4 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC

Claimed in the coordination issue as: DOC-UAV-CLEAR-ROUNDING (#14)

What and why

docs/d3d12_vulkan.md (the UAV clear bullet, about line 325) said the 16-bit and packed 11/10-bit float UAV clears round to nearest even. The code does not. runtime/src/uav_clear.h documents and implements round toward zero in small_float, with a finite value too large becoming the largest finite value (D3D11.3 3.2.2) and infinity staying infinity. This changes only that sentence (and rewraps the lines after it) so the doc matches the code. No code, tests or other text are changed.

Tested

  • python -I -B tests/test_docs_links.py: Ran 16 tests, OK.
  • tests/test_docs_tables.py does not exist in the repo, so it was not run.
  • git diff --check: no output, exit 0.
  • python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md: exit 0.
  • The diff is one sentence in docs/d3d12_vulkan.md, rewrapped. No GPU tests were run; this is a documentation-only change.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

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. (Not applicable: no translator rule.)
**@⁠TheGeogeo** on GitHub · 2026-11-24 15:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/945) `TheGeogeo:docs/uav-clear-rounding` → `main` · +4 −4 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC Claimed in the coordination issue as: DOC-UAV-CLEAR-ROUNDING (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `docs/d3d12_vulkan.md` (the UAV clear bullet, about line 325) said the 16-bit and packed 11/10-bit float UAV clears round to nearest even. The code does not. `runtime/src/uav_clear.h` documents and implements round toward zero in `small_float`, with a finite value too large becoming the largest finite value (D3D11.3 3.2.2) and infinity staying infinity. This changes only that sentence (and rewraps the lines after it) so the doc matches the code. No code, tests or other text are changed. ### Tested - `python -I -B tests/test_docs_links.py`: Ran 16 tests, OK. - `tests/test_docs_tables.py` does not exist in the repo, so it was not run. - `git diff --check`: no output, exit 0. - `python -I scripts/check_no_game_data.py docs/d3d12_vulkan.md`: exit 0. - The diff is one sentence in `docs/d3d12_vulkan.md`, rewrapped. No GPU tests were run; this is a documentation-only change. GPUs tested: n/a AI-assisted: yes (Claude Code) ### 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. (Not applicable: no translator rule.)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:29:45 +00:00
github manually merged commit e728a42a67 into gh-pr/945/base 2026-11-26 09:29:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.