struct Vector4SOA
{
    float<4> V;
};

export void Test(uniform Vector4SOA outs[], uniform Vector4SOA ins[], 
uniform int count)
{
    for (uniform int i=0; i< count ; ++i)
    {
        uniform Vector4SOA vv = ins[i];
        vv.V.x++; // builtin access by x y z w and r g b a
        outs[i] = vv;
    }
}
 

-- 
You received this message because you are subscribed to the Google Groups 
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ispc-users/a84984b1-ed49-484a-bb22-3a60d2d239df%40googlegroups.com.

Reply via email to