aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/SurfaceFlinger/BufferQueue.cs
blob: e95dcc69f5c12a71315c4f65426769781d783e2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Ryujinx.HLE.HOS.Services.SurfaceFlinger
{
    static class BufferQueue
    {
        public static BufferQueueCore CreateBufferQueue(Switch device, ulong pid, out BufferQueueProducer producer, out BufferQueueConsumer consumer)
        {
            BufferQueueCore core = new(device, pid);

            producer = new BufferQueueProducer(core, device.System.TickSource);
            consumer = new BufferQueueConsumer(core);

            return core;
        }
    }
}