Hello,Three-components vector type is often used in engineering like velocity. Although built-in float3 is very convenient, it uses float4 for memory alignment which means memory waste. And the plain float array doesn't have this problem but the codes become a little more complex. What's the best practice for 3 components vector?Thanks!ZHAO Peng
For more complete information about compiler optimizations, see our Optimization Notice.