Hi Guys. I’m Just curious about a hlsl performance issue. Operations on float4 or float variables, which is faster? Or are they almost the same?
e.g.
float4 * float4 vs float * float
pow(float4, float4) vs pow(float, float)
lerp(float4, float4, float4) vs lerp(float, float, float)
sin(float4) vs sin(float)
This may help us write better materials. Anyone knows the underlying mechanism? Thanks.