PFND3DWDDM2_2DDI_SHADERCACHE_STORE_VALUE_CB callback function (d3d10umddi.h)

The pfnShaderCacheStoreValue callback function stores a shader cache value.

Syntax

PFND3DWDDM2_2DDI_SHADERCACHE_STORE_VALUE_CB Pfnd3dwddm22DdiShadercacheStoreValueCb;

HRESULT Pfnd3dwddm22DdiShadercacheStoreValueCb(
  D3DWDDM2_2DDI_HRTCACHESESSION hCacheSession,
  const D3DWDDM2_2DDI_SHADERCACHE_HASH *pPrecomputedHash,
  const void *pKey,
  SIZE_T KeyLen,
  const void *pValue,
  SIZE_T ValueLen
)
{...}

Parameters

hCacheSession

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

pPrecomputedHash

A hash value.

pKey

A pointer to a key.

KeyLen

The length of the key.

pValue

A pointer to an input value.

ValueLen

The length of the input value.

Return value

If this callback function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

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