using System; using System.Runtime.CompilerServices; using UnityEngine; namespace UnityEditorInternal { internal sealed class FrameDebuggerUtility { public static extern bool enabled { [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] get; [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] set; } public static extern int count { [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] get; } public static extern int limit { [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] get; [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] set; } public static extern int eventsHash { [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] get; } public static void SetRenderTargetDisplayOptions(int rtIndex, Vector4 channels, float blackLevel, float whiteLevel) { FrameDebuggerUtility.INTERNAL_CALL_SetRenderTargetDisplayOptions(rtIndex, ref channels, blackLevel, whiteLevel); } [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] private static extern void INTERNAL_CALL_SetRenderTargetDisplayOptions(int rtIndex, ref Vector4 channels, float blackLevel, float whiteLevel); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern FrameDebuggerEvent[] GetFrameEvents(); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern string GetFrameEventInfoName(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern string GetFrameEventShaderKeywords(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetFrameEventShaderID(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetFrameEventShaderPassIndex(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetFrameEventRendererID(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetFrameEventMeshID(int index); [WrapperlessIcall] [MethodImpl(MethodImplOptions.InternalCall)] public static extern int GetFrameEventMeshSubset(int index); } }