Vixen
02b45cc4
csharp
public sealed class AssetVfxEffectSource

Resolves a .vxvfx reference into the graph a simulation runs.

Read the guide page for this →

Remarks

AssetMaterialSource's shape, one asset kind along. A reference becomes an address, an address becomes a VfxEffectContent chunk, and the chunk becomes a VfxCompiledGraph exactly once. The layering is the same and for the same reason: Vixen.Rendering links no asset manager, so the interface lives there and the implementation lives here.

The graph is built once and shared. ToGraph re-runs the validation that refuses an updater reading what nothing writes — cheap for one effect, wasteful once per emitter per frame — and a compiled graph is immutable, which is the property the dual backend already rests on. So one asset is one graph however many emitters name it, and each emitter's own state lives in its VfxSystem.

⚠ A reference that will not arrive is recorded rather than thrown for. One entity in a level naming an effect nothing shipped should not take the frame with it — the same decision AssetMaterialSource makes, and the reason Failed is a number worth watching.

Fields and properties (3)

  • public int Requested

    How many distinct effects have been asked for.

  • public int Loaded

    How many have compiled.

  • public int Failed

    How many will not arrive.

Methods (2)

Used by (1)

  • WorldRendererVixen.Engine.Renderer