aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.GAL/Multithreading/Commands/SetBlendStateAdvancedCommand.cs
blob: 8405a8ee2faac5f48635bf3913460c1bd4d8739e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace Ryujinx.Graphics.GAL.Multithreading.Commands
{
    struct SetBlendStateAdvancedCommand : IGALCommand, IGALCommand<SetBlendStateAdvancedCommand>
    {
        public readonly CommandType CommandType => CommandType.SetBlendStateAdvanced;
        private AdvancedBlendDescriptor _blend;

        public void Set(AdvancedBlendDescriptor blend)
        {
            _blend = blend;
        }

        public static void Run(ref SetBlendStateAdvancedCommand command, ThreadedRenderer threaded, IRenderer renderer)
        {
            renderer.Pipeline.SetBlendState(command._blend);
        }
    }
}