mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-01 19:27:18 +01:00
21 lines
524 B
C#
21 lines
524 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|