IDirect3DRMDevice2::InitFromD3D2
Initializes an IDirect3DRMDevice2 Retained-Mode device from an IDirect3D2 Immediate-Mode object and an IDirect3DDevice2 Immediate-Mode device.
HRESULT InitFromD3D2(
LPDIRECT3D2 lpD3D,
LPDIRECT3DDEVICE2 lpD3DIMDev
);
Parameters
lpD3D
Address of the IDirect3D2 Immediate-Mode object to use to initialize the Retained-Mode device.
lpD3DIMDev
Address of the IDirect3DDevice2 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.
Remarks
The IDirect3DRMDevice2 device initialized from IDirect3DDevice2 will support the DrawPrimitive interface and execute buffers, and is required for progressive meshes and for alpha blending and sorting of transparent objects.