Share via


GetSurface

The GetSurface method retrieves an IDirect3DSurface9 interface from an IBuffer interface.

Syntax

HRESULT GetSurface(
  IBuffer*  pBuffer, 
  IDirect3DSurface9**  ppSurface
);

Parameters

pBuffer

[in] Pointer to a buffer object.

ppSurface

[out] Pointer to a new Direct3D IDirect3DSurface9 interface pointer to read from or write to. The caller must release this interface when done with it.

Return Values

The method returns an HRESULT of S_OK for success, or a standard COM error code for failure.

Remarks

Your application will call this function on the input and output buffers passed to IMediaTransform::Process.

Requirements

Client: Windows Vista

Header: Include gputransformplugin.h and GPUPipelineTime.h.

Library: Use GPUPipelineVC7.lib (for Visual Studio .NET) or GPUPipelineVC8.lib (for Visual Studio 2005).

See Also