Align Universal renderer ownership with Unity SRP
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user