3adc091af8
Change-Id: I6019418526def09c6c9f4b22567a2c76542d043c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/409876 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
10 lines
172 B
GLSL
10 lines
172 B
GLSL
layout(key) in bool test;
|
|
layout(ctype=SkPMColor4f, when=test) in uniform half4 color;
|
|
half4 main() {
|
|
if (test) {
|
|
return color;
|
|
} else {
|
|
return half4(1);
|
|
}
|
|
}
|