Files
XCEngine/managed/XCEngine.ScriptCore/Rendering/Core/ScriptableRenderPipeline.cs
ssdfasd 58dde75d3d refactor(srp): add managed lifecycle cleanup seams
Invoke managed pipeline disposal and asset runtime cleanup from the native bridge lifecycle. Add Universal renderer and feature cleanup hooks plus regression probes to verify runtime cache teardown semantics.
2026-04-20 01:14:37 +08:00

43 lines
798 B
C#

using XCEngine;
namespace XCEngine.Rendering
{
public abstract class ScriptableRenderPipeline : Object
{
private bool m_disposed;
protected ScriptableRenderPipeline()
{
}
internal void DisposeInstance()
{
if (m_disposed)
{
return;
}
Dispose(true);
m_disposed = true;
}
protected virtual bool SupportsStageRenderGraph(
CameraFrameStage stage)
{
return false;
}
protected virtual bool RecordStageRenderGraph(
ScriptableRenderContext context)
{
return false;
}
protected virtual void Dispose(
bool disposing)
{
}
}
}