Suppose I have a series of numbers I want to return in an amp restricted function; what is the best way of doing this?
I'm not sure if I can "new" a simple array, and vectors are disallowed and I can't create a concurrency::array on the GPU, so how do I go about returning sets of numbers from amp restricted functions? Is it possible?
1 2 3 4 5 6 7 8 9 10 11
??? const RestrictedFunction() restrict(amp)
float arr ;
for (unsigned i = 0; i != 5; ++i)
arr[i] = i;
// how do I return this?