skia2/resources/sksl
John Stiles d8fc95dc02 Add default uniform set value to SkSL Program settings.
This allows uniforms to be specified without an explicit `layout(set=N)`
modifier. They will assume a default set value instead.

This turns out to fix a handful of tests in Metal/SPIR-V which were
written with GLSL in mind, or adapted from real generated GLSL code, and
didn't have layout information specified on their uniforms. It will also
make it easier to write SkSL tests using uniforms that can compile
either as a runtime effect or as plain Metal/SPIR-V code.

Change-Id: Id79ec06f278b913a45c09c2e6211195dc98b42c0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359838
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
2021-01-27 00:52:16 +00:00
..
blend Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
errors Fix fuzzer-discovered error with variable scoping. 2021-01-26 17:08:59 +00:00
folding Avoid relying on bit-perfect irrational numbers in test code. 2021-01-25 21:27:19 +00:00
fp Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
glsl Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
inliner Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
intrinsics Add tests for int overloads of various intrinsics. 2021-01-26 22:49:20 +00:00
metal Allow Metal shaders to return half4 colors. 2021-01-22 23:24:02 +00:00
runtime Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
runtime_errors Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
shared Add default uniform set value to SkSL Program settings. 2021-01-27 00:52:16 +00:00
spirv Improve memory layout handling in SPIRV generator 2021-01-22 22:16:48 +00:00
workarounds Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00
README.txt Migrate SkSL test inputs to the resources/ directory. 2021-01-22 18:57:29 +00:00

This directory contains source files for testing skslc compilation.
The compiled output files are in the /tests/sksl/ directory.