scripts
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.VR
|
||||
{
|
||||
// Token: 0x020002FA RID: 762
|
||||
public static class VRStats
|
||||
{
|
||||
// Token: 0x06003147 RID: 12615
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool TryGetGPUTimeLastFrame(out float gpuTimeLastFrame);
|
||||
|
||||
// Token: 0x06003148 RID: 12616
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool TryGetDroppedFrameCount(out int droppedFrameCount);
|
||||
|
||||
// Token: 0x06003149 RID: 12617
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool TryGetFramePresentCount(out int framePresentCount);
|
||||
|
||||
// Token: 0x17000B24 RID: 2852
|
||||
// (get) Token: 0x0600314A RID: 12618 RVA: 0x00049AC4 File Offset: 0x00047CC4
|
||||
[Obsolete("gpuTimeLastFrame is deprecated. Use VRStats.TryGetGPUTimeLastFrame instead.")]
|
||||
public static float gpuTimeLastFrame
|
||||
{
|
||||
get
|
||||
{
|
||||
float num;
|
||||
float num2;
|
||||
if (VRStats.TryGetGPUTimeLastFrame(out num))
|
||||
{
|
||||
num2 = num;
|
||||
}
|
||||
else
|
||||
{
|
||||
num2 = 0f;
|
||||
}
|
||||
return num2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user