Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
SwizzleScalarInt.glsl
blob: 2af06b95662cd59ee431ab0e6692c97b0d3c8d1b [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform
float
unknownInput
;
vec4 main
()
{
int
i
=
int
(
unknownInput
);
ivec4 i4
=
ivec4
(
i
);
i4
=
ivec4
(
ivec2
(
i
),
0
,
1
);
i4
=
ivec4
(
0
,
i
,
1
,
0
);
i4
=
ivec4
(
0
,
i
,
0
,
i
);
return
vec4
(
i4
);
}