Vulkan scissor regions are x,y,width,height

This commit is contained in:
baldurk
2015-11-04 17:46:15 +01:00
parent ba95d887f8
commit b363dc1fb5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
}
}