Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
UniformArray.glsl
blob: e9029574cd7df64e2083053af31383500a9e2a5b [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
float
testArray
[
5
];
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
vec4 main
()
{
for
(
int
index
=
0
;
index
<
5
;
++
index
)
{
if
(
testArray
[
index
]
!=
float
(
index
+
1
))
{
return
colorRed
;
}
}
return
colorGreen
;
}