Search:

Type: Posts; User: adam

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,579

    Are arguments of vector type supposed to be passed by value?

    I have a somewhat related question to my previous one. When vectors are passed as arguments to functions, are they being passed (as if) by value? In other words, is it expected that value of v can...
  2. Replies
    2
    Views
    2,579

    Can vector types be returned from functions?

    I was wondering if someone could verify if variables of vector types can be returned from non-kernel functions. In other words, as an example, is the following OpenCL code legal:

    int2 foo(int i) {...
Results 1 to 2 of 3