mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Vulkan scissor regions are x,y,width,height
This commit is contained in:
@@ -181,7 +181,7 @@ namespace renderdoc
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public class Scissor
|
||||
{
|
||||
public Int32 x, y, right, bottom;
|
||||
public Int32 x, y, width, height;
|
||||
};
|
||||
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
|
||||
public Scissor scissor;
|
||||
|
||||
@@ -746,9 +746,9 @@ namespace renderdocui.Windows.PipelineState
|
||||
|
||||
i++;
|
||||
|
||||
node = scissors.Nodes.Add(new object[] { i, v.scissor.x, v.scissor.y, v.scissor.right - v.scissor.x, v.scissor.bottom - v.scissor.y });
|
||||
node = scissors.Nodes.Add(new object[] { i, v.scissor.x, v.scissor.y, v.scissor.width, v.scissor.height });
|
||||
|
||||
if (v.scissor.right == v.scissor.x || v.scissor.bottom == v.scissor.y)
|
||||
if (v.scissor.width == 0 || v.scissor.height == 0)
|
||||
EmptyRow(node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user