public static CustomSampler Create(string name, bool collectGpuData = false)
        {
            IntPtr        intPtr = CustomSampler.CreateInternal(name, collectGpuData);
            bool          flag   = intPtr == IntPtr.Zero;
            CustomSampler result;

            if (flag)
            {
                result = CustomSampler.s_InvalidCustomSampler;
            }
            else
            {
                result = new CustomSampler(intPtr);
            }
            return(result);
        }
Exemplo n.º 2
0
        public static CustomSampler Create(string name)
        {
            CustomSampler customSampler = CustomSampler.CreateInternal(name);

            return(customSampler ?? CustomSampler.s_InvalidCustomSampler);
        }