PFND3D10DDI_CALCPRIVATEOPENEDRESOURCESIZE callback function

The CalcPrivateOpenedResourceSize function determines the size of the user-mode display driver's private shared region of memory (that is, the size of internal driver structures, not the size of the resource video memory) for an opened resource.

Syntax

PFND3D10DDI_CALCPRIVATEOPENEDRESOURCESIZE Pfnd3d10ddiCalcprivateopenedresourcesize;

SIZE_T Pfnd3d10ddiCalcprivateopenedresourcesize(
  D3D10DDI_HDEVICE Arg1,
  const D3D10DDIARG_OPENRESOURCE *Arg2
)
{...}

Parameters

Arg1

hDevice [in]

A handle to the display device (graphics context).

Arg2

pOpenResource [in]

A pointer to a D3D10DDIARG_OPENRESOURCE structure that describes the parameters that the user-mode display driver uses to calculate the size of the shared memory region.

Return Value

CalcPrivateOpenedResourceSize returns the size of the shared memory region that the driver requires for opening resources.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3d10umddi.h (include D3d10umddi.h)

See Also

D3D10DDIARG_OPENRESOURCE

D3D10DDI_DEVICEFUNCS