[PR #17436] Display useful pixel shader compilation errors #31219

Open
opened 2026-01-31 09:45:52 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17436

State: closed
Merged: Yes


More descriptive warnings are triggered when custom pixel shader compilation fails.

If D3DCompileFromFile fails and the compiler generates an error message- the message is converted to a wstring and is sent as a parameter when calling p.warningCallback.
Changes were made to resources.resw and TermControl.cpp to accommodate this.

Validation Steps Performed

I tested the following errors that may be encountered while developing a custom pixel shader:

  1. Compile time errors
  2. File not found error
  3. Path not found error
  4. Access denied error

Fixes #17435

TAEF tests passed:
Summary: Total=294, Passed=294, Failed=0, Blocked=0, Not Run=0, Skipped=0

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17436 **State:** closed **Merged:** Yes --- More descriptive warnings are triggered when custom pixel shader compilation fails. If D3DCompileFromFile fails and the compiler generates an error message- the message is converted to a wstring and is sent as a parameter when calling p.warningCallback. Changes were made to resources.resw and TermControl.cpp to accommodate this. ## Validation Steps Performed I tested the following errors that may be encountered while developing a custom pixel shader: 1. Compile time errors 2. File not found error 3. Path not found error 4. Access denied error Fixes #17435 TAEF tests passed: Summary: Total=294, Passed=294, Failed=0, Blocked=0, Not Run=0, Skipped=0
claunia added the pull-request label 2026-01-31 09:45:52 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31219