Files
VR-WuKong/Packages/PICO Unity Integration SDK-3.3.2-20251111/Runtime/Scripts/SecureMR/Component/Pipeline/PXR_SecureMRPipelineExecuteAfter.cs
2025-11-13 17:40:28 +08:00

32 lines
970 B
C#

#if !PICO_OPENXR_SDK
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Unity.XR.PXR.SecureMR
{
public class PXR_SecureMrPipelineExecuteAfter : PXR_SecureMRPipelineExecute
{
public PXR_SecureMRPipelineExecute afterPipeline;
public override void Execute()
{
if (TensorMappings != null && TensorMappings.Length > 0)
{
TensorMapping mappings = new TensorMapping();
foreach (var tensorPair in TensorMappings)
{
mappings.Set(tensorPair.localTensorReference.tensor, tensorPair.globalTensor.tensor);
}
Pipeline.pipeline.ExecuteAfter(afterPipeline.Pipeline.pipeline.pipelineHandle, mappings);
}
else
{
Pipeline.pipeline.ExecuteAfter(afterPipeline.Pipeline.pipeline.pipelineHandle);
}
}
}
}
#endif