Will GL/DX compile floats as vec4's? Are vec3's basically vec4?
I assume that these whether compiled as vec4's or not, these are both 1 instruction?
vector.x += .5;
vector += vec4(.5,.5,.5,.5);
And even if they are both equal as 1 instruction/same time, does anyone know if it compiles a standard float to a vec4 or not? It saves memory to not do so, but I just assume everything goes through a float4 vector processor in the end. IE
a += .5; // would be (a,a,a,a) += (.5,.5,.5,.5);