// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.MixedReality.Toolkit.WindowsMixedReality
{
///
/// A representation of Windows Mixed Reality native data, provided as an IntPtr from Unity's UnityEngine.XR.XRDevice.GetNativePtr().
///
/// See for more info.
[StructLayout(LayoutKind.Sequential)]
public struct HolographicFrameNativeData
{
///
/// The version number of this native data.
///
public uint VersionNumber;
///
/// The number of cameras present in the IHolographicCameraPtr array.
///
public uint MaxNumberOfCameras;
///
/// The current native root ISpatialCoordinateSystem.
///
public IntPtr ISpatialCoordinateSystemPtr;
///
/// The current native IHolographicFrame.
///
public IntPtr IHolographicFramePtr;
///
/// An array of IntPtr (to IHolographicCamera) marshaled as UnmanagedType.ByValArray with a length equal to MaxNumberOfCameras.
///
public IntPtr IHolographicCameraPtr;
}
}