TPsoLruCache::Add

Add an entry to the cache.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/PsoLruCache.h

Include

#include "PsoLruCache.h"

Syntax

FSetElementId Add
(
    const KeyType & Key,
    const ValueType & Value
)

Remarks

Add an entry to the cache.

The new entry must not exist in the cache, there must be space within the LRU for the new entry. The new entry will be marked as the most recently used one.

Returns

FSetElementId of the entry, update recent status without requiring a find operation.

Parameters

Parameter

Description

Key

The entry's lookup key.

Value

The entry's value.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss