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
+1 -4
View File
@@ -35,8 +35,6 @@ namespace GlitchyEngine.Renderer
public class RenderTarget2D : RefCounter
{
internal GraphicsContext _context;
private RenderTarget2DDescription _description;
public RenderTarget2DDescription Description => _description;
@@ -63,9 +61,8 @@ namespace GlitchyEngine.Renderer
}
}
public this(GraphicsContext context, RenderTarget2DDescription description)
public this(RenderTarget2DDescription description)
{
_context = context;
_description = description;
ApplyChanges();