共用方式為


ISurface::get_Surface method

The get_Surface method retrieves an IDirect3DSurface9 interface that points to the video surface.

Syntax

HRESULT get_Surface(
  [out] IDirect3DSurface9 **ppSurface
);

Parameters

ppSurface [out]

Pointer to an IDirect3DSurface9 interface pointer. The transform must release this interface when finished with it.

Return value

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

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

ISurface Interface