Ejemplo n.º 1
0
    static int _CreateUnityEngine_RenderTexture(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.CheckObject(L, 1, typeof(UnityEngine.RenderTextureDescriptor));
                UnityEngine.RenderTexture           obj  = new UnityEngine.RenderTexture(arg0);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.RenderTexture)))
            {
                UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.RenderTexture));
                UnityEngine.RenderTexture obj  = new UnityEngine.RenderTexture(arg0);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int)))
            {
                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 obj = new UnityEngine.RenderTexture(arg0, arg1, arg2);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(int), typeof(int), typeof(int), typeof(UnityEngine.RenderTextureFormat)))
            {
                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       obj  = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
                ToLua.Push(L, obj);
                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.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          obj  = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTexture.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Ejemplo n.º 2
0
    static int QPYX__CreateUnityEngine_RenderTexture_YXQP(IntPtr L_YXQP)
    {
        try
        {
            int QPYX_count_YXQP = LuaDLL.lua_gettop(L_YXQP);
            if (QPYX_count_YXQP == 1 && TypeChecker.CheckTypes <UnityEngine.RenderTextureDescriptor>(L_YXQP, 1))
            {
                UnityEngine.RenderTextureDescriptor QPYX_arg0_YXQP = StackTraits <UnityEngine.RenderTextureDescriptor> .To(L_YXQP, 1);

                UnityEngine.RenderTexture QPYX_obj_YXQP = new UnityEngine.RenderTexture(QPYX_arg0_YXQP);
                ToLua.Push(L_YXQP, QPYX_obj_YXQP);
                return(1);
            }
            else if (QPYX_count_YXQP == 1 && TypeChecker.CheckTypes <UnityEngine.RenderTexture>(L_YXQP, 1))
            {
                UnityEngine.RenderTexture QPYX_arg0_YXQP = (UnityEngine.RenderTexture)ToLua.ToObject(L_YXQP, 1);
                UnityEngine.RenderTexture QPYX_obj_YXQP  = new UnityEngine.RenderTexture(QPYX_arg0_YXQP);
                ToLua.Push(L_YXQP, QPYX_obj_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_obj_YXQP = new UnityEngine.RenderTexture(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
                ToLua.Push(L_YXQP, QPYX_obj_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_obj_YXQP  = new UnityEngine.RenderTexture(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP);
                ToLua.Push(L_YXQP, QPYX_obj_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_obj_YXQP  = new UnityEngine.RenderTexture(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP, QPYX_arg3_YXQP, QPYX_arg4_YXQP);
                ToLua.Push(L_YXQP, QPYX_obj_YXQP);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L_YXQP, "invalid arguments to ctor method: UnityEngine.RenderTexture.New"));
            }
        }
        catch (Exception e_YXQP)                {
            return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
        }
    }
 static public int constructor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.RenderTextureDescriptor o;
         if (argc == 3)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             o = new UnityEngine.RenderTextureDescriptor(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 4)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 4, out a3);
             o = new UnityEngine.RenderTextureDescriptor(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 5)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             checkEnum(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             o = new UnityEngine.RenderTextureDescriptor(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 0)
         {
             o = new UnityEngine.RenderTextureDescriptor();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 4
0
 static public int ctor_s(IntPtr l)
 {
     try {
         UnityEngine.RenderTextureDescriptor o;
         o = new UnityEngine.RenderTextureDescriptor();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
0
    static int QPYX_get_descriptor_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.RenderTextureDescriptor QPYX_ret_YXQP = QPYX_obj_YXQP.descriptor;
            ToLua.PushValue(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 descriptor on a nil value"));
        }
    }
Ejemplo n.º 6
0
    static int QPYX_set_descriptor_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.RenderTextureDescriptor QPYX_arg0_YXQP = StackTraits <UnityEngine.RenderTextureDescriptor> .Check(L_YXQP, 2);

            QPYX_obj_YXQP.descriptor = 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 descriptor on a nil value"));
        }
    }
Ejemplo n.º 7
0
    static int GetTemporary0(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            UnityEngine.RenderTextureDescriptor arg0 = StackTraits <UnityEngine.RenderTextureDescriptor> .To(L, 1);

            var o = UnityEngine.RenderTexture.GetTemporary(arg0);
            ToLua.Push(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Ejemplo n.º 8
0
    static int set_descriptor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.RenderTexture           obj  = (UnityEngine.RenderTexture)o;
            UnityEngine.RenderTextureDescriptor arg0 = (UnityEngine.RenderTextureDescriptor)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderTextureDescriptor));
            obj.descriptor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index descriptor on a nil value" : e.Message));
        }
    }
Ejemplo n.º 9
0
    static int get_descriptor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.RenderTexture           obj = (UnityEngine.RenderTexture)o;
            UnityEngine.RenderTextureDescriptor ret = obj.descriptor;
            ToLua.PushValue(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value"));
        }
    }
Ejemplo n.º 10
0
 static public int ctor__Int32__Int32_s(IntPtr l)
 {
     try {
         UnityEngine.RenderTextureDescriptor o;
         System.Int32 a1;
         checkType(l, 1, out a1);
         System.Int32 a2;
         checkType(l, 2, out a2);
         o = new UnityEngine.RenderTextureDescriptor(a1, a2);
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 11
0
    static int set_descriptor(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.RenderTexture           obj  = (UnityEngine.RenderTexture)o;
            UnityEngine.RenderTextureDescriptor arg0 = StackTraits <UnityEngine.RenderTextureDescriptor> .Check(L, 2);

            obj.descriptor = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value"));
        }
    }
 /// <summary>
 /// Write the specified value using the writer.
 /// </summary>
 /// <param name="value">Value.</param>
 /// <param name="writer">Writer.</param>
 public override void Write(object value, ISaveGameWriter writer)
 {
     UnityEngine.RenderTextureDescriptor renderTextureDescriptor = (UnityEngine.RenderTextureDescriptor)value;
     writer.WriteProperty("width", renderTextureDescriptor.width);
     writer.WriteProperty("height", renderTextureDescriptor.height);
     writer.WriteProperty("msaaSamples", renderTextureDescriptor.msaaSamples);
     writer.WriteProperty("volumeDepth", renderTextureDescriptor.volumeDepth);
     writer.WriteProperty("colorFormat", renderTextureDescriptor.colorFormat);
     writer.WriteProperty("depthBufferBits", renderTextureDescriptor.depthBufferBits);
     writer.WriteProperty("dimension", renderTextureDescriptor.dimension);
     writer.WriteProperty("shadowSamplingMode", renderTextureDescriptor.shadowSamplingMode);
     writer.WriteProperty("vrUsage", renderTextureDescriptor.vrUsage);
     writer.WriteProperty("memoryless", renderTextureDescriptor.memoryless);
     writer.WriteProperty("sRGB", renderTextureDescriptor.sRGB);
     writer.WriteProperty("useMipMap", renderTextureDescriptor.useMipMap);
     writer.WriteProperty("autoGenerateMips", renderTextureDescriptor.autoGenerateMips);
     writer.WriteProperty("enableRandomWrite", renderTextureDescriptor.enableRandomWrite);
 }
	static int set_descriptor(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.RenderTexture.descriptor");
#endif
		object o = null;

		try
		{
			o = ToLua.ToObject(L, 1);
			UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
			UnityEngine.RenderTextureDescriptor arg0 = StackTraits<UnityEngine.RenderTextureDescriptor>.Check(L, 2);
			obj.descriptor = arg0;
			return 0;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value");
		}
	}
	static int get_descriptor(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.RenderTexture.descriptor");
#endif
		object o = null;

		try
		{
			o = ToLua.ToObject(L, 1);
			UnityEngine.RenderTexture obj = (UnityEngine.RenderTexture)o;
			UnityEngine.RenderTextureDescriptor ret = obj.descriptor;
			ToLua.PushValue(L, ret);
			return 1;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e, o, "attempt to index descriptor on a nil value");
		}
	}
Ejemplo n.º 15
0
    protected override void AddCommands(CommandBuffer commandBuffer)
    {
        if (this.renderTexture == null ||
            this.renderTexture.width != this.size.x ||
            this.renderTexture.height != this.size.y)
        {
            this.renderTexture?.Release();
            UnityEngine.RenderTextureDescriptor rtd = new UnityEngine.RenderTextureDescriptor(this.size.x, this.size.y, UnityEngine.RenderTextureFormat.ARGB32);
            rtd.enableRandomWrite   = true;
            rtd.useMipMap           = false;
            this.renderTexture      = new UnityEngine.RenderTexture(rtd);
            this.renderTexture.name = this.RenderTextureExportName;
            this.renderTexture.Create();
        }

        base.AddCommands(commandBuffer);

        commandBuffer.SetGlobalTexture(this.RenderTextureExportName, this.renderTexture);
        if (this.computeShader)
        {
            commandBuffer.DispatchCompute(this.computeShader, 0, this.DispatchSizeX, this.DispatchSizeY, 1);
        }
    }
Ejemplo n.º 16
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));
        }
    }
Ejemplo n.º 17
0
 public RenderTexture(RenderTextureDescriptor desc)
 {
     RenderTexture.ValidateRenderTextureDesc(desc);
     RenderTexture.Internal_Create(this);
     this.SetRenderTextureDescriptor(desc);
 }
Ejemplo n.º 18
0
    static int _CreateUnityEngine_RenderTexture(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes <UnityEngine.RenderTextureDescriptor>(L, 1))
            {
                UnityEngine.RenderTextureDescriptor arg0 = StackTraits <UnityEngine.RenderTextureDescriptor> .To(L, 1);

                UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 1 && TypeChecker.CheckTypes <UnityEngine.RenderTexture>(L, 1))
            {
                UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 1);
                UnityEngine.RenderTexture obj  = new UnityEngine.RenderTexture(arg0);
                ToLua.Push(L, obj);
                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 obj = new UnityEngine.RenderTexture(arg0, arg1, arg2);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <UnityEngine.Experimental.Rendering.DefaultFormat>(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.DefaultFormat arg3 = (UnityEngine.Experimental.Rendering.DefaultFormat)ToLua.ToObject(L, 4);
                UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
                ToLua.Push(L, obj);
                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 obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
                ToLua.Push(L, obj);
                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       obj  = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3);
                ToLua.Push(L, obj);
                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 obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, obj);
                return(1);
            }
            else if (count == 5 && TypeChecker.CheckTypes <UnityEngine.RenderTextureFormat, 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);
                int arg4 = (int)LuaDLL.lua_tonumber(L, 5);
                UnityEngine.RenderTexture obj = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, obj);
                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          obj  = new UnityEngine.RenderTexture(arg0, arg1, arg2, arg3, arg4);
                ToLua.Push(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.RenderTexture.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Ejemplo n.º 19
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));
        }
    }
Ejemplo n.º 20
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));
        }
    }
Ejemplo n.º 21
0
 private static extern void INTERNAL_CALL_GetDescriptor(RenderTexture self, out RenderTextureDescriptor value);
Ejemplo n.º 22
0
 extern private void SetRenderTextureDescriptor(RenderTextureDescriptor desc);
 static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         int argc = LuaDLL.lua_gettop(l);
         UnityEngine.RenderTextureDescriptor o;
         if (argc == 3)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             o = new UnityEngine.RenderTextureDescriptor(a1, a2);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 4)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             a3 = (UnityEngine.RenderTextureFormat)LuaDLL.luaL_checkinteger(l, 4);
             o  = new UnityEngine.RenderTextureDescriptor(a1, a2, a3);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 5)
         {
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             UnityEngine.RenderTextureFormat a3;
             a3 = (UnityEngine.RenderTextureFormat)LuaDLL.luaL_checkinteger(l, 4);
             System.Int32 a4;
             checkType(l, 5, out a4);
             o = new UnityEngine.RenderTextureDescriptor(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, o);
             return(2);
         }
         else if (argc == 0)
         {
             o = new UnityEngine.RenderTextureDescriptor();
             pushValue(l, true);
             pushObject(l, o);
             return(2);
         }
         return(error(l, "New object failed."));
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Ejemplo n.º 24
0
 private static extern RenderTexture INTERNAL_CALL_GetTemporary_Internal(ref RenderTextureDescriptor desc);
Ejemplo n.º 25
0
 private static RenderTexture GetTemporary_Internal(RenderTextureDescriptor desc)
 {
     return(RenderTexture.INTERNAL_CALL_GetTemporary_Internal(ref desc));
 }
Ejemplo n.º 26
0
 extern private static RenderTexture GetTemporary_Internal(RenderTextureDescriptor desc);
Ejemplo n.º 27
0
 private void SetRenderTextureDescriptor(RenderTextureDescriptor desc)
 {
     RenderTexture.INTERNAL_CALL_SetRenderTextureDescriptor(this, ref desc);
 }
Ejemplo n.º 28
0
 private static extern void INTERNAL_CALL_SetRenderTextureDescriptor(RenderTexture self, ref RenderTextureDescriptor desc);
Ejemplo n.º 29
0
 public static RenderTexture GetTemporary(RenderTextureDescriptor desc)
 {
     RenderTexture.ValidateRenderTextureDesc(desc);
     desc.createdFromScript = true;
     return(RenderTexture.GetTemporary_Internal(desc));
 }
        /// <summary>
        /// Read the data using the reader.
        /// </summary>
        /// <param name="reader">Reader.</param>
        public override object Read(ISaveGameReader reader)
        {
            UnityEngine.RenderTextureDescriptor renderTextureDescriptor = new UnityEngine.RenderTextureDescriptor();
            foreach (string property in reader.Properties)
            {
                switch (property)
                {
                case "width":
                    renderTextureDescriptor.width = reader.ReadProperty <System.Int32>();
                    break;

                case "height":
                    renderTextureDescriptor.height = reader.ReadProperty <System.Int32>();
                    break;

                case "msaaSamples":
                    renderTextureDescriptor.msaaSamples = reader.ReadProperty <System.Int32>();
                    break;

                case "volumeDepth":
                    renderTextureDescriptor.volumeDepth = reader.ReadProperty <System.Int32>();
                    break;

                case "colorFormat":
                    renderTextureDescriptor.colorFormat = reader.ReadProperty <UnityEngine.RenderTextureFormat>();
                    break;

                case "depthBufferBits":
                    renderTextureDescriptor.depthBufferBits = reader.ReadProperty <System.Int32>();
                    break;

                case "dimension":
                    renderTextureDescriptor.dimension = reader.ReadProperty <UnityEngine.Rendering.TextureDimension>();
                    break;

                case "shadowSamplingMode":
                    renderTextureDescriptor.shadowSamplingMode = reader.ReadProperty <UnityEngine.Rendering.ShadowSamplingMode>();
                    break;

                case "vrUsage":
                    renderTextureDescriptor.vrUsage = reader.ReadProperty <UnityEngine.VRTextureUsage>();
                    break;

                case "memoryless":
                    renderTextureDescriptor.memoryless = reader.ReadProperty <UnityEngine.RenderTextureMemoryless>();
                    break;

                case "sRGB":
                    renderTextureDescriptor.sRGB = reader.ReadProperty <System.Boolean>();
                    break;

                case "useMipMap":
                    renderTextureDescriptor.useMipMap = reader.ReadProperty <System.Boolean>();
                    break;

                case "autoGenerateMips":
                    renderTextureDescriptor.autoGenerateMips = reader.ReadProperty <System.Boolean>();
                    break;

                case "enableRandomWrite":
                    renderTextureDescriptor.enableRandomWrite = reader.ReadProperty <System.Boolean>();
                    break;
                }
            }
            return(renderTextureDescriptor);
        }