Class StaticCache
Namespace: ValveResourceFormat.CompiledShader
Assembly: ValveResourceFormat.dll
LRU cache for shader static combo data.
csharp
public sealed class StaticCache : IDisposableInheritance
Implements
Constructors
StaticCache(VfxProgramData)
A ZFrame file cache with a set maximum size, trimmed on a LRU basis.
csharp
public StaticCache(VfxProgramData program)Parameters
program VfxProgramData
Shader file to read zframes from. This reference will be used as a reading lock.
Properties
MaxCachedFrames
Gets or sets the maximum number of cached static combos.
csharp
public int MaxCachedFrames { get; set; }Property Value
Methods
Dispose()
Disposes all cached data.
csharp
public void Dispose()EnsureCapacity(int)
Ensures the cache has at least the specified capacity.
csharp
public void EnsureCapacity(int capacity)Parameters
capacity int
Get(long)
Gets the static combo data for the specified ID.
csharp
public VfxStaticComboData Get(long staticComboId)Parameters
staticComboId long

