RefCounted GraphicsContext

This commit is contained in:
Simon Lübeß
2021-02-07 13:04:18 +01:00
parent c1fc1c3fd8
commit 54f2c0fcec
11 changed files with 36 additions and 32 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ namespace GlitchyEngine.Renderer
/// Represents a buffer containing binary data on the GPU.
public class Buffer : RefCounted
{
internal GraphicsContext _context;
internal GraphicsContext _context ~ _?.ReleaseRef();
protected BufferDescription _description;
@@ -132,7 +132,7 @@ namespace GlitchyEngine.Renderer
protected this(GraphicsContext context)
{
_context = context;
_context = context..AddRef();
}
/**