ID3D11VideoDevice::CreateVideoProcessorOutputView method

Creates a resource view for a video processor, describing the output sample for the video processing operation.


HRESULT CreateVideoProcessorOutputView(
  [in]        ID3D11Resource                         *pResource,
  [in]        ID3D11VideoProcessorEnumerator         *pEnum,
  [out]       ID3D11VideoProcessorOutputView         **ppVPOView


pResource [in]

A pointer to the ID3D11Resource interface of the output surface. The resource must be created with the D3D11_BIND_RENDER_TARGET flag. See D3D11_BIND_FLAG.

pEnum [in]

A pointer to the ID3D11VideoProcessorEnumerator interface that specifies the video processor. To get this pointer, call ID3D11VideoDevice::CreateVideoProcessorEnumerator.

pDesc [in]

A pointer to a D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC structure that describes the view.

ppVPOView [out]

Receives a pointer to the ID3D11VideoProcessorOutputView interface. The caller must release the resource. If this parameter is NULL, the method checks whether the view is supported, but does not create the view.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


Set the ppVPOView parameter to NULL to test whether a view is supported.

Resources used for video processor output views must use the following D3D11_BIND_FLAG combinations:

If stereo output is enabled, the output view must have 2 array elements. Otherwise, it must only have a single array element.


Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Minimum supported phone

Windows Phone 8



See also