2019-12-29 18:41:50 +01:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
2019-10-13 08:02:07 +02:00
|
|
|
{
|
2022-12-05 14:47:39 +01:00
|
|
|
public readonly struct BlendDescriptor
|
2019-10-13 08:02:07 +02:00
|
|
|
{
|
|
|
|
public bool Enable { get; }
|
|
|
|
|
2020-04-25 15:00:43 +02:00
|
|
|
public ColorF BlendConstant { get; }
|
2019-10-13 08:02:07 +02:00
|
|
|
public BlendOp ColorOp { get; }
|
|
|
|
public BlendFactor ColorSrcFactor { get; }
|
|
|
|
public BlendFactor ColorDstFactor { get; }
|
|
|
|
public BlendOp AlphaOp { get; }
|
|
|
|
public BlendFactor AlphaSrcFactor { get; }
|
|
|
|
public BlendFactor AlphaDstFactor { get; }
|
|
|
|
|
|
|
|
public BlendDescriptor(
|
|
|
|
bool enable,
|
2020-04-25 15:00:43 +02:00
|
|
|
ColorF blendConstant,
|
2019-10-13 08:02:07 +02:00
|
|
|
BlendOp colorOp,
|
|
|
|
BlendFactor colorSrcFactor,
|
|
|
|
BlendFactor colorDstFactor,
|
|
|
|
BlendOp alphaOp,
|
|
|
|
BlendFactor alphaSrcFactor,
|
|
|
|
BlendFactor alphaDstFactor)
|
|
|
|
{
|
|
|
|
Enable = enable;
|
2020-04-25 15:00:43 +02:00
|
|
|
BlendConstant = blendConstant;
|
2019-10-13 08:02:07 +02:00
|
|
|
ColorOp = colorOp;
|
|
|
|
ColorSrcFactor = colorSrcFactor;
|
|
|
|
ColorDstFactor = colorDstFactor;
|
|
|
|
AlphaOp = alphaOp;
|
|
|
|
AlphaSrcFactor = alphaSrcFactor;
|
|
|
|
AlphaDstFactor = alphaDstFactor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|