Sign in
skia
/
skia
/
9f39daff8fd5e924afa750c2daf25fd16f107c2d
/
.
/
tests
/
sksl
/
workarounds
/
NegatedLdexpStandaloneSettings.glsl
blob: 1180f3d121f8bbefae030ade7ea819f7b5c34f66 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
float
unknownFloat
;
uniform
int
unknownInt
;
void
main
()
{
float
m
=
unknownFloat
;
int
x
=
unknownInt
;
sk_FragColor
.
x
=
ldexp
(
m
,
-
x
);
sk_FragColor
.
y
=
ldexp
(
m
,
-(
x
+
1
));
sk_FragColor
.
z
=
ldexp
(
m
,
-
x
-
1
);
}