aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.Graphics.GAL/BlendDescriptor.cs
blob: d9cf3e49c93873990a11b5f7238c60f1f14e9bc6 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                              
 
                                          

                                   
                                            
                                                  
                                       


                                                  

                                 
                                       
                            

                                       

                                          
                                            
                              



                                            
namespace Ryujinx.Graphics.GAL
{
    public readonly struct BlendDescriptor
    {
        public bool Enable { get; }

        public ColorF BlendConstant { get; }
        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,
            ColorF blendConstant,
            BlendOp colorOp,
            BlendFactor colorSrcFactor,
            BlendFactor colorDstFactor,
            BlendOp alphaOp,
            BlendFactor alphaSrcFactor,
            BlendFactor alphaDstFactor)
        {
            Enable = enable;
            BlendConstant = blendConstant;
            ColorOp = colorOp;
            ColorSrcFactor = colorSrcFactor;
            ColorDstFactor = colorDstFactor;
            AlphaOp = alphaOp;
            AlphaSrcFactor = alphaSrcFactor;
            AlphaDstFactor = alphaDstFactor;
        }
    }
}