nine: Add state tracker nine for Direct3D9