wined3d: Move the vertex declaration to wined3d_state.