2026-04-19 02:38:48 +08:00
|
|
|
using XCEngine;
|
|
|
|
|
|
|
|
|
|
namespace XCEngine.Rendering
|
|
|
|
|
{
|
|
|
|
|
public abstract class ScriptableRenderPipeline : Object
|
|
|
|
|
{
|
2026-04-20 01:14:37 +08:00
|
|
|
private bool m_disposed;
|
|
|
|
|
|
2026-04-19 02:38:48 +08:00
|
|
|
protected ScriptableRenderPipeline()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-20 01:14:37 +08:00
|
|
|
internal void DisposeInstance()
|
|
|
|
|
{
|
|
|
|
|
if (m_disposed)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Dispose(true);
|
|
|
|
|
m_disposed = true;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-19 05:03:56 +08:00
|
|
|
protected virtual bool SupportsStageRenderGraph(
|
2026-04-19 02:38:48 +08:00
|
|
|
CameraFrameStage stage)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-19 05:03:56 +08:00
|
|
|
protected virtual bool RecordStageRenderGraph(
|
2026-04-19 02:38:48 +08:00
|
|
|
ScriptableRenderContext context)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2026-04-20 01:14:37 +08:00
|
|
|
|
|
|
|
|
protected virtual void Dispose(
|
|
|
|
|
bool disposing)
|
|
|
|
|
{
|
|
|
|
|
}
|
2026-04-19 02:38:48 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|