Update C# vulkan pipeline state structs to match

This commit is contained in:
baldurk
2015-10-10 22:44:05 +02:00
parent 915f0b0b6c
commit ee1460dcaa
2 changed files with 4 additions and 10 deletions
+2 -8
View File
@@ -165,8 +165,6 @@ namespace renderdoc
[StructLayout(LayoutKind.Sequential)]
public class ViewState
{
public ResourceId state;
[StructLayout(LayoutKind.Sequential)]
public class ViewportScissor
{
@@ -205,7 +203,6 @@ namespace renderdoc
public TriangleCullMode CullMode;
// from dynamic state
public ResourceId state;
public float depthBias;
public float depthBiasClamp;
public float slopeScaledDepthBias;
@@ -257,7 +254,6 @@ namespace renderdoc
[CustomMarshalAs(CustomUnmanagedType.TemplatedArray)]
public Attachment[] attachments;
public ResourceId state;
[CustomMarshalAs(CustomUnmanagedType.FixedArray, FixedLength = 4)]
public float[] blendConst;
};
@@ -286,16 +282,14 @@ namespace renderdoc
public string passOp;
[CustomMarshalAs(CustomUnmanagedType.UTF8TemplatedString)]
public string func;
public UInt32 stencilref;
public UInt32 stencilref, compareMask, writeMask;
};
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
public StencilOp front, back;
public ResourceId State;
public float minDepthBounds;
public float maxDepthBounds;
public UInt32 StencilReadMask;
public UInt32 StencilWriteMask;
};
[CustomMarshalAs(CustomUnmanagedType.CustomClass)]
public DepthStencil DS;
@@ -905,8 +905,8 @@ namespace renderdocui.Windows.PipelineState
depthWrite.Image = state.DS.depthWriteEnable ? tick : cross;
stencilEnable.Image = state.DS.stencilTestEnable ? tick : cross;
stencilReadMask.Text = state.DS.StencilReadMask.ToString("X2");
stencilWriteMask.Text = state.DS.StencilWriteMask.ToString("X2");
stencilReadMask.Text = state.DS.front.compareMask.ToString("X2");
stencilWriteMask.Text = state.DS.front.writeMask.ToString("X2");
stencilRef.Text = state.DS.front.stencilref.ToString("X2");
stencilFuncs.BeginUpdate();