PFND3DWDDM2_2DDI_CREATE_SHADERCACHE_SESSION callback function (d3d10umddi.h)

The pfnCreateShaderCacheSession callback function creates a shader cache session.

Syntax

PFND3DWDDM2_2DDI_CREATE_SHADERCACHE_SESSION Pfnd3dwddm22DdiCreateShadercacheSession;

void Pfnd3dwddm22DdiCreateShadercacheSession(
  D3D10DDI_HDEVICE unnamedParam1,
  D3DWDDM2_2DDI_HCACHESESSION unnamedParam2,
  D3DWDDM2_2DDI_HRTCACHESESSION unnamedParam3
)
{...}

Parameters

unnamedParam1

hDevice [in]

The handle of a device.

unnamedParam2

hCacheSession

The handle of a cache session.

unnamedParam3

hRTCacheSession

The handle of the cache session for the driver to use when it calls back into the runtime.

Return value

None

Remarks

The runtime uses the object that is created to inform the driver of different caching contexts. It can be used to direct the caching callbacks towards a process-local cache or a per-component cache which is shared by multiple processes.

Access this callback function by using the D3DWDDM2_2DDI_DEVICEFUNCS structure.

Requirements

Requirement Value
Target Platform Windows
Header d3d10umddi.h (include D3d12umddi.h)

See also

D3DWDDM2_2DDI_DEVICEFUNCS