PFND3DDDI_SETVIDEOPROCESSRENDERTARGET callback function (d3dumddi.h)

The SetVideoProcessRenderTarget function sets the render target surface that is used for video processing.

Syntax

PFND3DDDI_SETVIDEOPROCESSRENDERTARGET Pfnd3dddiSetvideoprocessrendertarget;

HRESULT Pfnd3dddiSetvideoprocessrendertarget(
  HANDLE hDevice,
  const D3DDDIARG_SETVIDEOPROCESSRENDERTARGET *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_SETVIDEOPROCESSRENDERTARGET structure that describes the render target surface that is used for video processing.

Return value

SetVideoProcessRenderTarget returns one of the following values:

Return code Description
S_OK The render target surface is successfully set.
E_OUTOFMEMORY SetVideoProcessRenderTarget could not allocate the required memory for it to complete.

Remarks

SetVideoProcessRenderTarget can be called only outside of a VideoProcessBeginFrame/VideoProcessEndFrame block.

All video processing render targets are created by setting the D3DDDI_RESOURCEFLAGS.VideoProcessRenderTarget bit-field flag in the Flags member of the D3DDDIARG_CREATERESOURCE structure in a call to the CreateResource function.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETVIDEOPROCESSRENDERTARGET

D3DDDI_DEVICEFUNCS

D3DDDI_RESOURCEFLAGS