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
/
ArrayTypes.sksl
1
struct S {
2
float2 v;
3
};
4
5
void initialize(out S[2] z) {
6
z[0].v = float2(0, 1);
7
z[1].v = float2(2, 1);
8
}
9
10
half4 main(float2 coords) {
11
float2 x[2];
12
x[0] = float2( 0, 0);
13
x[1] = float2( 1, 0);
14
float2 y[2];
15
y[0] = float2( 0, 1);
16
y[1] = float2(-1, 2);
17
S z[2];
18
initialize(z);
19
20
return half4(x[0][0] * x[0][1] + z[0].v[0], // R=0
21
x[1][0] - x[1][1] * z[0].v[1], // G=1
22
y[0][0] / y[0][1] / z[1].v[0], // B=0
23
y[1][0] + y[1][1] * z[1].v[1]); // A=1
24
}