Microsoft DirectX 9.0

RenderEngine.SetFilterGraph Method

The SetFilterGraph method specifies a filter graph for the render engine to use.

Syntax

object.SetFilterGraph(
    pFG As IGraphBuilder
)

Parameters

pFG

The FilgraphManager object that specifies the filter graph.

Error Codes

If the method fails, an error is raised, and Err.Number can be set to one of the following values:

Value Description
E_INVALIDARG Invalid argument.
E_MUST_INIT_RENDERER Render engine failed to initialize.

Remarks

Most applications do not need to call this method. It is more typical to let the render engine build the graph for you, by calling the ConnectFrontEnd method.

This method fails if the render engine already has a filter graph.

Never retrieve a filter graph created by one render engine and then use it as the parameter to this method on another render engine. Doing so will cause unpredictable results.

See Also