Sign in
skia
/
skia
/
8d2fb64247f0f8f5e00f6895464f94ab705c9b83
/
.
/
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
);
}