@@ -56,7 +56,7 @@ public struct IVRSystem
56
56
internal _GetDXGIOutputInfo GetDXGIOutputInfo ;
57
57
58
58
[ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
59
- internal delegate void _GetOutputDevice ( ref ulong pnDevice , ETextureType textureType ) ;
59
+ internal delegate void _GetOutputDevice ( ref ulong pnDevice , ETextureType textureType , IntPtr pInstance ) ;
60
60
[ MarshalAs ( UnmanagedType . FunctionPtr ) ]
61
61
internal _GetOutputDevice GetOutputDevice ;
62
62
@@ -845,6 +845,16 @@ public struct IVRCompositor
845
845
[ MarshalAs ( UnmanagedType . FunctionPtr ) ]
846
846
internal _GetVulkanDeviceExtensionsRequired GetVulkanDeviceExtensionsRequired ;
847
847
848
+ [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
849
+ internal delegate void _SetExplicitTimingMode ( bool bExplicitTimingMode ) ;
850
+ [ MarshalAs ( UnmanagedType . FunctionPtr ) ]
851
+ internal _SetExplicitTimingMode SetExplicitTimingMode ;
852
+
853
+ [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
854
+ internal delegate EVRCompositorError _SubmitExplicitTimingData ( ) ;
855
+ [ MarshalAs ( UnmanagedType . FunctionPtr ) ]
856
+ internal _SubmitExplicitTimingData SubmitExplicitTimingData ;
857
+
848
858
}
849
859
850
860
[ StructLayout ( LayoutKind . Sequential ) ]
@@ -1250,6 +1260,11 @@ public struct IVROverlay
1250
1260
[ MarshalAs ( UnmanagedType . FunctionPtr ) ]
1251
1261
internal _ShowMessageOverlay ShowMessageOverlay ;
1252
1262
1263
+ [ UnmanagedFunctionPointer ( CallingConvention . StdCall ) ]
1264
+ internal delegate void _CloseMessageOverlay ( ) ;
1265
+ [ MarshalAs ( UnmanagedType . FunctionPtr ) ]
1266
+ internal _CloseMessageOverlay CloseMessageOverlay ;
1267
+
1253
1268
}
1254
1269
1255
1270
[ StructLayout ( LayoutKind . Sequential ) ]
@@ -1551,10 +1566,10 @@ public void GetDXGIOutputInfo(ref int pnAdapterIndex)
1551
1566
pnAdapterIndex = 0 ;
1552
1567
FnTable . GetDXGIOutputInfo ( ref pnAdapterIndex ) ;
1553
1568
}
1554
- public void GetOutputDevice ( ref ulong pnDevice , ETextureType textureType )
1569
+ public void GetOutputDevice ( ref ulong pnDevice , ETextureType textureType , IntPtr pInstance )
1555
1570
{
1556
1571
pnDevice = 0 ;
1557
- FnTable . GetOutputDevice ( ref pnDevice , textureType ) ;
1572
+ FnTable . GetOutputDevice ( ref pnDevice , textureType , pInstance ) ;
1558
1573
}
1559
1574
public bool IsDisplayOnDesktop ( )
1560
1575
{
@@ -1667,6 +1682,7 @@ struct PollNextEventUnion
1667
1682
}
1668
1683
public bool PollNextEvent ( ref VREvent_t pEvent , uint uncbVREvent )
1669
1684
{
1685
+ #if ! UNITY_METRO
1670
1686
if ( ( System . Environment . OSVersion . Platform == System . PlatformID . MacOSX ) ||
1671
1687
( System . Environment . OSVersion . Platform == System . PlatformID . Unix ) )
1672
1688
{
@@ -1679,6 +1695,7 @@ public bool PollNextEvent(ref VREvent_t pEvent,uint uncbVREvent)
1679
1695
event_packed . Unpack ( ref pEvent ) ;
1680
1696
return packed_result ;
1681
1697
}
1698
+ #endif
1682
1699
bool result = FnTable . PollNextEvent ( ref pEvent , uncbVREvent ) ;
1683
1700
return result ;
1684
1701
}
@@ -1711,6 +1728,7 @@ struct GetControllerStateUnion
1711
1728
}
1712
1729
public bool GetControllerState ( uint unControllerDeviceIndex , ref VRControllerState_t pControllerState , uint unControllerStateSize )
1713
1730
{
1731
+ #if ! UNITY_METRO
1714
1732
if ( ( System . Environment . OSVersion . Platform == System . PlatformID . MacOSX ) ||
1715
1733
( System . Environment . OSVersion . Platform == System . PlatformID . Unix ) )
1716
1734
{
@@ -1723,6 +1741,7 @@ public bool GetControllerState(uint unControllerDeviceIndex,ref VRControllerStat
1723
1741
state_packed . Unpack ( ref pControllerState ) ;
1724
1742
return packed_result ;
1725
1743
}
1744
+ #endif
1726
1745
bool result = FnTable . GetControllerState ( unControllerDeviceIndex , ref pControllerState , unControllerStateSize ) ;
1727
1746
return result ;
1728
1747
}
@@ -1740,6 +1759,7 @@ struct GetControllerStateWithPoseUnion
1740
1759
}
1741
1760
public bool GetControllerStateWithPose ( ETrackingUniverseOrigin eOrigin , uint unControllerDeviceIndex , ref VRControllerState_t pControllerState , uint unControllerStateSize , ref TrackedDevicePose_t pTrackedDevicePose )
1742
1761
{
1762
+ #if ! UNITY_METRO
1743
1763
if ( ( System . Environment . OSVersion . Platform == System . PlatformID . MacOSX ) ||
1744
1764
( System . Environment . OSVersion . Platform == System . PlatformID . Unix ) )
1745
1765
{
@@ -1752,6 +1772,7 @@ public bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin,uint unCo
1752
1772
state_packed . Unpack ( ref pControllerState ) ;
1753
1773
return packed_result ;
1754
1774
}
1775
+ #endif
1755
1776
bool result = FnTable . GetControllerStateWithPose ( eOrigin , unControllerDeviceIndex , ref pControllerState , unControllerStateSize , ref pTrackedDevicePose ) ;
1756
1777
return result ;
1757
1778
}
@@ -2439,6 +2460,15 @@ public uint GetVulkanDeviceExtensionsRequired(IntPtr pPhysicalDevice,System.Text
2439
2460
uint result = FnTable . GetVulkanDeviceExtensionsRequired ( pPhysicalDevice , pchValue , unBufferSize ) ;
2440
2461
return result ;
2441
2462
}
2463
+ public void SetExplicitTimingMode ( bool bExplicitTimingMode )
2464
+ {
2465
+ FnTable . SetExplicitTimingMode ( bExplicitTimingMode ) ;
2466
+ }
2467
+ public EVRCompositorError SubmitExplicitTimingData ( )
2468
+ {
2469
+ EVRCompositorError result = FnTable . SubmitExplicitTimingData ( ) ;
2470
+ return result ;
2471
+ }
2442
2472
}
2443
2473
2444
2474
@@ -2705,6 +2735,7 @@ struct PollNextOverlayEventUnion
2705
2735
}
2706
2736
public bool PollNextOverlayEvent ( ulong ulOverlayHandle , ref VREvent_t pEvent , uint uncbVREvent )
2707
2737
{
2738
+ #if ! UNITY_METRO
2708
2739
if ( ( System . Environment . OSVersion . Platform == System . PlatformID . MacOSX ) ||
2709
2740
( System . Environment . OSVersion . Platform == System . PlatformID . Unix ) )
2710
2741
{
@@ -2717,6 +2748,7 @@ public bool PollNextOverlayEvent(ulong ulOverlayHandle,ref VREvent_t pEvent,uint
2717
2748
event_packed . Unpack ( ref pEvent ) ;
2718
2749
return packed_result ;
2719
2750
}
2751
+ #endif
2720
2752
bool result = FnTable . PollNextOverlayEvent ( ulOverlayHandle , ref pEvent , uncbVREvent ) ;
2721
2753
return result ;
2722
2754
}
@@ -2895,6 +2927,10 @@ public VRMessageOverlayResponse ShowMessageOverlay(string pchText,string pchCapt
2895
2927
VRMessageOverlayResponse result = FnTable . ShowMessageOverlay ( pchText , pchCaption , pchButton0Text , pchButton1Text , pchButton2Text , pchButton3Text ) ;
2896
2928
return result ;
2897
2929
}
2930
+ public void CloseMessageOverlay ( )
2931
+ {
2932
+ FnTable . CloseMessageOverlay ( ) ;
2933
+ }
2898
2934
}
2899
2935
2900
2936
@@ -2981,6 +3017,7 @@ struct GetComponentStateUnion
2981
3017
}
2982
3018
public bool GetComponentState ( string pchRenderModelName , string pchComponentName , ref VRControllerState_t pControllerState , ref RenderModel_ControllerMode_State_t pState , ref RenderModel_ComponentState_t pComponentState )
2983
3019
{
3020
+ #if ! UNITY_METRO
2984
3021
if ( ( System . Environment . OSVersion . Platform == System . PlatformID . MacOSX ) ||
2985
3022
( System . Environment . OSVersion . Platform == System . PlatformID . Unix ) )
2986
3023
{
@@ -2993,6 +3030,7 @@ public bool GetComponentState(string pchRenderModelName,string pchComponentName,
2993
3030
state_packed . Unpack ( ref pControllerState ) ;
2994
3031
return packed_result ;
2995
3032
}
3033
+ #endif
2996
3034
bool result = FnTable . GetComponentState ( pchRenderModelName , pchComponentName , ref pControllerState , ref pState , ref pComponentState ) ;
2997
3035
return result ;
2998
3036
}
@@ -3344,6 +3382,7 @@ public enum ETrackedDeviceProperty
3344
3382
Prop_DriverDirectModeSendsVsyncEvents_Bool = 2043 ,
3345
3383
Prop_DisplayDebugMode_Bool = 2044 ,
3346
3384
Prop_GraphicsAdapterLuid_Uint64 = 2045 ,
3385
+ Prop_DriverProvidedChaperonePath_String = 2048 ,
3347
3386
Prop_AttachedDeviceId_String = 3000 ,
3348
3387
Prop_SupportedButtons_Uint64 = 3001 ,
3349
3388
Prop_Axis0Type_Int32 = 3002 ,
@@ -3401,6 +3440,7 @@ public enum EVRSubmitFlags
3401
3440
Submit_LensDistortionAlreadyApplied = 1 ,
3402
3441
Submit_GlRenderBuffer = 2 ,
3403
3442
Submit_Reserved = 4 ,
3443
+ Submit_TextureWithPose = 8 ,
3404
3444
}
3405
3445
public enum EVRState
3406
3446
{
@@ -3429,6 +3469,8 @@ public enum EVREventType
3429
3469
VREvent_WatchdogWakeUpRequested = 109 ,
3430
3470
VREvent_LensDistortionChanged = 110 ,
3431
3471
VREvent_PropertyChanged = 111 ,
3472
+ VREvent_WirelessDisconnect = 112 ,
3473
+ VREvent_WirelessReconnect = 113 ,
3432
3474
VREvent_ButtonPress = 200 ,
3433
3475
VREvent_ButtonUnpress = 201 ,
3434
3476
VREvent_ButtonTouch = 202 ,
@@ -3526,6 +3568,7 @@ public enum EVREventType
3526
3568
VREvent_PerformanceTest_DisableCapture = 1601 ,
3527
3569
VREvent_PerformanceTest_FidelityLevel = 1602 ,
3528
3570
VREvent_MessageOverlay_Closed = 1650 ,
3571
+ VREvent_MessageOverlayCloseRequested = 1651 ,
3529
3572
VREvent_VendorSpecific_Reserved_Start = 10000 ,
3530
3573
VREvent_VendorSpecific_Reserved_End = 19999 ,
3531
3574
}
@@ -3683,6 +3726,9 @@ public enum EVRInitError
3683
3726
Init_VRDashboardStartupFailed = 134 ,
3684
3727
Init_VRHomeNotFound = 135 ,
3685
3728
Init_VRHomeStartupFailed = 136 ,
3729
+ Init_RebootingBusy = 137 ,
3730
+ Init_FirmwareUpdateBusy = 138 ,
3731
+ Init_FirmwareRecoveryBusy = 139 ,
3686
3732
Driver_Failed = 200 ,
3687
3733
Driver_Unknown = 201 ,
3688
3734
Driver_HmdUnknown = 202 ,
@@ -3785,6 +3831,7 @@ public enum EVRApplicationError
3785
3831
OldApplicationQuitting = 112 ,
3786
3832
TransitionAborted = 113 ,
3787
3833
IsTemplate = 114 ,
3834
+ SteamVRIsExiting = 115 ,
3788
3835
BufferTooSmall = 200 ,
3789
3836
PropertyNotSet = 201 ,
3790
3837
UnknownProperty = 202 ,
@@ -3806,6 +3853,7 @@ public enum EVRApplicationProperty
3806
3853
IsTemplate_Bool = 61 ,
3807
3854
IsInstanced_Bool = 62 ,
3808
3855
IsInternal_Bool = 63 ,
3856
+ WantsCompositorPauseInStandby_Bool = 64 ,
3809
3857
LastLaunchTime_Uint64 = 70 ,
3810
3858
}
3811
3859
public enum EVRApplicationTransitionState
@@ -3850,6 +3898,7 @@ public enum EVRCompositorError
3850
3898
SharedTexturesNotSupported = 106 ,
3851
3899
IndexOutOfRange = 107 ,
3852
3900
AlreadySubmitted = 108 ,
3901
+ InvalidBounds = 109 ,
3853
3902
}
3854
3903
public enum VROverlayInputMethod
3855
3904
{
@@ -4120,6 +4169,10 @@ public enum EVRScreenshotError
4120
4169
public float uMax ;
4121
4170
public float vMax ;
4122
4171
}
4172
+ [ StructLayout ( LayoutKind . Sequential ) ] public struct VRTextureWithPose_t
4173
+ {
4174
+ public HmdMatrix34_t mDeviceToAbsoluteTracking ;
4175
+ }
4123
4176
[ StructLayout ( LayoutKind . Sequential ) ] public struct VRVulkanTextureData_t
4124
4177
{
4125
4178
public ulong m_nImage ;
@@ -4601,7 +4654,7 @@ public static uint GetInitToken()
4601
4654
public const uint k_unControllerStateAxisCount = 5 ;
4602
4655
public const ulong k_ulOverlayHandleInvalid = 0 ;
4603
4656
public const uint k_unScreenshotHandleInvalid = 0 ;
4604
- public const string IVRSystem_Version = "IVRSystem_016 " ;
4657
+ public const string IVRSystem_Version = "IVRSystem_017 " ;
4605
4658
public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001" ;
4606
4659
public const string IVRTrackedCamera_Version = "IVRTrackedCamera_003" ;
4607
4660
public const uint k_unMaxApplicationKeyLength = 128 ;
@@ -4610,7 +4663,7 @@ public static uint GetInitToken()
4610
4663
public const string IVRApplications_Version = "IVRApplications_006" ;
4611
4664
public const string IVRChaperone_Version = "IVRChaperone_003" ;
4612
4665
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_005" ;
4613
- public const string IVRCompositor_Version = "IVRCompositor_020 " ;
4666
+ public const string IVRCompositor_Version = "IVRCompositor_021 " ;
4614
4667
public const uint k_unVROverlayMaxKeyLength = 128 ;
4615
4668
public const uint k_unVROverlayMaxNameLength = 128 ;
4616
4669
public const uint k_unMaxOverlayCount = 64 ;
@@ -4669,6 +4722,7 @@ public static uint GetInitToken()
4669
4722
public const string k_pch_SteamVR_RetailDemo_Bool = "retailDemo" ;
4670
4723
public const string k_pch_SteamVR_IpdOffset_Float = "ipdOffset" ;
4671
4724
public const string k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering" ;
4725
+ public const string k_pch_SteamVR_EnableLinuxVulkanAsync_Bool = "enableLinuxVulkanAsync" ;
4672
4726
public const string k_pch_Lighthouse_Section = "driver_lighthouse" ;
4673
4727
public const string k_pch_Lighthouse_DisableIMU_Bool = "disableimu" ;
4674
4728
public const string k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation" ;
@@ -4742,6 +4796,7 @@ public static uint GetInitToken()
4742
4796
public const string k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout" ;
4743
4797
public const string k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout" ;
4744
4798
public const string k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress" ;
4799
+ public const string k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby" ;
4745
4800
public const string k_pch_Dashboard_Section = "dashboard" ;
4746
4801
public const string k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard" ;
4747
4802
public const string k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode" ;
0 commit comments