mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-27 08:56:44 +00:00
Fix mismatch between C# struct and C++ struct (was hidden in padding)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ namespace renderdoc
|
||||
public ResourceId Buffer;
|
||||
public UInt32 Stride;
|
||||
public UInt32 Offset;
|
||||
public bool PerInstance;
|
||||
public UInt32 Divisor;
|
||||
};
|
||||
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
|
||||
|
||||
Reference in New Issue
Block a user