[PATCH v2 1/6] wined3d: Add a helper to calculate the vertex attribute address for a stream element.