Use static D3D11 device and context

This commit is contained in:
Simon Lübeß
2021-10-13 22:56:22 +02:00
parent 84daee95e4
commit 0cbbf94fe6
51 changed files with 448 additions and 345 deletions
@@ -54,17 +54,10 @@ namespace GlitchyEngine.Renderer
public class RasterizerState : RefCounter
{
internal GraphicsContext _context ~ _?.ReleaseRef();
private RasterizerStateDescription _description;
public GraphicsContext Context => _context;
public RasterizerStateDescription Description => _description;
protected this(GraphicsContext context)
{
_context = context..AddRef();
}
public extern this(GraphicsContext context, RasterizerStateDescription description);
public extern this(RasterizerStateDescription description);
}
}