niravshah00

Reduction kernel doesn work  someone help me

Discussion created by niravshah00 on Jul 9, 2010
Latest reply on Jul 10, 2010 by Ceq

kernel void compaction(int prefixsum<>,int input<>,out int3 output[])
{
   
    if(input == 1)
        output[prefixsum]=int3(instance().z,instance().y,instance().x);
}

 

prefixsum is a 3d stream ,

input is again a 3d stream,

output as can be seen is 1d array

Outcomes