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

31 lines
544 B
C#
Raw Normal View History

2023-04-11 05:58:47 +02:00
#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
}
}
}