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
@@ -0,0 +1,29 @@
using System;
namespace GlitchyEngine.Renderer
{
// TODO: add all features.
public class DepthStencilTarget : RefCounted
{
protected internal GraphicsContext _context ~ _?.ReleaseRef();
protected uint32 _width, _height;
public uint32 Width => _width;
public uint32 Height => _height;
public this(GraphicsContext context, uint32 width, uint32 height)
{
_context = context..AddRef();
_width = width;
_height = height;
PlatformCreate();
}
protected extern void PlatformCreate();
public extern void Bind();
public extern void Clear(float depthValue, uint8 stencilValue, DepthStencilClearFlag clearFlags);
}
}