Vixen
02b45cc4
csharp
public sealed class PipelineCache

Pipelines, created once per distinct PipelineKey.

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

Remarks

Creating a pipeline is the most expensive thing a frame can do — a driver compiles and optimises the shader for the exact state — so doing it in a draw call is the classic cause of a first-run stutter that profiling attributes to the wrong thing. Cached here, and asked for by a key that names everything the driver was given.

The cache never evicts. A project's distinct pipelines are bounded by its materials and its compositor, which are both authored rather than generated, and dropping one only to recreate it is the stutter this exists to remove.

Fields and properties (1)

  • public int Count

    How many distinct pipelines have been created.

Methods (4)

Used by (7)

  • CompositorAssetTestsVixen.Rendering.Tests
  • GraphicsCompositorTestsVixen.Rendering.Tests
  • MeshRenderFeatureVixen.Rendering
  • MeshRenderFeatureTestsVixen.Rendering.Tests
  • ParticleRenderFeatureVixen.Rendering
  • SkinningAndInstancingTestsVixen.Rendering.Tests
  • SpriteRenderFeatureVixen.Rendering