@@ -105,6 +105,10 @@ class VRNativeEntrypoints
105
105
internal static extern void VR_IVRSystem_AcknowledgeQuit_Exiting ( IntPtr instancePtr ) ;
106
106
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRSystem_AcknowledgeQuit_UserPrompt" ) ]
107
107
internal static extern void VR_IVRSystem_AcknowledgeQuit_UserPrompt ( IntPtr instancePtr ) ;
108
+ [ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRSystem_PerformanceTestEnableCapture" ) ]
109
+ internal static extern void VR_IVRSystem_PerformanceTestEnableCapture ( IntPtr instancePtr , bool bEnable ) ;
110
+ [ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRSystem_PerformanceTestReportFidelityLevelChange" ) ]
111
+ internal static extern void VR_IVRSystem_PerformanceTestReportFidelityLevelChange ( IntPtr instancePtr , int nFidelityLevel ) ;
108
112
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRExtendedDisplay_GetWindowBounds" ) ]
109
113
internal static extern void VR_IVRExtendedDisplay_GetWindowBounds ( IntPtr instancePtr , ref int pnX , ref int pnY , ref uint pnWidth , ref uint pnHeight ) ;
110
114
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRExtendedDisplay_GetEyeOutputViewport" ) ]
@@ -195,6 +199,10 @@ class VRNativeEntrypoints
195
199
internal static extern void VR_IVRChaperoneSetup_ReloadFromDisk ( IntPtr instancePtr , EChaperoneConfigFile configFile ) ;
196
200
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose" ) ]
197
201
internal static extern bool VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose ( IntPtr instancePtr , ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose ) ;
202
+ [ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRChaperoneSetup_SetWorkingWallTagInfo" ) ]
203
+ internal static extern void VR_IVRChaperoneSetup_SetWorkingWallTagInfo ( IntPtr instancePtr , [ In , Out ] byte [ ] pTagsBuffer , uint unTagCount ) ;
204
+ [ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRChaperoneSetup_GetLiveWallTagInfo" ) ]
205
+ internal static extern bool VR_IVRChaperoneSetup_GetLiveWallTagInfo ( IntPtr instancePtr , [ In , Out ] byte [ ] pTagsBuffer , ref uint punTagCount ) ;
198
206
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRCompositor_SetTrackingSpace" ) ]
199
207
internal static extern void VR_IVRCompositor_SetTrackingSpace ( IntPtr instancePtr , ETrackingUniverseOrigin eOrigin ) ;
200
208
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRCompositor_GetTrackingSpace" ) ]
@@ -435,8 +443,6 @@ class VRNativeEntrypoints
435
443
internal static extern bool VR_IVRTrackedCamera_ReleaseVideoStreamFrame ( IntPtr instancePtr , uint nDeviceIndex , ref CameraVideoStreamFrame_t pFrameImage ) ;
436
444
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRTrackedCamera_SetAutoExposure" ) ]
437
445
internal static extern bool VR_IVRTrackedCamera_SetAutoExposure ( IntPtr instancePtr , uint nDeviceIndex , bool bEnable ) ;
438
- [ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRTrackedCamera_SupportsPauseResume" ) ]
439
- internal static extern bool VR_IVRTrackedCamera_SupportsPauseResume ( IntPtr instancePtr , uint nDeviceIndex ) ;
440
446
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRTrackedCamera_PauseVideoStream" ) ]
441
447
internal static extern bool VR_IVRTrackedCamera_PauseVideoStream ( IntPtr instancePtr , uint nDeviceIndex ) ;
442
448
[ DllImportAttribute ( "openvr_api" , EntryPoint = "VR_IVRTrackedCamera_ResumeVideoStream" ) ]
@@ -502,6 +508,8 @@ public abstract class IVRSystem
502
508
public abstract EVRFirmwareError PerformFirmwareUpdate ( uint unDeviceIndex ) ;
503
509
public abstract void AcknowledgeQuit_Exiting ( ) ;
504
510
public abstract void AcknowledgeQuit_UserPrompt ( ) ;
511
+ public abstract void PerformanceTestEnableCapture ( bool bEnable ) ;
512
+ public abstract void PerformanceTestReportFidelityLevelChange ( int nFidelityLevel ) ;
505
513
}
506
514
507
515
@@ -571,6 +579,8 @@ public abstract class IVRChaperoneSetup
571
579
public abstract void SetWorkingStandingZeroPoseToRawTrackingPose ( ref HmdMatrix34_t pMatStandingZeroPoseToRawTrackingPose ) ;
572
580
public abstract void ReloadFromDisk ( EChaperoneConfigFile configFile ) ;
573
581
public abstract bool GetLiveSeatedZeroPoseToRawTrackingPose ( ref HmdMatrix34_t pmatSeatedZeroPoseToRawTrackingPose ) ;
582
+ public abstract void SetWorkingWallTagInfo ( byte [ ] pTagsBuffer ) ;
583
+ public abstract bool GetLiveWallTagInfo ( out byte [ ] pTagsBuffer ) ;
574
584
}
575
585
576
586
@@ -727,7 +737,6 @@ public abstract class IVRTrackedCamera
727
737
public abstract CameraVideoStreamFrame_t GetVideoStreamFrame ( uint nDeviceIndex ) ;
728
738
public abstract bool ReleaseVideoStreamFrame ( uint nDeviceIndex , ref CameraVideoStreamFrame_t pFrameImage ) ;
729
739
public abstract bool SetAutoExposure ( uint nDeviceIndex , bool bEnable ) ;
730
- public abstract bool SupportsPauseResume ( uint nDeviceIndex ) ;
731
740
public abstract bool PauseVideoStream ( uint nDeviceIndex ) ;
732
741
public abstract bool ResumeVideoStream ( uint nDeviceIndex ) ;
733
742
public abstract bool IsVideoStreamPaused ( uint nDeviceIndex ) ;
@@ -1016,6 +1025,16 @@ public override void AcknowledgeQuit_UserPrompt()
1016
1025
CheckIfUsable ( ) ;
1017
1026
VRNativeEntrypoints . VR_IVRSystem_AcknowledgeQuit_UserPrompt ( m_pVRSystem ) ;
1018
1027
}
1028
+ public override void PerformanceTestEnableCapture ( bool bEnable )
1029
+ {
1030
+ CheckIfUsable ( ) ;
1031
+ VRNativeEntrypoints . VR_IVRSystem_PerformanceTestEnableCapture ( m_pVRSystem , bEnable ) ;
1032
+ }
1033
+ public override void PerformanceTestReportFidelityLevelChange ( int nFidelityLevel )
1034
+ {
1035
+ CheckIfUsable ( ) ;
1036
+ VRNativeEntrypoints . VR_IVRSystem_PerformanceTestReportFidelityLevelChange ( m_pVRSystem , nFidelityLevel ) ;
1037
+ }
1019
1038
}
1020
1039
1021
1040
@@ -1373,6 +1392,20 @@ public override bool GetLiveSeatedZeroPoseToRawTrackingPose(ref HmdMatrix34_t pm
1373
1392
bool result = VRNativeEntrypoints . VR_IVRChaperoneSetup_GetLiveSeatedZeroPoseToRawTrackingPose ( m_pVRChaperoneSetup , ref pmatSeatedZeroPoseToRawTrackingPose ) ;
1374
1393
return result ;
1375
1394
}
1395
+ public override void SetWorkingWallTagInfo ( byte [ ] pTagsBuffer )
1396
+ {
1397
+ CheckIfUsable ( ) ;
1398
+ VRNativeEntrypoints . VR_IVRChaperoneSetup_SetWorkingWallTagInfo ( m_pVRChaperoneSetup , pTagsBuffer , ( uint ) pTagsBuffer . Length ) ;
1399
+ }
1400
+ public override bool GetLiveWallTagInfo ( out byte [ ] pTagsBuffer )
1401
+ {
1402
+ CheckIfUsable ( ) ;
1403
+ uint punTagCount = 0 ;
1404
+ bool result = VRNativeEntrypoints . VR_IVRChaperoneSetup_GetLiveWallTagInfo ( m_pVRChaperoneSetup , null , ref punTagCount ) ;
1405
+ pTagsBuffer = new byte [ punTagCount ] ;
1406
+ result = VRNativeEntrypoints . VR_IVRChaperoneSetup_GetLiveWallTagInfo ( m_pVRChaperoneSetup , pTagsBuffer , ref punTagCount ) ;
1407
+ return result ;
1408
+ }
1376
1409
}
1377
1410
1378
1411
@@ -2004,8 +2037,6 @@ public override bool GetComponentState(string pchRenderModelName,string pchCompo
2004
2037
}
2005
2038
2006
2039
2007
-
2008
-
2009
2040
public class CVRNotifications : IVRNotifications
2010
2041
{
2011
2042
public CVRNotifications ( IntPtr VRNotifications )
@@ -2210,12 +2241,6 @@ public override bool SetAutoExposure(uint nDeviceIndex,bool bEnable)
2210
2241
bool result = VRNativeEntrypoints . VR_IVRTrackedCamera_SetAutoExposure ( m_pVRTrackedCamera , nDeviceIndex , bEnable ) ;
2211
2242
return result ;
2212
2243
}
2213
- public override bool SupportsPauseResume ( uint nDeviceIndex )
2214
- {
2215
- CheckIfUsable ( ) ;
2216
- bool result = VRNativeEntrypoints . VR_IVRTrackedCamera_SupportsPauseResume ( m_pVRTrackedCamera , nDeviceIndex ) ;
2217
- return result ;
2218
- }
2219
2244
public override bool PauseVideoStream ( uint nDeviceIndex )
2220
2245
{
2221
2246
CheckIfUsable ( ) ;
@@ -2482,6 +2507,9 @@ public enum EVREventType
2482
2507
VREvent_TrackedCamera_StopVideoStream = 1501 ,
2483
2508
VREvent_TrackedCamera_PauseVideoStream = 1502 ,
2484
2509
VREvent_TrackedCamera_ResumeVideoStream = 1503 ,
2510
+ VREvent_PerformanceTest_EnableCapture = 1600 ,
2511
+ VREvent_PerformanceTest_DisableCapture = 1601 ,
2512
+ VREvent_PerformanceTest_FidelityLevel = 1602 ,
2485
2513
VREvent_VendorSpecific_Reserved_Start = 10000 ,
2486
2514
VREvent_VendorSpecific_Reserved_End = 19999 ,
2487
2515
}
@@ -2937,6 +2965,10 @@ public enum ECameraVideoStreamFormat
2937
2965
public ulong reserved0 ;
2938
2966
public ulong reserved1 ;
2939
2967
}
2968
+ [ StructLayout ( LayoutKind . Sequential ) ] public struct VREvent_PerformanceTest_t
2969
+ {
2970
+ public uint m_nFidelityLevel ;
2971
+ }
2940
2972
[ StructLayout ( LayoutKind . Sequential ) ] public struct VREvent_t
2941
2973
{
2942
2974
public EVREventType eventType ;
@@ -3000,6 +3032,7 @@ public enum ECameraVideoStreamFormat
3000
3032
public float m_flHandoffStartMs ;
3001
3033
public float m_flHandoffEndMs ;
3002
3034
public float m_flCompositorUpdateCpuMs ;
3035
+ public uint m_nPresents ;
3003
3036
}
3004
3037
[ StructLayout ( LayoutKind . Sequential ) ] public struct VROverlayIntersectionParams_t
3005
3038
{
@@ -3053,15 +3086,17 @@ public enum ECameraVideoStreamFormat
3053
3086
public ECameraVideoStreamFormat m_nStreamFormat ;
3054
3087
public uint m_nWidth ;
3055
3088
public uint m_nHeight ;
3089
+ public uint m_nImageDataSize ;
3056
3090
public uint m_nFrameSequence ;
3057
- public uint m_nTimeStamp ;
3058
- public uint m_nISPTimeStamp ;
3091
+ public uint m_nISPFrameTimeStamp ;
3092
+ public uint m_nISPReferenceTimeStamp ;
3093
+ public uint m_nSyncCounter ;
3059
3094
public uint m_nExposureTime ;
3060
3095
public uint m_nBufferIndex ;
3061
3096
public uint m_nBufferCount ;
3062
- public uint m_nImageDataSize ;
3063
3097
public double m_flFrameElapsedTime ;
3064
3098
public double m_flFrameCaptureTime ;
3099
+ public ulong m_nFrameCaptureTicks ;
3065
3100
[ MarshalAs ( UnmanagedType . I1 ) ]
3066
3101
public bool m_bPoseIsValid ;
3067
3102
public HmdMatrix34_t m_matDeviceToAbsoluteTracking ;
@@ -3111,7 +3146,7 @@ public static string GetStringForHmdError(EVRInitError error)
3111
3146
public const string IVRApplications_Version = "IVRApplications_002" ;
3112
3147
public const string IVRChaperone_Version = "IVRChaperone_003" ;
3113
3148
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_004" ;
3114
- public const string IVRCompositor_Version = "IVRCompositor_009 " ;
3149
+ public const string IVRCompositor_Version = "IVRCompositor_010 " ;
3115
3150
public const uint k_unVROverlayMaxKeyLength = 128 ;
3116
3151
public const uint k_unVROverlayMaxNameLength = 128 ;
3117
3152
public const uint k_unMaxOverlayCount = 32 ;
0 commit comments