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); }
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); }
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); }
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); }
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); }
[NativeName("RemoveCommandBuffer")] extern private void RemoveCommandBufferImpl(CameraEvent evt, [NotNull] CommandBuffer buffer);
[NativeName("AddCommandBufferAsync")] extern private void AddCommandBufferAsyncImpl(CameraEvent evt, [NotNull] CommandBuffer buffer, ComputeQueueType queueType);
extern public void RemoveCommandBuffers(CameraEvent evt);
public CommandBufferDesc(UnityEngine.Rendering.CameraEvent cameraEvent, int orderId, CommandBufferDesc.FillCommandBuffer fill) { this.CameraEvent = cameraEvent; this.OrderId = orderId; this.FillDelegate = new Action <CommandBuffer>(fill.Invoke); }