PFND3D12DDI_SHADERCACHESTOREVALUE_CB_0021 callback function

The pfnShaderCacheStoreValueCb callback function stores a shader cache value.

Syntax

PFND3D12DDI_SHADERCACHESTOREVALUE_CB_0021 Pfnd3d12ddiShadercachestorevalueCb0021;

HRESULT Pfnd3d12ddiShadercachestorevalueCb0021(
  D3D12DDI_HRTDEVICE hRTDevice,
  D3D12DDI_HRTPIPELINESTATE hRTPSO,
  const D3D12DDI_SHADERCACHE_HASH *pPrecomputedHash,
  const void *pKey,
  SIZE_T KeyLen,
  const void *pValue,
  SIZE_T ValueLen
)
{...}

Parameters

hRTDevice

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

hRTPSO

The handle of a PSO.

pPrecomputedHash

A hash value.

pKey

A pointer to a key.

KeyLen

The length of the key.

pValue

A pointer to an output value.

ValueLen

The length of the output value.

Return Value

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

Remarks

Access this callback by using the D3D12DDI_SHADERCACHE_CALLBACKS_0021 structure.

Requirements

   
Target Platform Windows
Header d3d12umddi.h (include D3d12umddi.h)