aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Multithreading/Commands/Renderer/CreateSyncCommand.cs
blob: 2e23760ebece5a97eb30773d6768e09e6316ffa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Renderer
{
    struct CreateSyncCommand : IGALCommand
    {
        public CommandType CommandType => CommandType.CreateSync;
        private ulong _id;

        public void Set(ulong id)
        {
            _id = id;
        }

        public static void Run(ref CreateSyncCommand command, ThreadedRenderer threaded, IRenderer renderer)
        {
            renderer.CreateSync(command._id);

            threaded.Sync.AssignSync(command._id);
        }
    }
}