Class ShadowCacheCasters
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
InstanceIdCarriesBase
SupportsInstanceIdBase(GraphicsDeviceType, bool) for this device.
public static bool InstanceIdCarriesBase { get; }
Property Value
Live
Every live caster, in registration order.
public static IReadOnlyList<IShadowCacheCaster> Live { get; }
Property Value
Methods
Register(IShadowCacheCaster)
Adds a caster while it is live; safe to call twice.
public static void Register(IShadowCacheCaster caster)
Parameters
casterIShadowCacheCaster
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
apiGraphicsDeviceTypeindirectFirstInstancebool
Returns
Unregister(IShadowCacheCaster)
Removes a caster.
public static void Unregister(IShadowCacheCaster caster)
Parameters
casterIShadowCacheCaster