skia2/tests/sksl
Arman Uguray b2b1d6553e [sksl][wgsl] Prevent empty pipeline stage structs
1. It is illegal to declare an empty struct in WGSL. The codegen no longer
declares an empty struct for pipeline stage inputs and outputs if the
program does not reference them.

2. WGSL requires that every vertex program declare a @builtin(position) output.
The codegen now emits this pipeline stage output even for an empty
program that doesn't assign to sk_Position. This allows unit tests for
vertex programs to be authored without unnecessary boilerplate.

Bug: skia:13092

Change-Id: Ib023200e2ba13acf96859817249686d7f815cb00
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/538418
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Arman Uguray <armansito@google.com>
2022-05-17 19:23:32 +00:00
..
blend Add ReducedBlendModeInfo to shared code. 2022-04-22 17:18:31 +00:00
errors Prevent comma operator constant-folding or constant-expression-usage. 2022-05-11 22:52:24 +00:00
folding Optimize away same-value ternaries. 2022-04-07 19:37:00 +00:00
glsl Added range highlighting to SkSL error reports 2022-04-07 13:29:48 +00:00
inliner Remove InlineMarker IR node. 2022-04-29 17:40:58 +00:00
intrinsics Optimize away self comparisons in SPIR-V. 2022-04-19 16:10:03 +00:00
metal Added range highlighting to SkSL error reports 2022-04-07 13:29:48 +00:00
runtime Add #version directive to SkSL 2022-05-17 15:42:31 +00:00
runtime_errors Move recursion tests into general /errors/ directory. 2022-04-28 21:25:41 +00:00
shared [sksl][wgsl] Enable WGSL validation using Tint 2022-05-17 18:25:01 +00:00
spirv Eliminate redundant loads following stores. 2022-04-18 14:57:48 +00:00
wgsl [sksl][wgsl] Prevent empty pipeline stage structs 2022-05-17 19:23:32 +00:00
workarounds Eliminate redundant loads following stores. 2022-04-18 14:57:48 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

This directory contains skslc-compiled output from matching source files
in the /resources/sksl/ directory.