projects
/
platform
/
core
/
uifw
/
rive-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git]
/
submodule
/
skia
/
resources
/
sksl
/
inliner
/
ShortCircuitEvaluationsCannotInlineRightHandSide.sksl
1
uniform half4 colorWhite;
2
3
inline bool testA(half4 v) {
4
return bool(v.r);
5
}
6
7
inline bool testB(half4 v) {
8
return bool(v.g);
9
}
10
11
half4 main(float2 coords) {
12
half4 result = half4(0);
13
if (testA(colorWhite) && testB(colorWhite)) {
14
result.g = 1;
15
}
16
if (testB(colorWhite) || testA(colorWhite)) {
17
result.a = 1;
18
}
19
return result;
20
}