mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-24 16:30:12 +01:00
a11f6f5235
Thanks to LDj3SNuD for spotting these
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using Ryujinx.Graphics.GAL;
|
|
using Ryujinx.Graphics.Gpu.State;
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Engine
|
|
{
|
|
partial class Methods
|
|
{
|
|
/// <summary>
|
|
/// Resets the value of an internal GPU counter back to zero.
|
|
/// </summary>
|
|
/// <param name="state">Current GPU state</param>
|
|
/// <param name="argument">Method call argument</param>
|
|
private void ResetCounter(GpuState state, 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;
|
|
}
|
|
}
|
|
}
|
|
} |