Ejemplo n.º 1
0
        private static void CheckFormats()
        {
            RenderTextureFormat[] array = new RenderTextureFormat[8];
            RuntimeHelpers.InitializeArray(array, fieldof(< PrivateImplementationDetails >.$field - 4B90332EC190C288D28502C7CDE8E9207B8EBE8A).FieldHandle);
            RenderTextureFormat[] array2 = array;
            bool flag = true;

            foreach (RenderTextureFormat renderTextureFormat in array2)
            {
                if (!Compatibility.IsFormatSupported(renderTextureFormat))
                {
                    WaterLogger.Info("Compatibility", "CheckFormats", "RenderTexture format not supported: " + renderTextureFormat);
                    flag = false;
                }
            }
            if (flag)
            {
                WaterLogger.Info("Compatibility", "CheckFormats", "all necessary RenderTexture formats supported");
            }
            else
            {
                WaterLogger.Warning("Compatibility", "CheckFormats", "some of the necessary render texture formats not supported, \nsome features will not be available");
            }
        }