skia2/resources/sksl/fp/GrChildProcessorFieldAccess.fp

11 lines
182 B
Plaintext
Raw Normal View History

in fragmentProcessor child;
bool opaque = child.preservesOpaqueInput;
half4 main() {
if (opaque) {
return sample(child);
} else {
return half4(0.5);
}
}