Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
b0245494c615e72dec1b56a80e13ae55719c94ff
/
.
/
tests
/
sksl
/
glsl
/
Functions.sksl
blob: d45627285e63fb9a2cd6121c52befc0b0aaa8897 [
file
] [
log
] [
blame
]
float
foo
(
float
v
[
2
])
{
return
v
[
0
]
*
v
[
1
];
}
void
bar
(
inout
float
x
)
{
float
y
[
2
],
z
;
y
[
0
]
=
x
;
y
[
1
]
=
x
*
2
;
z
=
foo
(
y
);
x
=
z
;
}
void
main
()
{
float
x
=
10
;
bar
(
x
);
sk_FragColor
=
half4
(
half
(
x
));
}