PFND3D11DDI_CALCDEFERREDCONTEXTHANDLESIZE callback function

The CalcDeferredContextHandleSize function queries for the amount of storage space that the driver requires to satisfy deferred context handles to the given immediate context object.

Syntax


PFND3D11DDI_CALCDEFERREDCONTEXTHANDLESIZE CalcDeferredContextHandleSize;

SIZE_T APIENTRY CalcDeferredContextHandleSize(
  _In_ D3D10DDI_HDEVICE    hDevice,
  _In_ D3D11DDI_HANDLETYPE HandleType,
  _In_ VOID                *pICObject
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

HandleType [in]

A D3D11DDI_HANDLETYPE-typed value that indicates the type of deferred context handle to determine the size of the memory region for.

pICObject [in]

A pointer to the object for the immediate context.

Return value

CalcDeferredContextHandleSize returns the size of the storage space that the driver requires for the deferred context handles to the object that pICObject points to.

Remarks

The driver is only required to implement CalcDeferredContextHandleSize if the driver supports the D3D11DDICAPS_COMMANDLISTS_BUILD_2 capability that can be returned in the D3D11DDI_THREADING_CAPS structure from a call to the GetCaps(D3D10_2) function.

The Direct3D runtime does not call the CalcDeferredContextHandleSize function from function tables for the deferred context. The runtime calls CalcDeferredContextHandleSize from the function table for the immediate context.

For more information about how CalcDeferredContextHandleSize is used, see Using Context-Local DDI Handles.

Requirements

Target platform

Desktop

Version

CalcDeferredContextHandleSize is supported beginning with the Windows 7 operating system.

Header

D3d10umddi.h (include D3d10umddi.h)

See also

D3D11DDI_DEVICEFUNCS
D3D11DDI_HANDLETYPE
D3D11DDI_THREADING_CAPS
GetCaps(D3D10_2)

 

 

Send comments about this topic to Microsoft

Show: