README: document xcl shaders --direct --hash and --dump #2647

Open
romeawayfromhome-rgb wants to merge 2 commits from upstream-pr/2657 into main
romeawayfromhome-rgb commented 2026-11-26 05:10:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T05:10:46Z.


Stacked on #2450; only the top commit belongs here.

What is in it

  • One README example line for --direct --hash/--dump/--compare, verified against main.rs HELP and shaders.rs at b49be18.

Tested

  • No build or test run: this was prepared on Linux, XCL is Windows-only, and the change is README-only.

Regression run

  • Not applicable, no runtime code changed.

Not tested

  • Windows build, GPU test suite, and smoke run not run.

AI use

  • Muse Spark, prepared the README line and this description; the account holder authorized the contribution loop.
<!-- greyfinch-sync:ivall/xcl:issue:5504386973 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2657). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T05:10:46Z. --- Stacked on #2450; only the top commit belongs here. **What is in it** - One README example line for --direct --hash/--dump/--compare, verified against main.rs HELP and shaders.rs at b49be18. **Tested** - No build or test run: this was prepared on Linux, XCL is Windows-only, and the change is README-only. **Regression run** - Not applicable, no runtime code changed. **Not tested** - Windows build, GPU test suite, and smoke run not run. **AI use** - Muse Spark, prepared the README line and this description; the account holder authorized the contribution loop.
luckyteagirl commented 2026-11-26 05:47:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:47:51Z.

Review: COMMENTED


Could the example qualify that --compare adds the HLSL path only when direct DXIL translation succeeds? On a direct refusal, the dump writes direct.err.txt, but the compare && r.is_ok() guard skips HLSL generation entirely. That matters when a user follows the example to investigate a failed direct translation and expects an alternate HLSL artifact. The HLSL path can also stop before .hlsl.dxil if translation or DXC fails. Exact-head source review at a4ad250e79590475042d0d65d070284c992350ba; no title or shader pack run. AI-assisted review with Codex.

<!-- greyfinch-sync:ivall/xcl:review:6069140407 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2657#pullrequestreview-6069140407). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T05:47:51Z. **Review:** COMMENTED --- Could the example qualify that `--compare` adds the HLSL path only when direct DXIL translation succeeds? On a direct refusal, the dump writes `direct.err.txt`, but the `compare && r.is_ok()` guard skips HLSL generation entirely. That matters when a user follows the example to investigate a failed direct translation and expects an alternate HLSL artifact. The HLSL path can also stop before `.hlsl.dxil` if translation or DXC fails. Exact-head source review at `a4ad250e79590475042d0d65d070284c992350ba`; no title or shader pack run. AI-assisted review with Codex.
github-actions[bot] commented 2026-12-01 02:33:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:00Z.


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:7298736151 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2657#issuecomment-7298736151). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:33:00Z. --- 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:35:58 +00:00 (Migrated from github.com)

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


Triage (#1607) – head a4ad250

Stacked on #2450 (it contains #2450's commit 0c0bdca); only the top commit a4ad250 belongs here. #2699 and #2709 are stacked on this PR, so they are not duplicates. The other README PRs with similar titles document other flags.
--direct, --hash, --dump and --compare are all parsed in shaders.rs on main. No problems found in the diff.
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:7305532043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2657#issuecomment-7305532043). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:35:58Z. --- **Triage (#1607)** – head a4ad250 Stacked on #2450 (it contains #2450's commit 0c0bdca); only the top commit a4ad250 belongs here. #2699 and #2709 are stacked on this PR, so they are not duplicates. The other README PRs with similar titles document other flags. `--direct`, `--hash`, `--dump` and `--compare` are all parsed in shaders.rs on main. No problems found in the diff. 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/2657:upstream-pr/2657'
git switch 'upstream-pr/2657'

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/2657'
git switch 'upstream-pr/2657'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2657'
git switch 'upstream-pr/2657'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2657'
git switch 'main'
git merge --squash 'upstream-pr/2657'
git switch 'main'
git merge --ff-only 'upstream-pr/2657'
git switch 'main'
git merge 'upstream-pr/2657'
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!2647
No description provided.