RasterizerState ABI break

pull/17/head
cosmonaut 2022-03-14 10:48:31 -07:00
parent e7addb953f
commit 5424d05d63
3 changed files with 9 additions and 23 deletions

@ -1 +1 @@
Subproject commit 3bd904de2bbf62731093c84ef195c7ea355a9d06
Subproject commit cd18b03c0f4cc1bd9feba57158925ac8837f5110

View File

@ -88,7 +88,6 @@ namespace MoonWorks.Graphics
refreshGraphicsPipelineCreateInfo.rasterizerState.depthClampEnable = Conversions.BoolToByte(rasterizerState.DepthClampEnable);
refreshGraphicsPipelineCreateInfo.rasterizerState.fillMode = (Refresh.FillMode) rasterizerState.FillMode;
refreshGraphicsPipelineCreateInfo.rasterizerState.frontFace = (Refresh.FrontFace) rasterizerState.FrontFace;
refreshGraphicsPipelineCreateInfo.rasterizerState.lineWidth = rasterizerState.LineWidth;
refreshGraphicsPipelineCreateInfo.vertexInputState.vertexAttributes = vertexAttributesHandle.AddrOfPinnedObject();
refreshGraphicsPipelineCreateInfo.vertexInputState.vertexAttributeCount = (uint) vertexInputState.VertexAttributes.Length;

View File

@ -41,18 +41,12 @@
/// </summary>
public FrontFace FrontFace;
/// <summary>
/// Describes the width of the line rendering in terms of pixels.
/// </summary>
public float LineWidth;
public static readonly RasterizerState CW_CullFront = new RasterizerState
{
CullMode = CullMode.Front,
FrontFace = FrontFace.Clockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CW_CullBack = new RasterizerState
@ -60,8 +54,7 @@
CullMode = CullMode.Back,
FrontFace = FrontFace.Clockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CW_CullNone = new RasterizerState
@ -69,8 +62,7 @@
CullMode = CullMode.None,
FrontFace = FrontFace.Clockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CW_Wireframe = new RasterizerState
@ -78,8 +70,7 @@
CullMode = CullMode.None,
FrontFace = FrontFace.Clockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CCW_CullFront = new RasterizerState
@ -87,8 +78,7 @@
CullMode = CullMode.Front,
FrontFace = FrontFace.CounterClockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CCW_CullBack = new RasterizerState
@ -96,8 +86,7 @@
CullMode = CullMode.Back,
FrontFace = FrontFace.CounterClockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CCW_CullNone = new RasterizerState
@ -105,8 +94,7 @@
CullMode = CullMode.None,
FrontFace = FrontFace.CounterClockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
public static readonly RasterizerState CCW_Wireframe = new RasterizerState
@ -114,8 +102,7 @@
CullMode = CullMode.None,
FrontFace = FrontFace.CounterClockwise,
FillMode = FillMode.Fill,
DepthBiasEnable = false,
LineWidth = 1f
DepthBiasEnable = false
};
}
}