Include WGSL source in the error message when validation fails.
Without including the generated WGSL code in the error, the reader
has no context and the validation error is difficult or impossible
to understand. This matches how we handle validation failure in
SPIR-V.
Change-Id: Ifff7729795a888e558b4274461fdb405caf38047
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/705356
Commit-Queue: Herb Derby <herb@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Herb Derby <herb@google.com>
1 file changed