Shader tools: keep DXC timings out of JSON output #28

Merged
BBareth merged 1 commit from upstream-pr/29 into main 2026-11-22 12:52:41 +00:00
BBareth commented 2026-11-22 00:29:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by BBareth on 2026-11-22T00:29:18Z.


Sends DXC sample timings to stderr alongside compilation progress. This keeps stdout parseable when xcl shaders --json --compile N has a sample to compile.

Validation

  • Used a synthetic shader to reproduce invalid JSON on the prior Windows build under Wine.
  • Parsed the updated command's stdout as JSON, verified the DXC result fields, and checked that stderr contains the timing. The sample exercised the DXC failure path because the compiler was unavailable.
  • Shader aggregation unit test passed on Windows GNU under Wine.
<!-- greyfinch-sync:ivall/xcl:issue:6536339559 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/29). Originally posted by [BBareth](https://github.com/BBareth) on 2026-11-22T00:29:18Z. --- Sends DXC sample timings to stderr alongside compilation progress. This keeps stdout parseable when `xcl shaders --json --compile N` has a sample to compile. ## Validation - Used a synthetic shader to reproduce invalid JSON on the prior Windows build under Wine. - Parsed the updated command's stdout as JSON, verified the DXC result fields, and checked that stderr contains the timing. The sample exercised the DXC failure path because the compiler was unavailable. - Shader aggregation unit test passed on Windows GNU under Wine.
upstream-sync closed this pull request 2026-11-24 06:56:49 +00:00
ivall commented 2026-11-24 07:00:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-22T12:53:02Z.


Merged, thanks. Checked locally on Windows (MSVC): unit tests and the e2e tests, including the new one, pass.

<!-- greyfinch-sync:ivall/xcl:comment:7079417994 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/29#issuecomment-7079417994). Originally posted by [ivall](https://github.com/ivall) on 2026-11-22T12:53:02Z. --- Merged, thanks. Checked locally on Windows (MSVC): unit tests and the e2e tests, including the new one, pass.
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!28
No description provided.