Some values were incorrect, now I'm no expert but looking at the code and behavior seemed a bit wrong compared to gl. Improves d3d rendering on Sonic Unleashed, the purple screen is gone matching it with gl visuals.