Files
VR-WuKong/Packages/PICO Unity Integration SDK-3.3.2-20251111/Runtime/Scripts/SecureMR/Component/PXR_SecureMRProvider.cs

36 lines
872 B
C#
Raw Normal View History

2025-11-13 17:40:28 +08:00
#if !PICO_OPENXR_SDK
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Unity.XR.PXR.SecureMR
{
[DefaultExecutionOrder(-100)]
public class PXR_SecureMRProvider : MonoBehaviour
{
internal Provider provider;
public int vstImageWidth = 1024;
public int vstImageHeight = 1024;
public PXR_SecureMRGlobalTensor[] globalTensors;
public PXR_SecureMRPipeline[] pipelines;
void Awake()
{
provider = new Provider(vstImageWidth, vstImageHeight);
foreach (var globalTensor in globalTensors)
{
globalTensor.Initialize(this.provider);
}
foreach (var pxrSecureMrPipeline in pipelines)
{
pxrSecureMrPipeline.Initialize(this);
}
}
}
}
#endif