Sign in
fuchsia
/
third_party
/
spirv-cross
/
refs/tags/2020-05-19
/
.
/
shaders-hlsl
/
frag
/
bit-conversions.frag
blob: faacdc0f15cb534d78d7817ee6f2535feb2445eb [
file
] [
log
] [
blame
]
#version 310 es
precision mediump
float
;
layout
(
location
=
0
)
in
vec2 value
;
layout
(
location
=
0
)
out
vec4
FragColor
;
void
main
()
{
int
i
=
floatBitsToInt
(
value
.
x
);
FragColor
=
vec4
(
1.0
,
0.0
,
intBitsToFloat
(
i
),
1.0
);
}