// d3dumddi.h
PFND3DDDI_SETVIDEOPROCESSRENDERTARGET Pfnd3dddiSetvideoprocessrendertarget;
HRESULT Pfnd3dddiSetvideoprocessrendertarget(
HANDLE hDevice,
const D3DDDIARG_SETVIDEOPROCESSRENDERTARGET *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The SetVideoProcessRenderTarget function sets the render target surface that is used for video processing.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_SETVIDEOPROCESSRENDERTARGET structure that describes the render target surface that is used for video processing.
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. |
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.
D3DDDIARG_SETVIDEOPROCESSRENDERTARGET