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,3 +1,5 @@
#if GE_D3D11
using DirectX.Common;
using DirectX.D3D11Shader;
using System;
@@ -47,7 +49,7 @@ namespace GlitchyEngine.Renderer
extension ConstantBuffer
{
internal this(GraphicsContext context, ID3D11ShaderReflectionConstantBuffer* bufferReflection) : base(context)
internal this(ID3D11ShaderReflectionConstantBuffer* bufferReflection)
{
Reflect(bufferReflection);
@@ -80,3 +82,5 @@ namespace GlitchyEngine.Renderer
}
}
}
#endif