Class StaticComboCache
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
Size-limited cache for shader static combo data, evicting entries in insertion order (FIFO).
csharp
public sealed class StaticComboCache : IDisposableInheritance
Implements
Constructors
StaticComboCache(VfxProgramData)
A static combo cache with a set maximum size, trimmed in insertion order (FIFO).
csharp
public StaticComboCache(VfxProgramData program)Parameters
program VfxProgramData
Program to read static combos from. This reference will be used as a reading lock.
Properties
MaxCachedCombos
Gets or sets the maximum number of cached static combos.
csharp
public int MaxCachedCombos { get; set; }Property Value
Methods
Dispose()
Detaches all cached combos from their program.
csharp
public void Dispose()EnsureMinimumCacheSize(int)
Raises to at least the given size, so that many combos stay cached.
csharp
public void EnsureMinimumCacheSize(int size)Parameters
size int
Get(long)
Gets the static combo data for the specified ID.
csharp
public VfxStaticComboData Get(long staticComboId)Parameters
staticComboId long

