PFND3D12DDI_CALCPRIVATEVIDEOENCODERSIZE_0082_0 callback function (d3d12umddi.h)

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

Syntax

PFND3D12DDI_CALCPRIVATEVIDEOENCODERSIZE_0082_0 Pfnd3d12ddiCalcprivatevideoencodersize00820;

SIZE_T Pfnd3d12ddiCalcprivatevideoencodersize00820(
  [in] D3D12DDI_HDEVICE hDrvDevice,
  [in] const D3D12DDIARG_CREATE_VIDEO_ENCODER_0082_0 *pCreationArgs
)
{...}

Parameters

[in] hDrvDevice

Handle for the D3D12 device.

[in] pCreationArgs

D3D12DDIARG_CREATE_VIDEO_ENCODER_0082_0 structure that contains the video encoder creation parameters.

Return value

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

Remarks

On return, the D3D12 runtime will allocate the memory needed to store the driver's object and then call PFND3D12DDI_CREATEVIDEOENCODER_0082_0 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_0082_0

PFND3D12DDI_CREATEVIDEOENCODER_0082_0