mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-15 03:21:15 +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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|