Fix mismatch between C# struct and C++ struct (was hidden in padding)

This commit is contained in:
baldurk
2015-01-26 19:48:19 +00:00
parent 4c44fc67cb
commit 0777a87dee
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ namespace renderdocui.Code
ret[a].VertexBuffer = (int)attrs[i].BufferSlot;
ret[a].RelativeByteOffset = attrs[i].RelativeOffset;
ret[a].PerInstance = m_GL.m_VtxIn.vbuffers[attrs[i].BufferSlot].PerInstance;
ret[a].PerInstance = m_GL.m_VtxIn.vbuffers[attrs[i].BufferSlot].Divisor > 0;
ret[a].InstanceRate = (int)m_GL.m_VtxIn.vbuffers[attrs[i].BufferSlot].Divisor;
ret[a].Format = attrs[i].Format;
-1
View File
@@ -52,7 +52,6 @@ namespace renderdoc
public ResourceId Buffer;
public UInt32 Stride;
public UInt32 Offset;
public bool PerInstance;
public UInt32 Divisor;
};
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]