mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Reference counting fixes
This commit is contained in:
@@ -10,7 +10,7 @@ namespace GlitchyEngine.Renderer
|
|||||||
{
|
{
|
||||||
internal this(ConstantBuffer constantBuffer, ID3D11ShaderReflectionVariable* variableReflection)
|
internal this(ConstantBuffer constantBuffer, ID3D11ShaderReflectionVariable* variableReflection)
|
||||||
{
|
{
|
||||||
_constantBuffer = constantBuffer..AddRef();
|
_constantBuffer = constantBuffer;
|
||||||
|
|
||||||
HResult result = variableReflection.GetDescription(let variableDescription);
|
HResult result = variableReflection.GetDescription(let variableDescription);
|
||||||
Log.EngineLogger.Assert(result.Succeeded, scope $"Failed to get variable description. Error({(int)result}): {result}");
|
Log.EngineLogger.Assert(result.Succeeded, scope $"Failed to get variable description. Error({(int)result}): {result}");
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace GlitchyEngine.Renderer
|
|||||||
{
|
{
|
||||||
nativeShaderCode = vertexShader.nativeCode..AddRef();
|
nativeShaderCode = vertexShader.nativeCode..AddRef();
|
||||||
|
|
||||||
_context = context;
|
_context = context..AddRef();
|
||||||
_elements = ownElements;
|
_elements = ownElements;
|
||||||
|
|
||||||
CreateNativeLayout();
|
CreateNativeLayout();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace GlitchyEngine.Renderer
|
|||||||
|
|
||||||
public class BufferVariable
|
public class BufferVariable
|
||||||
{
|
{
|
||||||
private ConstantBuffer _constantBuffer ~ _constantBuffer?.ReleaseRef();
|
private ConstantBuffer _constantBuffer;
|
||||||
|
|
||||||
private String _name ~ delete _;
|
private String _name ~ delete _;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user