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; }
|
|
|
|
|
2023-06-28 20:20:10 +02:00
|
|
|
public ColorF BlendConstant { get; }
|
|
|
|
public BlendOp ColorOp { get; }
|
2019-10-13 08:02:07 +02:00
|
|
|
public BlendFactor ColorSrcFactor { get; }
|
|
|
|
public BlendFactor ColorDstFactor { get; }
|
2023-06-28 20:20:10 +02:00
|
|
|
public BlendOp AlphaOp { get; }
|
2019-10-13 08:02:07 +02:00
|
|
|
public BlendFactor AlphaSrcFactor { get; }
|
|
|
|
public BlendFactor AlphaDstFactor { get; }
|
|
|
|
|
|
|
|
public BlendDescriptor(
|
2023-06-28 20:20:10 +02:00
|
|
|
bool enable,
|
|
|
|
ColorF blendConstant,
|
|
|
|
BlendOp colorOp,
|
2019-10-13 08:02:07 +02:00
|
|
|
BlendFactor colorSrcFactor,
|
|
|
|
BlendFactor colorDstFactor,
|
2023-06-28 20:20:10 +02:00
|
|
|
BlendOp alphaOp,
|
2019-10-13 08:02:07 +02:00
|
|
|
BlendFactor alphaSrcFactor,
|
|
|
|
BlendFactor alphaDstFactor)
|
|
|
|
{
|
2023-06-28 20:20:10 +02:00
|
|
|
Enable = enable;
|
|
|
|
BlendConstant = blendConstant;
|
|
|
|
ColorOp = colorOp;
|
2019-10-13 08:02:07 +02:00
|
|
|
ColorSrcFactor = colorSrcFactor;
|
|
|
|
ColorDstFactor = colorDstFactor;
|
2023-06-28 20:20:10 +02:00
|
|
|
AlphaOp = alphaOp;
|
2019-10-13 08:02:07 +02:00
|
|
|
AlphaSrcFactor = alphaSrcFactor;
|
|
|
|
AlphaDstFactor = alphaDstFactor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|