Add SharedD3DDevice class.