Table of Contents

Class StaticCache

Namespace
ValveResourceFormat.CompiledShader
Assembly
ValveResourceFormat.dll

LRU cache for shader static combo data.

public sealed class StaticCache : IDisposable

Inheritance

Implements

Inherited Members

Constructors

StaticCache(VfxProgramData)

A ZFrame file cache with a set maximum size, trimmed on a LRU basis.

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.

public int MaxCachedFrames { get; set; }

Property Value

int

Methods

Dispose()

Disposes all cached data.

public void Dispose()

EnsureCapacity(int)

Ensures the cache has at least the specified capacity.

public void EnsureCapacity(int capacity)

Parameters

capacity int

Get(long)

Gets the static combo data for the specified ID.

public VfxStaticComboData Get(long staticComboId)

Parameters

staticComboId long

Returns

VfxStaticComboData