struct float vs float3 vs float4 performance ?

Discussion created by spectral on Sep 29, 2010
Latest reply on Oct 1, 2010 by himanshu.gautam


Can I compare a struct like this one to a float 3 :

struct Vector3 { float x; float y; float z; }

1) If I use float 3, will it use SIMD ? and on the GPU
2) Comparing float3 vs float4, does the performance will be the same ?
3) If float3 use SIMD what's happening to the last 32 bits of the SIMD operation ?
4) Will the float3 use 3 floats size ? or 4 floats size ?