scripts
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Profiling
|
||||
{
|
||||
// Token: 0x020000FC RID: 252
|
||||
[UsedByNativeCode]
|
||||
public class Sampler
|
||||
{
|
||||
// Token: 0x06001226 RID: 4646 RVA: 0x0001824C File Offset: 0x0001644C
|
||||
internal Sampler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000392 RID: 914
|
||||
// (get) Token: 0x06001227 RID: 4647 RVA: 0x00018258 File Offset: 0x00016458
|
||||
public bool isValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Ptr != IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001228 RID: 4648 RVA: 0x00018280 File Offset: 0x00016480
|
||||
public Recorder GetRecorder()
|
||||
{
|
||||
Recorder recorderInternal = this.GetRecorderInternal();
|
||||
return recorderInternal ?? Recorder.s_InvalidRecorder;
|
||||
}
|
||||
|
||||
// Token: 0x06001229 RID: 4649 RVA: 0x000182AC File Offset: 0x000164AC
|
||||
public static Sampler Get(string name)
|
||||
{
|
||||
Sampler samplerInternal = Sampler.GetSamplerInternal(name);
|
||||
return samplerInternal ?? Sampler.s_InvalidSampler;
|
||||
}
|
||||
|
||||
// Token: 0x0600122A RID: 4650 RVA: 0x000182D8 File Offset: 0x000164D8
|
||||
public static int GetNames(List<string> names)
|
||||
{
|
||||
return Sampler.GetSamplerNamesInternal(names);
|
||||
}
|
||||
|
||||
// Token: 0x17000393 RID: 915
|
||||
// (get) Token: 0x0600122B RID: 4651
|
||||
[ThreadAndSerializationSafe]
|
||||
public extern string name
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600122C RID: 4652
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern Recorder GetRecorderInternal();
|
||||
|
||||
// Token: 0x0600122D RID: 4653
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern Sampler GetSamplerInternal(string name);
|
||||
|
||||
// Token: 0x0600122E RID: 4654
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern int GetSamplerNamesInternal(object namesScriptingPtr);
|
||||
|
||||
// Token: 0x04000246 RID: 582
|
||||
internal IntPtr m_Ptr;
|
||||
|
||||
// Token: 0x04000247 RID: 583
|
||||
internal static Sampler s_InvalidSampler = new Sampler();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user