Is it possible to write to a texel in a texturs in cuda? If yes how to do that?
Is it possible to write to an element in a cuda array? If yes how to do that?
Writing to textures (at least, of the CUDA array kind) is not currently supported, what you can do is write to global memory then do a fast device-to-device copy to a texture after your kernel finishes.