i’m trying to use as a kernel destination (writing only) an array obtained from a d3d9 texture… but i can’t figure how to use it correctly as a destination for my kernels!
If i just cast it to void* to use it as plain memory, it works (why?) but sometimes a section of the texture becomes black and unwritable.
Also, the order of writes is sometimes altered, as for example it generates a grayscale if i output the scaled index, but doesn’t work for example with the modulo operator.
Now i resolved the problem writing to plain memory and then doing a device<->device cudamemcpy… but i would like to know what are pros and cons of arrays (i read that it is very slow to write on them?) and why of the unpredictable result…