skia2/tests/sksl/intrinsics/golden/Length.glsl
John Stiles e3e31811e6 Broaden intrinsic tests to cover more input types.
Change-Id: I4798263318c504834f23900dbb3f5d167fd17e65
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/348887
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-12-30 21:03:49 +00:00

9 lines
127 B
GLSL

out vec4 sk_FragColor;
in float a;
in vec4 b;
void main() {
sk_FragColor.x = length(a);
sk_FragColor.x = length(b);
}