2 Replies Latest reply on Dec 15, 2008 3:45 AM by gaurav.garg

    Problem with expression in kernel: Illegal to use array type as right operand

    rick.weber

      What does this mean? I get it when I try to do this:

       

      float index = indexof(basis).x;

      or any other attempt to use a single element of a vector. Another example would be:
      float2 a = float2(0.0f, 1.0f);
      a.x;
      I didn't have this problem until I upgraded to Brook 1.31.