Henri Verbeet : d3d10core: Calculate the texture level count before texture creation.