예제 #1
0
 public void AddCommandBufferAsync(CameraEvent evt, CommandBuffer buffer, ComputeQueueType queueType)
 {
     if (!Rendering.CameraEventUtils.IsValid(evt))
     {
         throw new ArgumentException(string.Format(@"Invalid CameraEvent value ""{0}"".", (int)evt), "evt");
     }
     if (buffer == null)
     {
         throw new NullReferenceException("buffer is null");
     }
     AddCommandBufferAsyncImpl(evt, buffer, queueType);
 }
예제 #2
0
 public void RemoveCommandBuffer(CameraEvent evt, CommandBuffer buffer)
 {
     if (!Rendering.CameraEventUtils.IsValid(evt))
     {
         throw new ArgumentException(string.Format(@"Invalid CameraEvent value ""{0}"".", (int)evt), "evt");
     }
     if (buffer == null)
     {
         throw new NullReferenceException("buffer is null");
     }
     RemoveCommandBufferImpl(evt, buffer);
 }
예제 #3
0
    static bool Camera_RemoveCommandBuffers__CameraEvent(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)JSApi.getEnum((int)JSApi.GetType.Arg);
            ((UnityEngine.Camera)vc.csObj).RemoveCommandBuffers(arg0);
        }

        return(true);
    }
예제 #4
0
    static bool Camera_RemoveCommandBuffer__CameraEvent__CommandBuffer(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 2)
        {
            UnityEngine.Rendering.CameraEvent   arg0 = (UnityEngine.Rendering.CameraEvent)JSApi.getEnum((int)JSApi.GetType.Arg);
            UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)JSMgr.datax.getObject((int)JSApi.GetType.Arg);
            ((UnityEngine.Camera)vc.csObj).RemoveCommandBuffer(arg0, arg1);
        }

        return(true);
    }
예제 #5
0
    static bool Camera_GetCommandBuffers__CameraEvent(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)JSApi.getEnum((int)JSApi.GetType.Arg);
            var arrRet = ((UnityEngine.Camera)vc.csObj).GetCommandBuffers(arg0);
            for (int i = 0; arrRet != null && i < arrRet.Length; i++)
            {
                JSMgr.datax.setObject((int)JSApi.SetType.SaveAndTempTrace, arrRet[i]);
                JSApi.moveSaveID2Arr(i);
            }
            JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true);
        }

        return(true);
    }
예제 #6
0
 [NativeName("RemoveCommandBuffer")]   extern private void RemoveCommandBufferImpl(CameraEvent evt, [NotNull] CommandBuffer buffer);
예제 #7
0
 [NativeName("AddCommandBufferAsync")] extern private void AddCommandBufferAsyncImpl(CameraEvent evt, [NotNull] CommandBuffer buffer, ComputeQueueType queueType);
예제 #8
0
 extern public void RemoveCommandBuffers(CameraEvent evt);
예제 #9
0
 public CommandBufferDesc(UnityEngine.Rendering.CameraEvent cameraEvent, int orderId, CommandBufferDesc.FillCommandBuffer fill)
 {
     this.CameraEvent  = cameraEvent;
     this.OrderId      = orderId;
     this.FillDelegate = new Action <CommandBuffer>(fill.Invoke);
 }