d3d: Remove the auto variable and replace it with it's concrete type