Ejemplo n.º 1
0
        public static Sampler Get(string name)
        {
            IntPtr nativeSampler = ProfilerUnsafeUtility.GetMarker(name);

            if (nativeSampler == IntPtr.Zero)
            {
                return(s_InvalidSampler);
            }

            return(new Sampler(nativeSampler));
        }