wined3d: Move decoding the vertex declaration to the vertexshader state handler.