skia2/resources/sksl/fp/GrConditionalInUniform.fp
Brian Osman 3adc091af8 Remove layout(tracked) from SkSL
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>
2021-05-18 17:44:54 +00:00

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);
}
}