PFND3D12DDI_CREATEVIDEOMOTIONVECTORHEAP_0060 callback function (d3d12umddi.h)

Creates a video motion vector heap.

Syntax

PFND3D12DDI_CREATEVIDEOMOTIONVECTORHEAP_0060 Pfnd3d12ddiCreatevideomotionvectorheap0060;

HRESULT Pfnd3d12ddiCreatevideomotionvectorheap0060(
  D3D12DDI_HDEVICE hDrvDevice,
  const D3D12DDIARG_CREATE_VIDEO_MOTION_VECTOR_HEAP_0060 *pArgs,
  D3D12DDI_HVIDEOMOTIONVECTORHEAP_0053 hDrvMotionEstimator
)
{...}

Parameters

hDrvDevice

A handle to the display device (graphics context) that the Direct3D runtime uses.

pArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_MOTION_VECTOR_HEAP_0053 structure.

hDrvMotionEstimator

A handle to the user mode driver motion vector heap type.

Return value

Returns HRESULT.

Remarks

At the API, the Motion Vector Heap object is created to store motion vector output. Motion vector output is opaque at the API.

At the DDI, the runtime will create a standard Resource Buffer. This buffer contains hardware dependent layout. A resolve operation on a compute/3D queue will take this buffer as input and resolve it to the API specified format. The size of this buffer is driver controlled and determined by D3D12DDICAPS_TYPE_VIDEO_0053_MOTION_ESTIMATOR_SIZE capability check of the D3D12DDICAPS_TYPE_VIDEO_0020 enumeration. The buffer may later be used to serialize and deserialize the object for tooling scenarios.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1903
Header d3d12umddi.h