2021-01-20 03:33:27 +00:00
|
|
|
using RefreshCS;
|
|
|
|
|
|
|
|
namespace MoonWorks.Graphics
|
|
|
|
{
|
|
|
|
public struct DepthStencilState
|
|
|
|
{
|
|
|
|
public bool DepthTestEnable;
|
2021-01-22 01:27:25 +00:00
|
|
|
public StencilOpState BackStencilState;
|
|
|
|
public StencilOpState FrontStencilState;
|
|
|
|
public CompareOp CompareOp;
|
2021-01-20 03:33:27 +00:00
|
|
|
public bool DepthBoundsTestEnable;
|
|
|
|
public bool DepthWriteEnable;
|
|
|
|
public float MinDepthBounds;
|
|
|
|
public float MaxDepthBounds;
|
|
|
|
public bool StencilTestEnable;
|
|
|
|
|
|
|
|
public static readonly DepthStencilState DepthReadWrite = new DepthStencilState
|
|
|
|
{
|
|
|
|
DepthTestEnable = true,
|
|
|
|
DepthWriteEnable = true,
|
|
|
|
DepthBoundsTestEnable = false,
|
|
|
|
StencilTestEnable = false,
|
2021-01-22 01:27:25 +00:00
|
|
|
CompareOp = CompareOp.LessOrEqual
|
2021-01-20 03:33:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public static readonly DepthStencilState DepthRead = new DepthStencilState
|
|
|
|
{
|
|
|
|
DepthTestEnable = true,
|
|
|
|
DepthWriteEnable = false,
|
|
|
|
DepthBoundsTestEnable = false,
|
|
|
|
StencilTestEnable = false,
|
2021-01-22 01:27:25 +00:00
|
|
|
CompareOp = CompareOp.LessOrEqual
|
2021-01-20 03:33:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
public static readonly DepthStencilState Disable = new DepthStencilState
|
|
|
|
{
|
|
|
|
DepthTestEnable = false,
|
|
|
|
DepthWriteEnable = false,
|
|
|
|
DepthBoundsTestEnable = false,
|
|
|
|
StencilTestEnable = false
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|