552fcb9a1b
All internal usage has migrated to MakeFor..., this removes the old program kind, and updates some tests. Bug: skia:11813 Change-Id: I56733b071270e1ae3fab5d851e23acf6c02e3361 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402536 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
14 lines
298 B
Plaintext
14 lines
298 B
Plaintext
uniform half f;
|
|
uniform int i;
|
|
uniform bool b;
|
|
|
|
half4 main(float2 xy) {
|
|
// Covers float -> bool, bool -> float, int -> float
|
|
half x = bool(f) ? half(b) : half(i);
|
|
|
|
// Covers int -> bool, bool -> int, float -> int
|
|
int y = bool(i) ? int(b) : int(f);
|
|
|
|
return half4(x) * half(y);
|
|
}
|