I'm using DX8/DX9. I'm not really looking for code to do this - it's not very hard to write, just drudgery. I was just amazed that the supposedly optimized code in the DX SDK didn't already do it. Someday we'll have code with its own artificial intelligence, whcih will say to itself, "hmmm...this same texture filename seems to be popping up rather often. Why don't I just use one of the instances I've already loaded?"
|