mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added rudimentary DepthStencilTarget
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user