PFND3D12DDI_CREATEVIDEOENCODER_0082_0 callback function (d3d12umddi.h)

A client driver's PFND3D12DDI_CREATEVIDEOENCODER_0082_0 callback function creates a video encoder object.

Syntax

PFND3D12DDI_CREATEVIDEOENCODER_0082_0 Pfnd3d12ddiCreatevideoencoder00820;

HRESULT Pfnd3d12ddiCreatevideoencoder00820(
  [in]     D3D12DDI_HDEVICE hDrvDevice,
  [in]     const D3D12DDIARG_CREATE_VIDEO_ENCODER_0082_0 *pCreationArgs,
  [in/out] D3D12DDI_HVIDEOENCODER_0080 hDrvVideoEncoder
)
{...}

Parameters

[in] hDrvDevice

Handle to the D3D12 device.

[in] pCreationArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_ENCODER_0080_2 structure with arguments to create this video encoder object.

[in/out] hDrvVideoEncoder

Handle to the created video encoder object. The D3D12 runtime has allocated space for the driver to place its object based on the result of a prior call to PFND3D12DDI_CALCPRIVATEVIDEOENCODERSIZE_0082_0.

Return value

Returns an HRESULT value.

Remarks

See D3D12 video encoding for general information.

Requirements

Requirement Value
Minimum supported client Windows 11 (WDDM 3.0)
Header d3d12umddi.h

See also

D3D12DDI_DEVICE_FUNCS_VIDEO_0082_0

D3D12DDIARG_CREATE_VIDEO_ENCODER_0080_2

PFND3D12DDI_CALCPRIVATEVIDEOENCODERSIZE_0082_0

PFND3D12DDI_CREATEVIDEOENCODERHEAP_0080_2