skia2/resources/sksl/fp/GrConditionalInUniform.fp

10 lines
172 B
Plaintext
Raw Normal View History

layout(key) in bool test;
layout(ctype=SkPMColor4f, when=test) in uniform half4 color;
half4 main() {
if (test) {
return color;
} else {
return half4(1);
}
}