Align Universal renderer ownership with Unity SRP

This commit is contained in:
2026-04-26 22:43:22 +08:00
parent d4e0276b96
commit de64d9a698
11 changed files with 385 additions and 506 deletions

View File

@@ -242,30 +242,6 @@ namespace ProjectScripts
}
}
public sealed class ProjectRendererInvalidationProbePipeline
: RendererBackedRenderPipeline
{
public ProjectRendererInvalidationProbePipeline(
RendererBackedRenderPipelineAsset asset)
: base(asset)
{
ProjectRendererInvalidationProbeState
.CreatePipelineCallCount++;
}
protected override void Dispose(
bool disposing)
{
if (disposing)
{
ProjectRendererInvalidationProbeState
.DisposePipelineCallCount++;
}
base.Dispose(disposing);
}
}
public sealed class ProjectRendererInvalidationProbeFeature
: ScriptableRendererFeature
{
@@ -357,11 +333,11 @@ namespace ProjectScripts
};
}
protected override ScriptableRenderPipeline
CreateRendererBackedPipeline()
protected override ScriptableRenderPipeline CreatePipeline()
{
return new ProjectRendererInvalidationProbePipeline(
this);
ProjectRendererInvalidationProbeState
.CreatePipelineCallCount++;
return base.CreatePipeline();
}
public void InvalidateDefaultRendererForTest()