IDirect3DRMDevice::InitFromD3D
Initializes a Retained-Mode device from a specified Direct3D Immediate-Mode object and Immediate-Mode device.
HRESULT InitFromD3D(
LPDIRECT3D lpD3D,
LPDIRECT3DDEVICE lpD3DIMDev
);
Parameters
lpD3D
Address of the Direct3D Immediate-Mode object to use to initialize the Retained-Mode device.
lpD3DIMDev
Address of the Immediate-Mode device to use to initialize the Retained-Mode device.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.