Make sure to skip padding registers when enumerating D3D12 bindings

This commit is contained in:
baldurk
2017-06-21 11:02:44 +01:00
parent 734fa13443
commit 90077f54ee
2 changed files with 18 additions and 0 deletions
+8
View File
@@ -1129,6 +1129,10 @@ namespace renderdocui.Code
var key = new BindpointMap(space, reg);
var val = new BoundResource();
// consider this register to not exist - it's in a gap defined by sparse root signature elements
if (bind.RootElement == uint.MaxValue)
continue;
val = new BoundResource();
val.Id = bind.Resource;
val.HighestMip = (int)bind.HighestMip;
@@ -1278,6 +1282,10 @@ namespace renderdocui.Code
var key = new BindpointMap(space, reg);
var val = new BoundResource();
// consider this register to not exist - it's in a gap defined by sparse root signature elements
if (bind.RootElement == uint.MaxValue)
continue;
val = new BoundResource();
val.Id = bind.Resource;
val.HighestMip = (int)bind.HighestMip;