50 lines
1005 B
C#
50 lines
1005 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 SupportsStageRenderGraphContextual(
|
|
CameraFrameStage stage,
|
|
int rendererIndex)
|
|
{
|
|
return SupportsStageRenderGraph(stage);
|
|
}
|
|
|
|
protected virtual bool RecordStageRenderGraph(
|
|
ScriptableRenderContext context)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
protected virtual void Dispose(
|
|
bool disposing)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|