ID3D11VideoDevice::CreateVideoProcessorOutputView Method

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

Syntax

public:
HRESULT CreateVideoProcessorOutputView(
         ID3D11Resource *pResource,
         ID3D11VideoProcessorEnumerator *pEnum,
         const D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *pDesc,
         ID3D11VideoProcessorOutputView **ppVPOView
)  

Parameters

pResource
Type: ID3D11Resource *

[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
Type: ID3D11VideoProcessorEnumerator *

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

pDesc
Type: D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC *

[in] A pointer to a D3D11_VIDEO_PROCESSOR_OUTPUT_VIEW_DESC structure that describes the view.

ppVPOView
Type: ID3D11VideoProcessorOutputView **

[out, optional] 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

Type: HRESULT 

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

See Direct3D 11 return codes for possible return values.

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.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).