public CommandBufferConfiguration(Enum c, CameraEvent e, ComputeQueueType q, bool a)
 {
     command      = c;
     camera_event = e;
     queue_type   = q;
     asynchronous = a;
 }
 public HDGPUAsyncTask(string taskName, ComputeQueueType queueType = ComputeQueueType.Background)
 {
     m_StartFence = new Fence();
     m_EndFence   = new Fence();
     m_TaskName   = taskName;
     m_QueueType  = queueType;
     m_TaskStage  = AsyncTaskStage.NotTriggered;
 }
Beispiel #3
0
 public void AddCommandBufferAsync(CameraEvent evt, CommandBuffer buffer, ComputeQueueType queueType)
 {
     if (buffer == null)
     {
         throw new NullReferenceException("buffer is null");
     }
     this.AddCommandBufferAsyncImpl(evt, buffer, queueType);
 }
 public void ExecuteCommandBufferAsync(CommandBuffer commandBuffer, ComputeQueueType queueType)
 {
     if (commandBuffer == null)
     {
         throw new ArgumentNullException("commandBuffer");
     }
     this.CheckValid();
     this.ExecuteCommandBufferAsync_Internal(commandBuffer, queueType);
 }
        public void ExecuteCommandBufferAsync(CommandBuffer commandBuffer, ComputeQueueType queueType)
        {
            if (commandBuffer == null)
            {
                throw new ArgumentNullException(nameof(commandBuffer));
            }

            Validate();
            ExecuteCommandBufferAsync_Internal(commandBuffer, queueType);
        }
        public void ExecuteCommandBufferAsync(CommandBuffer commandBuffer, ComputeQueueType queueType)
        {
            bool flag = commandBuffer == null;

            if (flag)
            {
                throw new ArgumentNullException("commandBuffer");
            }
            this.Validate();
            this.ExecuteCommandBufferAsync_Internal(commandBuffer, queueType);
        }
        public void ExecuteCommandBufferAsync(CommandBuffer commandBuffer, ComputeQueueType queueType)
        {
            if (commandBuffer == null)
            {
                throw new ArgumentNullException(nameof(commandBuffer));
            }
            if (commandBuffer.m_Ptr == IntPtr.Zero)
            {
                throw new ObjectDisposedException(nameof(commandBuffer));
            }

            Validate();
            ExecuteCommandBufferAsync_Internal(commandBuffer, queueType);
        }
Beispiel #8
0
 extern public static void ExecuteCommandBufferAsync([NotNull] CommandBuffer buffer, ComputeQueueType queueType);
 extern private void ExecuteCommandBufferAsync_Internal(CommandBuffer commandBuffer, ComputeQueueType queueType);
Beispiel #10
0
 private extern void AddCommandBufferAsyncImpl(CameraEvent evt, [NotNull] CommandBuffer buffer, ComputeQueueType queueType);
Beispiel #11
0
 private void ExecuteComputeBufferAsync(ComputeQueueType queueType)
 {
     _context.ExecuteCommandBufferAsync(_computeBuffer, queueType);
     _computeBuffer.Clear();
 }
 private void ExecuteCommandBufferAsync_Internal(CommandBuffer commandBuffer, ComputeQueueType queueType)
 {
     ScriptableRenderContext.ExecuteCommandBufferAsync_Internal_Injected(ref this, commandBuffer, queueType);
 }
 private static extern void ExecuteCommandBufferAsync_Internal_Injected(ref ScriptableRenderContext _unity_self, CommandBuffer commandBuffer, ComputeQueueType queueType);
Beispiel #14
0
 private void ExecuteCommandBufferAsync(CommandBuffer cmd, ComputeQueueType queueType)
 {
     _context.ExecuteCommandBufferAsync(cmd, queueType);
     cmd.Clear();
 }
Beispiel #15
0
 public void AddCommandBufferAsync(LightEvent evt, CommandBuffer buffer, ComputeQueueType queueType)
 {
     this.AddCommandBufferAsync(evt, buffer, ShadowMapPass.All, queueType);
 }
Beispiel #16
0
 public extern void AddCommandBufferAsync(LightEvent evt, CommandBuffer buffer, ShadowMapPass shadowPassMask, ComputeQueueType queueType);
 extern public static void ExecuteCommandBufferAsync(UnityEngine.Rendering.CommandBuffer buffer, ComputeQueueType queueType);