Share via


GetSurface method

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

Syntax

HRESULT GetSurface(
  [in]  IBuffer           *pBuffer,
  [out] 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 value

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

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
GPUPipelineTime.h
Library
GPUPipelineVC8.lib (Visual Studio 2005);
GPUPipelineVC7.lib (Visual Studio .NET)

See also

Transform Helper Functions