pass vector to ray_gen_program

from the SDK example, I know how to pass a float3 constant variable ‘eye’ to the program as ray_origin. And the example sets ray_direction by mapping lauch_index to the directions.

I hope I can pass two long arrays A and b to the program. Then
ray_origin = A[launch_index]
ray_direction = B[launch_index]

How can I do that?


It seems I asked a too simple question.
I should use buffer to pass input and output.