PFND3D12DDI_CREATEVIDEOENCODERHEAP_0080_2 callback function (d3d12umddi.h)

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

Syntax

PFND3D12DDI_CREATEVIDEOENCODERHEAP_0080_2 Pfnd3d12ddiCreatevideoencoderheap00802;

HRESULT Pfnd3d12ddiCreatevideoencoderheap00802(
  [in]  D3D12DDI_HDEVICE hDrvDevice,
  [in]  const D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 *pCreationArgs,
  [out] D3D12DDI_HVIDEOENCODERHEAP_0080 hDrvVideoEncoderHeap
)
{...}

Parameters

[in] hDrvDevice

Handle to the D3D12 device.

[in] pCreationArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 structure with the arguments used to create a video encoder heap.

[out] hDrvVideoEncoderHeap

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

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

D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2

PFND3D12DDI_CALCPRIVATEVIDEOENCODERHEAPSIZE_0080_2

PFND3D12DDI_CREATEVIDEOENCODER_0082_0