work on the D3D10 renderer