Share via


GetTexture

The GetTexture method retrieves an IDirect3DTexture9 interface from an IBuffer interface.

Syntax

HRESULT GetTexture(
  IBuffer*  pBuffer, 
  IDirect3DTexture9**  ppTexture
);

Parameters

pBuffer

[in]  Pointer to an IBuffer interface.

ppTexture

[out]  Pointer to a new Direct3D IDirect3DTexture9 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