d3d: Copy over the vertex preview stuff.

Really need to just centralize, I know.  But want a debugger that works
first.