mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Make sure to skip padding registers when enumerating D3D12 bindings
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user