StationObscurum/Assets/Adobe/Substance3DForUnity/Runtime/Scripts/Profile/ProfileUtils.cs

31 lines
544 B
C#

#define SUBSTANCE_PROFILE_ENABLE
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if SUBSTANCE_PROFILE_ENABLE
using UnityEngine.Profiling;
#endif
namespace Adobe.Substance
{
internal static class ProfileUtils
{
internal static void BeginSample(string name)
{
#if SUBSTANCE_PROFILE_ENABLE
Profiler.BeginSample(name);
#endif
}
internal static void EndSample()
{
#if SUBSTANCE_PROFILE_ENABLE
Profiler.EndSample();
#endif
}
}
}