[PATCH 3/6] d3dx10: Share code for file data loading.