Bewerken

Delen via


PFND3D12DDI_CALCPRIVATEVIDEODECODERHEAPSIZE_0072 callback function (d3d12umddi.h)

PFND3D12DDI_CALCPRIVATEVIDEODECODERHEAPSIZE_0072 calculates the size of a video decoder heap.

Syntax

PFND3D12DDI_CALCPRIVATEVIDEODECODERHEAPSIZE_0072 Pfnd3d12ddiCalcprivatevideodecoderheapsize0072;

SIZE_T Pfnd3d12ddiCalcprivatevideodecoderheapsize0072(
       D3D12DDI_HDEVICE hDrvDevice,
  [in] const D3D12DDIARG_CREATE_VIDEO_DECODER_HEAP_0072 *pArgs
)
{...}

Parameters

hDrvDevice

Handle to the hardware device being processed.

[in] pArgs

Pointer to a D3D12DDIARG_CREATE_VIDEO_DECODER_HEAP_0072 structure with arguments used by this callback function.

Return value

Returns the size of the heap in bytes.

Remarks

The D3D runtime allocates memory for storing the driver's CPU object representing the video decoder heap. This method is used to calculate the driver object size.

See the Video Protected Resource Support specification for more information.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Windows
Header d3d12umddi.h

See also

D3D12DDIARG_CREATE_VIDEO_DECODER_HEAP_0072