From b49386534905fe15dc7120616ca152bfe2021402 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Sep 2016 12:51:14 +0200 Subject: [PATCH] Make members of TextureSave class not struct, so python can modify them --- renderdocui/Interop/FetchInfo.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/renderdocui/Interop/FetchInfo.cs b/renderdocui/Interop/FetchInfo.cs index 40d6f588a..8cdaf12a1 100644 --- a/renderdocui/Interop/FetchInfo.cs +++ b/renderdocui/Interop/FetchInfo.cs @@ -726,7 +726,8 @@ namespace renderdoc public Int32 mip = -1; - public struct ComponentMapping + [StructLayout(LayoutKind.Sequential)] + public class ComponentMapping { public float blackPoint; public float whitePoint; @@ -736,7 +737,7 @@ namespace renderdoc public ComponentMapping comp = new ComponentMapping(); [StructLayout(LayoutKind.Sequential)] - public struct SampleMapping + public class SampleMapping { public bool mapToArray; @@ -746,7 +747,7 @@ namespace renderdoc public SampleMapping sample = new SampleMapping(); [StructLayout(LayoutKind.Sequential)] - public struct SliceMapping + public class SliceMapping { public Int32 sliceIndex;