skia2/tests/sksl/runtime/SampleWithVariableMatrix.rte
Brian Osman 977feec5d7 Add .rte -> .skvm unit test framework
Includes a handful of test cases to exercise the system

Change-Id: I98e73a8bca063f475d2ddb51778e395697392ddb
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/346637
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
2020-12-22 17:59:42 +00:00

8 lines
195 B
Plaintext

uniform shader child;
half4 main() {
float x = sqrt(1.0);
return sample(child, float3x3(x, 0, 0,
0, x, 0,
0, 0, 1));
}