README: document xcl shaders --export-hlsl --count and --min-kb #2512

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/2522 into main
romeawayfromhome-rgb commented 2026-11-25 21:28:19 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-25T21:28:19Z.


The README's --export-hlsl example shows only --record-hash, but the built-in help documents two more options for the same mode: --count N and --min-kb N. This adds them to the example line so the export size/count controls are discoverable from the README.

What is in it

  • README.md: the --export-hlsl example line now lists [--count N] [--min-kb N] [--record-hash HEX].

Tested

  • Docs-only change; no code changed.
  • Verified the flags against HELP in crates/xcl/src/main.rs (--export-hlsl DIR [--count N] [--min-kb N] [--record-hash HEX]: writes deterministic compute HLSL for investigation; an exact hash bypasses the size threshold) and the parser in crates/xcl/src/shaders.rs at current main (6d12f58): defaults are min_kb: 1024 and count: 2, and a --record-hash selects exactly one record and bypasses the size threshold.
  • Confirmed the README had no --count or --min-kb mention before this change.

Regression run

  • Not applicable — README-only change, no runtime change.

Not tested

  • Not compiled or run locally — this VM has no Rust toolchain/Windows GPU; relying on CI. Opened as a draft per CONTRIBUTING.md until CI and review pass.

AI use

  • Muse Spark via Muse, for finding the HELP/README gap and drafting. Human conductor: Alexander Lerbakken (romeawayfromhome-rgb).
<!-- greyfinch-sync:ivall/xcl:issue:5499473594 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2522). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-25T21:28:19Z. --- The README's `--export-hlsl` example shows only `--record-hash`, but the built-in help documents two more options for the same mode: `--count N` and `--min-kb N`. This adds them to the example line so the export size/count controls are discoverable from the README. **What is in it** - README.md: the `--export-hlsl` example line now lists `[--count N] [--min-kb N] [--record-hash HEX]`. **Tested** - Docs-only change; no code changed. - Verified the flags against HELP in `crates/xcl/src/main.rs` (`--export-hlsl DIR [--count N] [--min-kb N] [--record-hash HEX]`: writes deterministic compute HLSL for investigation; an exact hash bypasses the size threshold) and the parser in `crates/xcl/src/shaders.rs` at current main (`6d12f58`): defaults are `min_kb: 1024` and `count: 2`, and a `--record-hash` selects exactly one record and bypasses the size threshold. - Confirmed the README had no `--count` or `--min-kb` mention before this change. **Regression run** - Not applicable — README-only change, no runtime change. **Not tested** - Not compiled or run locally — this VM has no Rust toolchain/Windows GPU; relying on CI. Opened as a draft per CONTRIBUTING.md until CI and review pass. **AI use** - Muse Spark via Muse, for finding the HELP/README gap and drafting. Human conductor: Alexander Lerbakken (romeawayfromhome-rgb).
DavidM1911 commented 2026-11-25 22:06:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T21:42:25Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7175434040 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2522#issuecomment-7175434040). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T21:42:25Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 20:43:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:30Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262307772 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2522#issuecomment-7262307772). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:43:30Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:15:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:15:54Z.


Triage (#1607) – head 2057907

No open or merged PR documents these flags. The other README PRs (#2382, #2450, #2657, #2699, #2728, #3088) each add a line for a different xcl shaders flag.
No problems found in the diff. --count and --min-kb exist in shaders.rs, and export_hlsl skips the min_kb threshold when --record-hash is given, as the new text says.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305088545 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2522#issuecomment-7305088545). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:15:54Z. --- **Triage (#1607)** – head 2057907 No open or merged PR documents these flags. The other README PRs (#2382, #2450, #2657, #2699, #2728, #3088) each add a line for a different `xcl shaders` flag. No problems found in the diff. `--count` and `--min-kb` exist in `shaders.rs`, and `export_hlsl` skips the `min_kb` threshold when `--record-hash` is given, as the new text says. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2522:upstream-pr/2522'
git switch 'upstream-pr/2522'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2522'
git switch 'upstream-pr/2522'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2522'
git switch 'upstream-pr/2522'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2522'
git switch 'main'
git merge --squash 'upstream-pr/2522'
git switch 'main'
git merge --ff-only 'upstream-pr/2522'
git switch 'main'
git merge 'upstream-pr/2522'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2512
No description provided.