Henri Verbeet : wined3d: Introduce helpers functions to calculate texture level dimensions.