MoonWorksMultiWindowTest/src/Graphics/Containers/RenderTargets.cs

33 lines
824 B
C#
Raw Normal View History

2022-02-09 01:38:20 +00:00
using MoonWorks.Graphics;
namespace MoonWorksMultiWindow.Graphics
{
public class RenderTargets
{
public RenderTarget ExampleRenderTarget { get; }
public RenderTarget ExtraWindowRenderTarget { get; }
public RenderTargets(
GraphicsDevice graphicsDevice,
uint renderDimensionsX,
uint renderDimensionsY
) {
ExampleRenderTarget = RenderTarget.CreateBackedRenderTarget(
graphicsDevice,
renderDimensionsX,
renderDimensionsY,
TextureFormat.R8G8B8A8,
false
);
ExtraWindowRenderTarget = RenderTarget.CreateBackedRenderTarget(
graphicsDevice,
renderDimensionsX,
renderDimensionsY,
TextureFormat.R8G8B8A8,
false
);
}
}
}