PFND3D11DDI_CALCDEFERREDCONTEXTHANDLESIZE callback function (d3d10umddi.h)
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 Pfnd3d11ddiCalcdeferredcontexthandlesize;
SIZE_T Pfnd3d11ddiCalcdeferredcontexthandlesize(
D3D10DDI_HDEVICE unnamedParam1,
D3D11DDI_HANDLETYPE unnamedParam2,
VOID *unnamedParam3
)
{...}
Parameters
unnamedParam1
hDevice [in]
A handle to the display device (graphics context).
unnamedParam2
HandleType [in]
A D3D11DDI_HANDLETYPE-typed value that indicates the type of deferred context handle to determine the size of the memory region for.
unnamedParam3
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
Requirement | Value |
---|---|
Minimum supported client | CalcDeferredContextHandleSize is supported beginning with the Windows 7 operating system. |
Target Platform | Desktop |
Header | d3d10umddi.h (include D3d10umddi.h) |