Sign in
skia
/
skia
/
ed92d84ffd3aeb34c92e25ecb082f089703fc0ec
/
.
/
tests
/
sksl
/
runtime
/
DivideByZero.stage
blob: 5651a94fddefe49c3f34be787a2ec9b5bed30bc7 [
file
] [
log
] [
blame
]
uniform half4 colorGreen
;
uniform half4 colorRed
;
half4 main
(
float2 xy
)
{
int
one
=
int
(
colorGreen
.
y
);
int
zero
=
int
(
colorGreen
.
x
);
int
undefined
=
one
/
zero
+
zero
/
zero
;
return
half4
(
undefined
!=
9876543
?
colorGreen
:
colorRed
);
}