CLI: the usage omits the documented shader precompile flags #2216
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2216
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?
@itsonewi on GitHub · 2026-11-25 10:01 UTC · original
xcl shadersimplements, and the README documents, an offline precompile workflow, butxcl --helpdoes not mention any of it.What the usage says
crates/xcl/src/main.rs,HELP(lines 20-49), thexcl shadersentry (lines 32-43), lists:What is implemented
crates/xcl/src/shaders.rslines 894-901:So
--precompile,--only <stage>,--pipelinesand--used-onlyare real, parsed options. The README uses them as the supported way to build pipelines ahead of a run:(README.md lines 222-223)
Why it matters
The offline precompile path is the workaround for the cold-PSO stalls the project is tracking (#2088, #1035, #1598): build the compute pipelines once, save the driver blobs, and the next run does not compile them at play time. A user who runs
xcl shaders --helpto find that workflow sees--recomp,--compileand--direct, none of which is it. The only pointer is the README, and the in-binary help is the natural place to look.#1468 (open) adds
xcl <command> --helpand a CLI test, but it prints this sameHELPstring, so the newxcl shaders --helpwill still omit the four flags.Suggested fix
xcl shadersblock inHELP, for example: (exact wording up to the maintainers; the point is that the flags appear with the other shader options.)--windows,--iface,--lanes,--limit,--split,--trace,--example) are internal, say so in a comment inshaders.rsor group them under a "developer options" line, so the gap is deliberate rather than accidental.cli_help.rstest from #1468: assert that each documented flag string appears in thexcl shaders --helpoutput. That keeps the help and the parser from drifting again.The same audit found no other missing user-facing flags in
disasm,rpforinspect; those help blocks match their parsers.Related
--helpprint the usage; does not change its contents.inspect.Scope
Read through the GitHub API at
568e7db; nothing was cloned, built or run.