Esempio n. 1
0
        /// <summary>
        /// Completes the DSPCommandBlock and sends it for asynchronous atomic handling by the DSPGraph. Once this is called, the DSPCommandBlock is disposed and cannot be used again.
        /// </summary>
        public void Complete()
        {
            if (!m_Commands.Valid)
            {
                return;
            }

            QueueCommand(new CompleteCommand
            {
                m_Type   = DSPCommandType.Complete,
                m_Graph  = m_Graph,
                m_Handle = m_Handle,
            });
            m_Graph.ScheduleCommandBuffer(m_Commands);
            m_Commands.Dispose();
            m_Commands = default;
        }