VST_RT

Swap

Discussion created by VST_RT on Sep 29, 2009
Latest reply on Oct 2, 2009 by riza.guntur
exchange values by index

HI,

what i want to do is a swap. iam using Brook+

i call the kernel with a datastrea. in the kernel i want to change some specific values of this stream according to the index.

to have acces to the index, i cant use a stream so i use gather array.

kernel void
ABC(int dir, int m0, float x[],...

but a gather array is read only so i cant change the values.

is there a build in function that i missed?

local arrays are also forbidden, a local stream could help, eventually. but i dont know how to fill it, within the kernel function.

thank you for helping.

 

Outcomes