smrendererv3/SMCode/SM2D/Pipelines/Basic2DPipeline.cs
2021-03-19 20:59:02 +01:00

28 lines
No EOL
742 B
C#

using SM.Base.Shaders;
using SM.Base.Window;
using SM2D.Shader;
namespace SM2D.Pipelines
{
/// <summary>
/// This implements the most basic render pipeline.
/// </summary>
public class Basic2DPipeline : RenderPipeline
{
/// <summary>
/// The access to the pipeline.
/// </summary>
public static Basic2DPipeline Pipeline = new Basic2DPipeline();
/// <inheritdoc />
public override MaterialShader DefaultShader { get; protected set; } = ShaderCollection.Instanced;
private Basic2DPipeline() {}
/// <inheritdoc />
protected override void RenderProcess(ref DrawContext context)
{
context.Scene?.Draw(context);
}
}
}