Skip to main content
Looks up an entry in the cache whose key exactly matches the provided key. Call the function twice. The first time to retrieve the value’s size, and the second time to retrieve the data. In-memory temporary storage makes this calling pattern performant.

Syntax

Parameters

pKey
Type: const void *
The key of the entry to look up. KeySize
Type: UINT
The size of the key, in bytes. pValue
Type: void *
A pointer to a memory block that receives the cached entry. pValueSize
Type: UINT *
A pointer to a UINT that receives the size of the cached entry, in bytes.

Return value

Type: HRESULT If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Requirements

Header: d3d12_xs.h or d3d12_x.h
Library: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family

See Also

Last modified on August 20, 2026