Fix up fetching layer/mip for FBOs on replay

This commit is contained in:
baldurk
2015-07-18 18:27:34 +02:00
parent e5c1f8ee3b
commit 8213281921
8 changed files with 120 additions and 47 deletions
+11 -7
View File
@@ -312,6 +312,14 @@ namespace renderdoc
public class FrameBuffer
{
public bool FramebufferSRGB;
[StructLayout(LayoutKind.Sequential)]
public class Attachment
{
public ResourceId Obj;
public UInt32 Layer;
public UInt32 Mip;
};
[StructLayout(LayoutKind.Sequential)]
public class FBO
@@ -319,13 +327,9 @@ namespace renderdoc
public ResourceId Obj;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public ResourceId[] Color;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public UInt32[] Layer;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public UInt32[] Mip;
public ResourceId Depth;
public ResourceId Stencil;
public Attachment[] Color;
public Attachment Depth;
public Attachment Stencil;
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Int32[] DrawBuffers;