skia2/tests/sksl/intrinsics/Clamp.glsl
John Stiles 6742d13cbe Add tests for int overloads of various intrinsics.
Checking each variation can occasionally shake out extra bugs--for
instance, the mix intrinsic in SPIR-V breaks when adding coverage for
its various overloads here. (See skia:11222; this will be addressed in
a separate CL.)

Change-Id: I2c3ca7523e59d4c6cce25a70e081a558afedfb87
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359758
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-01-26 22:49:20 +00:00

13 lines
187 B
GLSL

out vec4 sk_FragColor;
in float a;
in float b;
in float c;
in int d;
in int e;
in int f;
void main() {
sk_FragColor.x = clamp(a, b, c);
sk_FragColor.x = float(clamp(d, e, f));
}