Assets/Plugins/Unity.DSPGraph/Runtime/DSPNodeImplementation.cs
/// <summary>
/// Clean up job data after execution
/// </summary>
/// <remarks>Mainly just reading back interpolated parameter data and freeing expired parameter keys</remarks>
/// <param name="graph">The graph to which this node belongs</param>
Clean up job data after execution
Clean up job data after execution
internal void CleanupJobData(DSPGraph graph)
        {
            var parameters = Parameters;
            var jobParameters = JobDataBuffer->NativeJobData.Parameters;
            for (var i = 0; i < parameters.Count; ++i)
            {
                parameters[i] = new Parameter
                {
                    KeyIndex = graph.FreeParameterKeys(jobParameters[i].m_KeyIndex, graph.DSPClock),
                    Value = jobParameters[i].m_Value,
                };
            }
        }
internal void CleanupJobData ( DSPGraph graph ) { var parameters = Parameters ; var jobParameters = JobDataBuffer -> NativeJobData . Parameters ; for ( var i = 0 ; i < parameters . Count ; ++ i ) { parameters [ i ] = new Parameter { KeyIndex = graph . FreeParameterKeys ( jobParameters [ i ] . m_KeyIndex , graph . DSPClock ) , Value = jobParameters [ i ] . m_Value , } ; } }
Clean up job data after execution
Clean up job data after execution
// Read back final interpolated parameter values
graph
DSPGraph
The graph to which this node belongs
The graph to which this node belongs
remarks
Mainly just reading back interpolated parameter data and freeing expired parameter keys
Mainly just reading back interpolated parameter data and freeing expired parameter keys