skia2/resources/sksl/fp/GrChildProcessorAndGlobal.fp

11 lines
184 B
Plaintext
Raw Normal View History

in fragmentProcessor child;
bool hasCap = sk_Caps.externalTextureSupport;
half4 main() {
if (hasCap) {
return sample(child);
} else {
return half4(1);
}
}