port texMan from dx11bvh