Added rudimentary DepthStencilTarget

This commit is contained in:
Simon Lübeß
2021-05-30 19:49:10 +02:00
parent 562f4855bd
commit bf94f10a64
6 changed files with 98 additions and 2 deletions
@@ -3,6 +3,13 @@ using GlitchyEngine.Math;
namespace GlitchyEngine.Renderer
{
public enum DepthStencilClearFlag
{
None = 0,
Depth = 1,
Stencil = 2
}
public static class RenderCommand
{
private static RendererAPI _rendererAPI;
@@ -24,6 +31,13 @@ namespace GlitchyEngine.Renderer
{
_rendererAPI.Clear(renderTarget, color);
}
[Inline]
public static void Clear(DepthStencilTarget target, float depthValue, uint8 stencilValue, DepthStencilClearFlag clearFlags)
{
_rendererAPI.Clear(target, depthValue, stencilValue, clearFlags);
}
[Inline]
public static void DrawIndexed(GeometryBinding geometry)