README: document xcl shaders --precompile --limit #2728

Open
github-bot wants to merge 2 commits from github-bot/gh-2728 into main AGit
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-26 09:03 UTC · original
romeawayfromhome-rgb:docs/precompile-limit-readme → main · +1 −0 · 1 files · 2 commits · draft

Documents the --limit N flag for xcl shaders --precompile, which the README usage block does not mention. The parser accepts --limit (crates/xcl/src/shaders.rs, default unlimited) and precompile processes only the first N input records (input.len().min(limit)). Verified against main b49be18; no open PR documents this flag.

What is in it

  • README.md: one example line for xcl shaders --precompile --limit 100 in the usage block

Tested

  • README-only change; no code touched. Flag name, default, and behaviour verified by reading crates/xcl/src/shaders.rs at b49be18. Not built or run: this VM is Linux and XCL builds on Windows only.

Regression run

  • Not applicable: README-only, no change under crates/xcl/src.

Not tested

  • Not run on Windows or any GPU; the example line itself was not executed.

AI use

  • Muse Spark via Muse, conducted by LegendaryGodKing: found the undocumented flag, verified it against the parser, wrote the README line and this description.
**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-26 09:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/2728) `romeawayfromhome-rgb:docs/precompile-limit-readme` → `main` · +1 −0 · 1 files · 2 commits · draft Documents the `--limit N` flag for `xcl shaders --precompile`, which the README usage block does not mention. The parser accepts `--limit` (crates/xcl/src/shaders.rs, default unlimited) and precompile processes only the first N input records (`input.len().min(limit)`). Verified against main b49be18; no open PR documents this flag. **What is in it** - README.md: one example line for `xcl shaders --precompile --limit 100` in the usage block **Tested** - README-only change; no code touched. Flag name, default, and behaviour verified by reading crates/xcl/src/shaders.rs at b49be18. Not built or run: this VM is Linux and XCL builds on Windows only. **Regression run** - Not applicable: README-only, no change under crates/xcl/src. **Not tested** - Not run on Windows or any GPU; the example line itself was not executed. **AI use** - Muse Spark via Muse, conducted by LegendaryGodKing: found the undocumented flag, verified it against the parser, wrote the README line and this description.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:04:41 +00:00
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 09:43 UTC · original · reviewed

The new comment says --limit 100 precompiles “the first 100 shaders,” but precompile() sets n = input.len().min(limit) before it parses entries or applies --only/--used-only. The limit bounds input records, not eligible shaders or compiled programs; one record can hold multiple programs, and filtered records still consume positions within the first 100. That distinction matters when someone uses this example to bound a short run.

Could the comment say “process at most the first 100 shader records” (the PR description already uses “records”)? This is exact-head source review only; I did not run the CLI for this wording change.

**@⁠luckyteagirl** on GitHub · 2026-11-26 09:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/2728#pullrequestreview-6071762405) · **reviewed** The new comment says `--limit 100` precompiles “the first 100 shaders,” but `precompile()` sets `n = input.len().min(limit)` before it parses entries or applies `--only`/`--used-only`. The limit bounds input **records**, not eligible shaders or compiled programs; one record can hold multiple programs, and filtered records still consume positions within the first 100. That distinction matters when someone uses this example to bound a short run. Could the comment say “process at most the first 100 shader records” (the PR description already uses “records”)? This is exact-head source review only; I did not run the CLI for this wording change.
Author
Owner

@⁠romeawayfromhome-rgb on GitHub · 2026-11-26 11:02 UTC · original

Thanks — updated in ae5a2f9. The example comment now reads "process at most the first 100 shader records".

**@⁠romeawayfromhome-rgb** on GitHub · 2026-11-26 11:02 UTC · [original](https://github.com/xcl-dev/xcl/pull/2728#issuecomment-7190173991) Thanks — updated in ae5a2f9. The example comment now reads "process at most the first 100 shader records".
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/2728/head:github-bot/gh-2728'
git switch 'github-bot/gh-2728'

Merge

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