共用方式為


IVMRImageCompositor9::InitCompositionDevice

 
Microsoft DirectShow 9.0

IVMRImageCompositor9::InitCompositionDevice

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.

Syntax

  HRESULT InitCompositionDevice(
  IUnknown*  pD3DDevice
);

Parameters

pD3DDevice

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

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
S_OK The method succeeded.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also