|Microsoft DirectX 9.0|
The InitCompositionDevice method informs the compositor that a new composition target has been created. The compositor should perform any necessary configuration work in this method. This could include attaching a Z or stencil buffer for the new render target.
HRESULT InitCompositionDevice( IUnknown* pD3DDevice );
[in] Pointer to the IUnknown interface of the Direct3D device object.
The method returns an HRESULT. Possible values include those in the following table.
|S_OK||The method succeeded.|
Include D3d9.h, Vmr9.h.