2018-08-10 05:09:40 +01:00
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
|
|
|
{
|
|
|
|
|
public class GalPipelineState
|
|
|
|
|
{
|
|
|
|
|
public const int Stages = 5;
|
|
|
|
|
public const int ConstBuffersPerStage = 18;
|
|
|
|
|
|
|
|
|
|
public long[][] ConstBufferKeys;
|
|
|
|
|
|
|
|
|
|
public GalVertexBinding[] VertexBindings;
|
|
|
|
|
|
2018-09-18 05:30:35 +01:00
|
|
|
|
public bool FramebufferSrgb;
|
|
|
|
|
|
2018-08-10 05:09:40 +01:00
|
|
|
|
public float FlipX;
|
|
|
|
|
public float FlipY;
|
|
|
|
|
|
2018-08-25 05:16:58 +01:00
|
|
|
|
public int Instance;
|
|
|
|
|
|
2018-08-10 05:09:40 +01:00
|
|
|
|
public GalFrontFace FrontFace;
|
|
|
|
|
|
|
|
|
|
public bool CullFaceEnabled;
|
|
|
|
|
public GalCullFace CullFace;
|
|
|
|
|
|
|
|
|
|
public bool DepthTestEnabled;
|
2018-09-20 02:02:11 +01:00
|
|
|
|
public bool DepthWriteEnabled;
|
2018-08-10 05:09:40 +01:00
|
|
|
|
public GalComparisonOp DepthFunc;
|
|
|
|
|
|
|
|
|
|
public bool StencilTestEnabled;
|
2018-10-14 03:54:14 +01:00
|
|
|
|
public bool StencilTwoSideEnabled;
|
2018-08-10 05:09:40 +01:00
|
|
|
|
|
|
|
|
|
public GalComparisonOp StencilBackFuncFunc;
|
|
|
|
|
public int StencilBackFuncRef;
|
|
|
|
|
public uint StencilBackFuncMask;
|
|
|
|
|
public GalStencilOp StencilBackOpFail;
|
|
|
|
|
public GalStencilOp StencilBackOpZFail;
|
|
|
|
|
public GalStencilOp StencilBackOpZPass;
|
|
|
|
|
public uint StencilBackMask;
|
|
|
|
|
|
|
|
|
|
public GalComparisonOp StencilFrontFuncFunc;
|
|
|
|
|
public int StencilFrontFuncRef;
|
|
|
|
|
public uint StencilFrontFuncMask;
|
|
|
|
|
public GalStencilOp StencilFrontOpFail;
|
|
|
|
|
public GalStencilOp StencilFrontOpZFail;
|
|
|
|
|
public GalStencilOp StencilFrontOpZPass;
|
|
|
|
|
public uint StencilFrontMask;
|
|
|
|
|
|
|
|
|
|
public bool BlendEnabled;
|
|
|
|
|
public bool BlendSeparateAlpha;
|
|
|
|
|
public GalBlendEquation BlendEquationRgb;
|
|
|
|
|
public GalBlendFactor BlendFuncSrcRgb;
|
|
|
|
|
public GalBlendFactor BlendFuncDstRgb;
|
|
|
|
|
public GalBlendEquation BlendEquationAlpha;
|
|
|
|
|
public GalBlendFactor BlendFuncSrcAlpha;
|
|
|
|
|
public GalBlendFactor BlendFuncDstAlpha;
|
|
|
|
|
|
2018-10-14 03:54:14 +01:00
|
|
|
|
public bool ColorMaskR;
|
|
|
|
|
public bool ColorMaskG;
|
|
|
|
|
public bool ColorMaskB;
|
|
|
|
|
public bool ColorMaskA;
|
|
|
|
|
|
2018-08-10 05:09:40 +01:00
|
|
|
|
public bool PrimitiveRestartEnabled;
|
|
|
|
|
public uint PrimitiveRestartIndex;
|
|
|
|
|
|
|
|
|
|
public GalPipelineState()
|
|
|
|
|
{
|
|
|
|
|
ConstBufferKeys = new long[Stages][];
|
|
|
|
|
|
|
|
|
|
for (int Stage = 0; Stage < Stages; Stage++)
|
|
|
|
|
{
|
|
|
|
|
ConstBufferKeys[Stage] = new long[ConstBuffersPerStage];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|