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
/
shared
/
Functions.sksl
1
/*#pragma settings NoInline*/
2
3
uniform half4 colorGreen, colorRed;
4
5
float foo(in const float2 v) {
6
return v.x * v.y;
7
}
8
9
void bar(inout float x) {
10
float y[2];
11
y[0] = x;
12
y[1] = x * 2;
13
x = foo(float2(y[0], y[1]));
14
}
15
16
half4 main(float2 coords) {
17
float x = 10;
18
bar(x);
19
return x == 200 ? colorGreen : colorRed;
20
}