PowerVR says
Swizzling the components of lowp vectors is expensive and should be avoided.
What exactly is swizzling?
color.brg // This fits the definition I'm familiar with.
But what about vec3(color.b, color.r, color.g)
, or vec3(color)
, when color is a vec4?
Does accessing or modifying a single component constitute a swizzle? I really wouldn't think so, but if not, then you could work around swizzling by just doing a few more assignment operations manually. I don't have a problem doing that, but it seems like magic to me, if you could get the same effect at a faster speed just by writing the code without swizzle notation.