Pass through number of mips/layers in Vulkan image views

This commit is contained in:
baldurk
2016-06-24 16:31:04 +02:00
parent bf03ef4a8f
commit 27bbbc39a4
6 changed files with 49 additions and 11 deletions
+2 -2
View File
@@ -1090,7 +1090,7 @@ namespace renderdocui.Code
var ret = new BoundResource();
ret.Id = fb.attachments[rp.depthstencilAttachment].img;
ret.HighestMip = (int)fb.attachments[rp.depthstencilAttachment].baseMip;
ret.FirstSlice = (int)fb.attachments[rp.depthstencilAttachment].baseArray;
ret.FirstSlice = (int)fb.attachments[rp.depthstencilAttachment].baseLayer;
return ret;
}
@@ -1151,7 +1151,7 @@ namespace renderdocui.Code
{
ret[i].Id = fb.attachments[rp.colorAttachments[i]].img;
ret[i].HighestMip = (int)fb.attachments[rp.colorAttachments[i]].baseMip;
ret[i].FirstSlice = (int)fb.attachments[rp.colorAttachments[i]].baseArray;
ret[i].FirstSlice = (int)fb.attachments[rp.colorAttachments[i]].baseLayer;
}
}
+5 -1
View File
@@ -69,6 +69,8 @@ namespace renderdoc
public UInt32 baseMip;
public UInt32 baseLayer;
public UInt32 numMip;
public UInt32 numLayer;
public UInt64 offset;
public UInt64 size;
@@ -383,7 +385,9 @@ namespace renderdoc
public TextureSwizzle[] swizzle;
public UInt32 baseMip;
public UInt32 baseArray;
public UInt32 baseLayer;
public UInt32 numMip;
public UInt32 numLayer;
};
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Attachment[] attachments;