コード例 #1
0
    static int AddCommandBufferAsync(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4)
            {
                UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
                UnityEngine.Rendering.LightEvent       arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
                UnityEngine.Rendering.CommandBuffer    arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
                UnityEngine.Rendering.ComputeQueueType arg2 = (UnityEngine.Rendering.ComputeQueueType)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ComputeQueueType));
                obj.AddCommandBufferAsync(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5)
            {
                UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
                UnityEngine.Rendering.LightEvent       arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
                UnityEngine.Rendering.CommandBuffer    arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
                UnityEngine.Rendering.ShadowMapPass    arg2 = (UnityEngine.Rendering.ShadowMapPass)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ShadowMapPass));
                UnityEngine.Rendering.ComputeQueueType arg3 = (UnityEngine.Rendering.ComputeQueueType)ToLua.CheckObject(L, 5, typeof(UnityEngine.Rendering.ComputeQueueType));
                obj.AddCommandBufferAsync(arg0, arg1, arg2, arg3);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.AddCommandBufferAsync"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #2
0
 static public int AddCommandBufferAsync__LightEvent__CommandBuffer__ComputeQueueType(IntPtr l)
 {
     try {
         UnityEngine.Light self = (UnityEngine.Light)checkSelf(l);
         UnityEngine.Rendering.LightEvent a1;
         checkEnum(l, 2, out a1);
         UnityEngine.Rendering.CommandBuffer a2;
         checkType(l, 3, out a2);
         UnityEngine.Rendering.ComputeQueueType a3;
         checkEnum(l, 4, out a3);
         self.AddCommandBufferAsync(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static public int AddCommandBufferAsync(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 6)
         {
             UnityEngine.Light self = (UnityEngine.Light)checkSelf(l);
             UnityEngine.Rendering.LightEvent a1;
             checkEnum(l, 3, out a1);
             UnityEngine.Rendering.CommandBuffer a2;
             checkType(l, 4, out a2);
             UnityEngine.Rendering.ShadowMapPass a3;
             checkEnum(l, 5, out a3);
             UnityEngine.Rendering.ComputeQueueType a4;
             checkEnum(l, 6, out a4);
             self.AddCommandBufferAsync(a1, a2, a3, a4);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 5)
         {
             UnityEngine.Light self = (UnityEngine.Light)checkSelf(l);
             UnityEngine.Rendering.LightEvent a1;
             checkEnum(l, 3, out a1);
             UnityEngine.Rendering.CommandBuffer a2;
             checkType(l, 4, out a2);
             UnityEngine.Rendering.ComputeQueueType a3;
             checkEnum(l, 5, out a3);
             self.AddCommandBufferAsync(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }