MoonWorksTemplate/ProjectName/Graphics/Containers/RenderPasses.cs

24 lines
643 B
C#
Raw Normal View History

2021-04-04 21:01:40 +00:00
using MoonWorks.Graphics;
namespace ProjectName.Graphics
{
public class RenderPasses
{
public RenderPass ExampleRenderPass { get; }
public RenderPasses(GraphicsDevice graphicsDevice)
{
var clearPassDescription = new ColorTargetDescription
{
Format = TextureFormat.R8G8B8A8,
LoadOp = LoadOp.Clear,
StoreOp = StoreOp.Store,
MultisampleCount = SampleCount.One
};
ExampleRenderPass = new RenderPass(
graphicsDevice,
clearPassDescription
);
}
}
}