That was taken from the existing d3d10 code. But I’m all for using iterators instead of having these side effects and null values.