Table of Contents

Class ShadowCacheCasters

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The live IShadowCacheCasters, and the device capabilities GPU-driven drawing shares.

public static class ShadowCacheCasters
Inheritance
ShadowCacheCasters
Inherited Members

Properties

CoverageRedraws

Diagnostics: how often a caster's coverage forced the cache to redraw for new shadow work.

public static int CoverageRedraws { get; set; }

Property Value

int

InstanceIdCarriesBase

public static bool InstanceIdCarriesBase { get; }

Property Value

bool

Live

Every live caster, in registration order.

public static IReadOnlyList<IShadowCacheCaster> Live { get; }

Property Value

IReadOnlyList<IShadowCacheCaster>

Methods

Register(IShadowCacheCaster)

Adds a caster while it is live; safe to call twice.

public static void Register(IShadowCacheCaster caster)

Parameters

caster IShadowCacheCaster

SupportsInstanceIdBase(GraphicsDeviceType, bool)

Whether the instance index carries a run's start on this API, so one indirect call can draw many commands and the cached casters' procedural variants work. Must match FishIndirectSetup's backend/feature branches.

public static bool SupportsInstanceIdBase(GraphicsDeviceType api, bool indirectFirstInstance)

Parameters

api GraphicsDeviceType
indirectFirstInstance bool

Returns

bool

Unregister(IShadowCacheCaster)

Removes a caster.

public static void Unregister(IShadowCacheCaster caster)

Parameters

caster IShadowCacheCaster