PFND3D12DDI_CALCPRIVATEVIDEOENCODERHEAPSIZE_0080_2 callback function (d3d12umddi.h)

A client driver's PFND3D12DDI_CALCPRIVATEVIDEOENCODERHEAPSIZE_0080_2 callback function calculates the required amount of memory needed for the driver's object that represents the video encoder heap.

Syntax

PFND3D12DDI_CALCPRIVATEVIDEOENCODERHEAPSIZE_0080_2 Pfnd3d12ddiCalcprivatevideoencoderheapsize00802;

SIZE_T Pfnd3d12ddiCalcprivatevideoencoderheapsize00802(
  [in] D3D12DDI_HDEVICE hDrvDevice,
  [in] const D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 *pCreationArgs
)
{...}

Parameters

[in] hDrvDevice

Handle for the D3D12 device.

[in] pCreationArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_ENCODER_HEAP_0080_2 structure that contains the video encoder heap creation parameters.

Return value

Returns the number of bytes needed to store the driver's object that represents the video encoder heap.

Remarks

On return, the D3D12 runtime will allocate the memory needed to store the driver's object and then call PFND3D12DDI_CREATEVIDEOENCODERHEAP_0080_2 to create the actual object.

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_CREATEVIDEOENCODERHEAP_0080_2