Microsoft DirectX 9.0

IVMRImageCompositor::InitCompositionTarget

The InitCompositionTarget 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 a Z or stencil buffer buffer for the new render target

Syntax

HRESULT InitCompositionTarget(
  IUnknown*  pD3DDevice,
  LPDIRECTDRAWSURFACE7  pddsRenderTarget
);

Parameters

pD3DDevice

[in]  Pointer to the IUnknown interface of the Direct3D device object.

pddsRenderTarget

[in]  Specifies the DirectDraw surface.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

See Also