[PATCH vkd3d 2/5] vkd3d: Move duplicate descriptor accounting to the descriptor count function.