Vixen
02b45cc4
csharp
public sealed class ComputePipelineCache

Compute pipelines, created once per effect.

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

Remarks

Keyed by the effect alone, where PipelineCache needs four parts — and the difference is the whole reason there are two caches rather than one generalised one. A graphics pipeline depends on what it draws into, what state it draws with and how a vertex is read; a compute pipeline is the shader and its layout, and nothing else exists to vary.

Never evicts, for the same reason: a project's distinct compute shaders are authored, and dropping one only to recreate it is the stall the cache exists to remove.

Fields and properties (1)

  • public int Count

    How many distinct pipelines have been created.

Methods (3)

  • public ComputePipelineCache(IGraphicsDevice device)

    Compute pipelines, created once per effect.

  • public PipelineHandle GetOrCreate(Effect effect)

    The pipeline for an effect, compiling it the first time.

  • public void Clear()

    Forgets every pipeline and module, for a device loss or a shader reload.

Used by (48, showing 40)

  • ArenaIlluminationThirdPersonShooter
  • VirtualGeometryGameVirtualGeometry
  • AccelerationStructureDeviceTestsVixen.Graphics.Golden.Tests
  • AutoExposureRendererVixen.Rendering.PostFx
  • AutoExposureTestsVixen.Rendering.PostFx.Tests
  • BufferTransferDeviceTestsVixen.Graphics.Golden.Tests
  • ClusterCullingDeviceTestsVixen.Graphics.Golden.Tests
  • ClusterResolveTestsVixen.Rendering.Tests
  • ClusteredLightingTestsVixen.Rendering.Tests
  • ComputeRendererVixen.Rendering
  • GpuClusterResolveVixen.Rendering
  • GpuClusterSoftwareRasterVixen.Rendering
  • GpuClusterVisibilityVixen.Rendering
  • GpuDrawArgumentsVixen.Rendering
  • GpuVisibilityGroupVixen.Rendering
  • GpuVisibilityGroupTestsVixen.Rendering.Tests
  • GpuVisibilityTilesVixen.Rendering
  • HiZPyramidVixen.Rendering
  • IrradianceFieldFillVixen.Rendering
  • IrradianceFieldRepairVixen.Rendering
  • IrradianceFillDeviceTestsVixen.Graphics.Golden.Tests
  • IrradianceRepairDeviceTestsVixen.Graphics.Golden.Tests
  • IrradianceShadingDeviceTestsVixen.Graphics.Golden.Tests
  • PostEffectFactoryVixen.Rendering.PostFx
  • ReflectionRendererVixen.Rendering.PostFx
  • ReflectionRendererDeviceTestsVixen.Graphics.Golden.Tests
  • ReflectionTraceDeviceTestsVixen.Graphics.Golden.Tests
  • ReflectionTraceFillVixen.Rendering
  • ScreenProbeAccumulateDeviceTestsVixen.Graphics.Golden.Tests
  • ScreenProbeAccumulateFillVixen.Rendering
  • ScreenProbeBilateralImageTestsVixen.Graphics.Golden.Tests
  • ScreenProbeFilterFillVixen.Rendering
  • ScreenProbeGatherImageTestsVixen.Graphics.Golden.Tests
  • ScreenProbeResolveVixen.Rendering
  • ScreenProbeResolveDeviceTestsVixen.Graphics.Golden.Tests
  • ScreenProbeTraceDeviceTestsVixen.Graphics.Golden.Tests
  • ScreenProbeTraceFillVixen.Rendering
  • ScreenProbeUpsampleImageTestsVixen.Graphics.Golden.Tests
  • ScreenPyramidDeviceTestsVixen.Graphics.Golden.Tests
  • SurfaceCacheGatherFillVixen.Rendering