Vixen
02b45cc4
csharp
public sealed class EffectSourceProvider

Adapts a source into a tier of the EffectSystem.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Separate from the sources themselves so that the device appears exactly once in the chain. Every source would otherwise need one, which would mean a bundle could not be opened, checked or diffed by a tool that has no graphics device — and inspecting what a build baked is precisely the thing you want to do when a shipping build reports a miss.

Fields and properties (2)

Methods (2)

  • public EffectSourceProvider(IEffectSource source, EffectLoader loader)

    Adapts a source into a tier of the EffectSystem.

  • public Effect? TryGet(EffectKey key)

    The effect for a key, or null when this provider does not have it.

Used by (4)

  • AppGraphicsVixen.App.Hosting
  • EffectCacheTestsVixen.Shaders.Tests
  • EditorEffectsVixen.Editor.App
  • ZeroRuntimeCompilationTestsVixen.ShaderCompiler.Tests