Start of splitting D3DDevice stuff into plDXDevice.