If you have DirectRT, it's perfect for this kind of thing. Take a look at the "image priming" sample that comes with DirectRT. You should be able to use it with only minor modifications.

It's located here:
Code:
C:\DirectRT\Samples\4 applications\image priming\implicit.csv