Skip to main content

Windows Dev Center

ID3D11VideoDevice::CreateVideoProcessorOutputView method

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

Syntax


HRESULT CreateVideoProcessorOutputView(
  [in]        ID3D11Resource                         *pResource,
  [in]        ID3D11VideoProcessorEnumerator         *pEnum,
  [in]  const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
  [out]       ID3D11VideoProcessorOutputView         **ppVPOView
);

Parameters

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.

Remarks

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.

Windows Phone 8: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

ID3D11VideoDevice