Esempio n. 1
0
        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new UnityEngine.RenderTextureMemoryless();

            ins = (UnityEngine.RenderTextureMemoryless)o;
            return(ins);
        }
Esempio n. 2
0
    static int QPYX_set_memorylessMode_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.RenderTexture QPYX_obj_YXQP = (UnityEngine.RenderTexture)QPYX_o_YXQP;
            UnityEngine.RenderTextureMemoryless QPYX_arg0_YXQP = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.RenderTextureMemoryless));
            QPYX_obj_YXQP.memorylessMode = QPYX_arg0_YXQP;
            return(0);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index memorylessMode on a nil value"));
        }
    }
Esempio n. 3
0
    static int QPYX_get_memorylessMode_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        UnityEngine.RenderTexture QPYX_obj_YXQP = (UnityEngine.RenderTexture)QPYX_o_YXQP;
            UnityEngine.RenderTextureMemoryless QPYX_ret_YXQP = QPYX_obj_YXQP.memorylessMode;
            ToLua.Push(L_YXQP, QPYX_ret_YXQP);
            return(1);
        }
        catch (Exception QPYX_e_YXQP)            {
            return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index memorylessMode on a nil value"));
        }
    }
Esempio n. 4
0
        static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.RenderTextureMemoryless instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.RenderTextureMemoryless[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
Esempio n. 5
0
    static int set_memorylessMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.RenderTexture           obj  = (UnityEngine.RenderTexture)o;
            UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless));
            obj.memorylessMode = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value"));
        }
    }
Esempio n. 6
0
    static int get_memorylessMode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.RenderTexture           obj = (UnityEngine.RenderTexture)o;
            UnityEngine.RenderTextureMemoryless ret = obj.memorylessMode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value"));
        }
    }
	static int get_memorylessMode(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.RenderTexture.memorylessMode");
#endif
		object o = null;

		try
		{
			o = ToLua.ToObject(L, 1);
			UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
			UnityEngine.RenderTextureMemoryless ret = obj.memorylessMode;
			ToLua.Push(L, ret);
			return 1;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value");
		}
	}
	static int set_memorylessMode(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.RenderTexture.memorylessMode");
#endif
		object o = null;

		try
		{
			o = ToLua.ToObject(L, 1);
			UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
			UnityEngine.RenderTextureMemoryless arg0 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureMemoryless));
			obj.memorylessMode = arg0;
			return 0;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e, o, "attempt to index memorylessMode on a nil value");
		}
	}
        static StackObject *set_memoryless_22(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, 2);

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

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            UnityEngine.RenderTextureDescriptor instance_of_this_method;
            instance_of_this_method = (UnityEngine.RenderTextureDescriptor) typeof(UnityEngine.RenderTextureDescriptor).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            instance_of_this_method.memoryless = value;

            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            return(__ret);
        }
Esempio n. 10
0
    static int GetTemporary6(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
            int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
            int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
            UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)LuaDLL.lua_tonumber(L, 4);
            UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)LuaDLL.lua_tonumber(L, 5);
            int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
            UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)LuaDLL.lua_tonumber(L, 7);
            var o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
            ToLua.Push(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 11
0
    static int GetTemporary(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.RenderTextureDescriptor arg0 = StackTraits <UnityEngine.RenderTextureDescriptor> .Check(L, 1);

                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 4)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTexture       o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 5)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
                UnityEngine.RenderTexture          o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 6)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 7)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 12
0
    static int GetTemporary(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                UnityEngine.RenderTextureDescriptor arg0 = StackTraits <UnityEngine.RenderTextureDescriptor> .Check(L, 1);

                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTexture       o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 5 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.GraphicsFormat, int>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
                int arg4 = (int)LuaDLL.lua_tonumber(L, 5);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 5 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat, UnityEngine.RenderTextureReadWrite>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                UnityEngine.RenderTexture          o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 6 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.GraphicsFormat, int, UnityEngine.RenderTextureMemoryless>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
                int arg4 = (int)LuaDLL.lua_tonumber(L, 5);
                UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 6 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat, UnityEngine.RenderTextureReadWrite, int>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 7 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.GraphicsFormat, int, UnityEngine.RenderTextureMemoryless, UnityEngine.VRTextureUsage>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
                int arg4 = (int)LuaDLL.lua_tonumber(L, 5);
                UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6);
                UnityEngine.VRTextureUsage          arg6 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 7);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 7 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat, UnityEngine.RenderTextureReadWrite, int, UnityEngine.RenderTextureMemoryless>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 8 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.GraphicsFormat, int, UnityEngine.RenderTextureMemoryless, UnityEngine.VRTextureUsage, bool>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.Experimental.Rendering.GraphicsFormat arg3 = (UnityEngine.Experimental.Rendering.GraphicsFormat)ToLua.ToObject(L, 4);
                int arg4 = (int)LuaDLL.lua_tonumber(L, 5);
                UnityEngine.RenderTextureMemoryless arg5 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 6);
                UnityEngine.VRTextureUsage          arg6 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 7);
                bool arg7 = LuaDLL.lua_toboolean(L, 8);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 8 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat, UnityEngine.RenderTextureReadWrite, int, UnityEngine.RenderTextureMemoryless, UnityEngine.VRTextureUsage>(L, 4))
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
                UnityEngine.VRTextureUsage          arg7 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 8);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 9)
            {
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
                int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
                int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
                UnityEngine.VRTextureUsage          arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage));
                bool arg8 = LuaDLL.luaL_checkboolean(L, 9);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 13
0
    static int GetTemporary(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTextureDescriptor)))
            {
                UnityEngine.RenderTextureDescriptor arg0 = (UnityEngine.RenderTextureDescriptor)ToLua.ToObject(L, 1);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTexture       o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                UnityEngine.RenderTexture          o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 7 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int), typeof(UnityEngine.RenderTextureMemoryless)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 8 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat), typeof(UnityEngine.RenderTextureReadWrite), typeof(int), typeof(UnityEngine.RenderTextureMemoryless), typeof(UnityEngine.VRTextureUsage)))
            {
                int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 2);
                int arg2 = (int)LuaDLL.lua_tonumber(L, 3);
                UnityEngine.RenderTextureFormat    arg3 = (UnityEngine.RenderTextureFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.ToObject(L, 5);
                int arg5 = (int)LuaDLL.lua_tonumber(L, 6);
                UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.ToObject(L, 7);
                UnityEngine.VRTextureUsage          arg7 = (UnityEngine.VRTextureUsage)ToLua.ToObject(L, 8);
                UnityEngine.RenderTexture           o    = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
                ToLua.Push(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
	static int GetTemporary(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.RenderTexture.Register");
#endif
		try
		{
			int count = LuaDLL.lua_gettop(L);

			if (count == 1)
			{
				UnityEngine.RenderTextureDescriptor arg0 = StackTraits<UnityEngine.RenderTextureDescriptor>.Check(L, 1);
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 2)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 3)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 4)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 5)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 6)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
				int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 7)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
				int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
				UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 8)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
				int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
				UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
				UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage));
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
				ToLua.Push(L, o);
				return 1;
			}
			else if (count == 9)
			{
				int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
				int arg2 = (int)LuaDLL.luaL_checknumber(L, 3);
				UnityEngine.RenderTextureFormat arg3 = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L, 4, typeof(UnityEngine.RenderTextureFormat));
				UnityEngine.RenderTextureReadWrite arg4 = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L, 5, typeof(UnityEngine.RenderTextureReadWrite));
				int arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
				UnityEngine.RenderTextureMemoryless arg6 = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L, 7, typeof(UnityEngine.RenderTextureMemoryless));
				UnityEngine.VRTextureUsage arg7 = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L, 8, typeof(UnityEngine.VRTextureUsage));
				bool arg8 = LuaDLL.luaL_checkboolean(L, 9);
				UnityEngine.RenderTexture o = UnityEngine.RenderTexture.GetTemporary(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
				ToLua.Push(L, o);
				return 1;
			}
			else
			{
				return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary");
			}
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Esempio n. 15
0
    static int QPYX_GetTemporary_YXQP(IntPtr L_YXQP)
    {
        try
        {
            int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
            if (QPYX_count_YXQP == 1)
            {
                UnityEngine.RenderTextureDescriptor QPYX_arg0_YXQP = StackTraits <UnityEngine.RenderTextureDescriptor> .Check(L_YXQP, 1);

                UnityEngine.RenderTexture QPYX_o_YXQP = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 2)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                UnityEngine.RenderTexture QPYX_o_YXQP = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 3)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTexture QPYX_o_YXQP = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 4)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTexture       QPYX_o_YXQP    = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 5)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat    QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite QPYX_arg4_YXQP = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L_YXQP, 5, typeof(UnityEngine.RenderTextureReadWrite));
                UnityEngine.RenderTexture          QPYX_o_YXQP    = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 6)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat    QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite QPYX_arg4_YXQP = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L_YXQP, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int QPYX_arg5_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 6);
                UnityEngine.RenderTexture QPYX_o_YXQP = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP, QPYX_arg5_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 7)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat    QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite QPYX_arg4_YXQP = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L_YXQP, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int QPYX_arg5_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 6);
                UnityEngine.RenderTextureMemoryless QPYX_arg6_YXQP = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L_YXQP, 7, typeof(UnityEngine.RenderTextureMemoryless));
                UnityEngine.RenderTexture           QPYX_o_YXQP    = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP, QPYX_arg5_YXQP, QPYX_arg6_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 8)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat    QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite QPYX_arg4_YXQP = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L_YXQP, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int QPYX_arg5_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 6);
                UnityEngine.RenderTextureMemoryless QPYX_arg6_YXQP = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L_YXQP, 7, typeof(UnityEngine.RenderTextureMemoryless));
                UnityEngine.VRTextureUsage          QPYX_arg7_YXQP = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L_YXQP, 8, typeof(UnityEngine.VRTextureUsage));
                UnityEngine.RenderTexture           QPYX_o_YXQP    = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP, QPYX_arg5_YXQP, QPYX_arg6_YXQP, QPYX_arg7_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 9)
            {
                int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 1);
                int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
                int QPYX_arg2_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
                UnityEngine.RenderTextureFormat    QPYX_arg3_YXQP = (UnityEngine.RenderTextureFormat)ToLua.CheckObject(L_YXQP, 4, typeof(UnityEngine.RenderTextureFormat));
                UnityEngine.RenderTextureReadWrite QPYX_arg4_YXQP = (UnityEngine.RenderTextureReadWrite)ToLua.CheckObject(L_YXQP, 5, typeof(UnityEngine.RenderTextureReadWrite));
                int QPYX_arg5_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 6);
                UnityEngine.RenderTextureMemoryless QPYX_arg6_YXQP = (UnityEngine.RenderTextureMemoryless)ToLua.CheckObject(L_YXQP, 7, typeof(UnityEngine.RenderTextureMemoryless));
                UnityEngine.VRTextureUsage          QPYX_arg7_YXQP = (UnityEngine.VRTextureUsage)ToLua.CheckObject(L_YXQP, 8, typeof(UnityEngine.VRTextureUsage));
                bool QPYX_arg8_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 9);
                UnityEngine.RenderTexture QPYX_o_YXQP = UnityEngine.RenderTexture.GetTemporary(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP, QPYX_arg5_YXQP, QPYX_arg6_YXQP, QPYX_arg7_YXQP, QPYX_arg8_YXQP);
                ToLua.Push(L_YXQP, QPYX_o_YXQP);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to method: UnityEngine.RenderTexture.GetTemporary"));
            }
        }
        catch (Exception e_YXQP)                {
            return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
        }
    }