mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-11 07:56:02 +01:00
26 lines
860 B
C#
26 lines
860 B
C#
|
using Ryujinx.Graphics.GAL;
|
||
|
using Ryujinx.Graphics.Gpu.State;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Gpu.Engine
|
||
|
{
|
||
|
partial class Methods
|
||
|
{
|
||
|
private void ResetCounter(int argument)
|
||
|
{
|
||
|
ResetCounterType type = (ResetCounterType)argument;
|
||
|
|
||
|
switch (type)
|
||
|
{
|
||
|
case ResetCounterType.SamplesPassed:
|
||
|
_context.Renderer.ResetCounter(CounterType.SamplesPassed);
|
||
|
break;
|
||
|
case ResetCounterType.PrimitivesGenerated:
|
||
|
_context.Renderer.ResetCounter(CounterType.PrimitivesGenerated);
|
||
|
break;
|
||
|
case ResetCounterType.TransformFeedbackPrimitivesWritten:
|
||
|
_context.Renderer.ResetCounter(CounterType.TransformFeedbackPrimitivesWritten);
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|