mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00: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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|