Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ xcl rpf D:\data\shaders.rpf --extract NAME --out folder
<details>
<summary><b>Switches, caches, logs and the files XCL writes</b></summary>

- **`--measure-pso`** times cold driver compilation of one exact compute or pixel shader record.
For pixel shaders it uses a synthesized vertex shader, render-target formats inferred from the
pixel shader signature, and one sample by default. Use `--pso-samples 4` to measure 4× MSAA
on an adapter that supports it for those formats. Set `XCL_D3D12_DEBUG=1` to enable D3D12 validation before device creation.
- **`--pipelines` size cap**: a compute program whose DXIL is over 8 MiB and that has no saved
blob is left to the runtime instead of being compiled in the pass — those compiles take tens
of minutes and gigabytes and stopped the pass on the biggest programs. `XCL_PIPELINE_MAX_KB`
Expand Down
5 changes: 3 additions & 2 deletions crates/xcl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ Usage:
--used-only skips compute shaders whose pipelines were not used in earlier runs.
--export-hlsl DIR [--count N] [--min-kb N] [--record-hash HEX]: writes deterministic
compute HLSL for investigation; an exact hash bypasses the size threshold.
--measure-pso HEX [--repeat N]: times cache-disabled driver compilation of one exact
compute record with XCL's real root signature and static samplers.
--measure-pso HEX [--repeat N] [--pso-samples N]: times cache-disabled driver compilation
of one exact compute or pixel shader record. Select MSAA for a pixel shader with
--pso-samples (default 1).
--direct [--sample N] [--seed S] [--validate] [--compare]: direct DXIL translator
coverage over a seeded sample (default 200 programs, 0 = all); also
--timeout, --max-bytes, --threads, --json, --hash H, --dump DIR.
Expand Down
Loading
Loading