ID3D12ShaderCacheSession::StoreValue method (d3d12.h)
Adds an entry to the cache.
Syntax
HRESULT StoreValue(
const void *pKey,
UINT KeySize,
const void *pValue,
UINT ValueSize
);
Parameters
pKey
Type: _In_reads_bytes_(KeySize) const void *
The key of the entry to add.
KeySize
Type: UINT
The size of the key, in bytes.
pValue
Type: _In_reads_bytes_(ValueSize) void *
A pointer to a memory block containing the entry to add.
ValueSize
Type: UINT
The size of the entry to add, in bytes.
Return value
Type: HRESULT
If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Return value | Description |
---|---|
DXGI_ERROR_ALREADY_EXISTS | There's an entry with the same key. |
DXGI_ERROR_CACHE_HASH_COLLISION | There's an entry with the same hash as the provided key, but the key doesn't match. |
DXGI_ERROR_CACHE_FULL | Adding this entry would cause the cache to become larger than its maximum size. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | d3d12.h |
Library | d3d12.lib |
DLL | d3d12.dll |