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