Source code
Revision control
Copy as Markdown
Other Tools
# WARNING: This file is auto-generated. Do NOT modify it manually, but rather
# modify the generating script file. Otherwise changes will be lost!
# See split-swizzles.js
group bvec2_swizzles "bvec2 swizzles"
case mediump_bvec2_x
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bool out0 = [ true | false | false | true | false ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.x;
${OUTPUT}
}
""
end
case mediump_bvec2_xx
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.xx;
${OUTPUT}
}
""
end
case mediump_bvec2_xy
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.xy;
${OUTPUT}
}
""
end
case mediump_bvec2_yx
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.yx;
${OUTPUT}
}
""
end
case mediump_bvec2_yxy
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.yxy;
${OUTPUT}
}
""
end
case mediump_bvec2_xyxx
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.xyxx;
${OUTPUT}
}
""
end
case mediump_bvec2_yyyy
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.yyyy;
${OUTPUT}
}
""
end
case mediump_bvec2_s
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bool out0 = [ true | false | false | true | false ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.s;
${OUTPUT}
}
""
end
case mediump_bvec2_ss
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.ss;
${OUTPUT}
}
""
end
case mediump_bvec2_st
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.st;
${OUTPUT}
}
""
end
case mediump_bvec2_ts
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.ts;
${OUTPUT}
}
""
end
case mediump_bvec2_tst
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.tst;
${OUTPUT}
}
""
end
case mediump_bvec2_stss
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.stss;
${OUTPUT}
}
""
end
case mediump_bvec2_tttt
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.tttt;
${OUTPUT}
}
""
end
case mediump_bvec2_r
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bool out0 = [ true | false | false | true | false ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.r;
${OUTPUT}
}
""
end
case mediump_bvec2_rr
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, true) | bvec2(false, false) | bvec2(false, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.rr;
${OUTPUT}
}
""
end
case mediump_bvec2_rg
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.rg;
${OUTPUT}
}
""
end
case mediump_bvec2_gr
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec2 out0 = [ bvec2(false, true) | bvec2(false, false) | bvec2(true, false) | bvec2(true, true) | bvec2(false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.gr;
${OUTPUT}
}
""
end
case mediump_bvec2_grg
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec3 out0 = [ bvec3(false, true, false) | bvec3(false, false, false) | bvec3(true, false, true) | bvec3(true, true, true) | bvec3(false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.grg;
${OUTPUT}
}
""
end
case mediump_bvec2_rgrr
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(true, false, true, true) | bvec4(false, false, false, false) | bvec4(false, true, false, false) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.rgrr;
${OUTPUT}
}
""
end
case mediump_bvec2_gggg
values
{
input bvec2 in0 = [ bvec2(true, false) | bvec2(false, false) | bvec2(false, true) | bvec2(true, true) | bvec2(false, false) ];
output bvec4 out0 = [ bvec4(false, false, false, false) | bvec4(false, false, false, false) | bvec4(true, true, true, true) | bvec4(true, true, true, true) | bvec4(false, false, false, false) ];
}
both ""
precision mediump float;
${DECLARATIONS}
void main()
{
${SETUP}
out0 = in0.gggg;
${OUTPUT}
}
""
end
end # bvec2_swizzles