public void RemoveCommandBuffer(CameraEvent evt, CommandBuffer buffer) { if (buffer == null) { throw new NullReferenceException("buffer is null"); } RemoveCommandBufferImpl(evt, buffer); }
public void AddCommandBufferAsync(CameraEvent evt, CommandBuffer buffer, ComputeQueueType queueType) { 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); }
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 AddCommandBuffer(CameraEvent evt, CommandBuffer buffer) { if (!Enum.IsDefined(typeof(CameraEvent), evt)) { throw new ArgumentException(string.Format(@"Invalid CameraEvent value ""{0}"".", (int)evt), "evt"); } if (buffer == null) { throw new NullReferenceException("buffer is null"); } AddCommandBufferImpl(evt, buffer); }
private void AddCommandBuffer(UnityEngine.Rendering.CameraEvent cameraEvent) { this.usedCameraEvent = cameraEvent; this.cameraEventHandler.CameraComponent.AddCommandBuffer(this.usedCameraEvent, this.commandBuffer); #if UNITY_EDITOR if (this.drawInScene) { int sceneViewCount = UnityEditor.SceneView.sceneViews.Count; for (int i = 0; i < sceneViewCount; ++i) { UnityEditor.SceneView sceneView = UnityEditor.SceneView.sceneViews[i] as UnityEditor.SceneView; sceneView.camera.AddCommandBuffer(this.usedCameraEvent, this.commandBuffer); } } #endif }
[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);
extern public UnityEngine.Rendering.CommandBuffer[] GetCommandBuffers(UnityEngine.Rendering.CameraEvent evt);