Rico Schüller : d3d10: Move some helper funcs to utils .