Passing array of pointers to CUDA kernel

ok, for reference the following works, thanks again for the help, Tim

function krn(im,out)
  val = out[1]
  for i = 1:length(im)
    val += im[i](Float32(1.2),Float32(1.2))
  end
  out[1] = val
  return nothing
end

out = CuArrays.rand(1);

im = CuArray([cudaconvert(CuTexture(CuTextureArray(CuArrays.rand(2,2)))) for i = 1:20]);

@cuda threads=1 blocks=1 krn(im,out)