does this contain implicit cast conversion:
vec2 v = vec2(0, 1);
does it have more instruction than the following after compiled to asm:
vec2 v = vec2(0.0, 1.0);
Thanks!
That cannot be known a priori. It would depend a great deal on the hardware and the implementation-specific compiler.
However, there is no reason to suspect that competent compilers would generate different code for these two cases.
1 Like
how about: float f = 1; and float f = 1.0; still totoally same after compiler?
thanks!