wined3d: Store sub-resource map counts in the sub-resource structure.