mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Pass through number of mips/layers in Vulkan image views
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user