aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs b/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs
index 0fba24a1..e21ce55d 100644
--- a/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs
+++ b/Ryujinx.Graphics.OpenGL/Queries/CounterQueueEvent.cs
@@ -16,18 +16,22 @@ namespace Ryujinx.Graphics.OpenGL.Queries
public bool Disposed { get; private set; }
public bool Invalid { get; set; }
+ public ulong DrawIndex { get; }
+
private CounterQueue _queue;
private BufferedQuery _counter;
private object _lock = new object();
- public CounterQueueEvent(CounterQueue queue, QueryTarget type)
+ public CounterQueueEvent(CounterQueue queue, QueryTarget type, ulong drawIndex)
{
_queue = queue;
_counter = queue.GetQueryObject();
Type = type;
+ DrawIndex = drawIndex;
+
_counter.Begin();
}