int -> {int,int,int}
float -> {float,float,float}
float2 -> {float2.x,float2.y,0}
float3 -> {float3.x,float3.y,float3.z}
So I am doing something like (vertex wrangle in this case):
v@Cd = vertex(0,"st",i@vtxnum);
if st is a 2float then this does not evaluate st correctly. How do I handle setting Cd when st could be any of int, float, vector(3float), vector(2float) ?
If I can determine 2float vs 3float then I can do:
v@Cd = vector2(vertex(0,"st",i@vtxnum));
v@Cd = vector(vertex(0,"st",i@vtxnum));
as needed to get the correct result.
the functions attribtype() or vertexattribtype() group float and vector types into one return value.. So they don't really help.