public static bool AddNewShaderToCollection(UnityEngine.Shader shader, UnityEngine.ShaderVariantCollection collection)
 {
     if (__AddNewShaderToCollection_0_2 == null)
     {
         __AddNewShaderToCollection_0_2 = (Func <UnityEngine.Shader, UnityEngine.ShaderVariantCollection, bool>)Delegate.CreateDelegate(typeof(Func <UnityEngine.Shader, UnityEngine.ShaderVariantCollection, bool>), null, UnityTypes.UnityEditor_ShaderUtil.GetMethod("AddNewShaderToCollection", R.StaticMembers, null, new Type[] { typeof(UnityEngine.Shader), typeof(UnityEngine.ShaderVariantCollection) }, null));
     }
     return(__AddNewShaderToCollection_0_2(shader, collection));
 }
Пример #2
0
        static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *__ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new UnityEngine.ShaderVariantCollection();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static StackObject *WarmUp_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.ShaderVariantCollection instance_of_this_method = (UnityEngine.ShaderVariantCollection) typeof(UnityEngine.ShaderVariantCollection).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.WarmUp();

            return(__ret);
        }
        static StackObject *get_isWarmedUp_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.ShaderVariantCollection instance_of_this_method = (UnityEngine.ShaderVariantCollection) typeof(UnityEngine.ShaderVariantCollection).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.isWarmedUp;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }