(D3D) Change references to pointers