Completed the Intilization for D3D.