15
15
namespace vr
16
16
{
17
17
static const uint32_t k_nSteamVRVersionMajor = 1 ;
18
- static const uint32_t k_nSteamVRVersionMinor = 13 ;
19
- static const uint32_t k_nSteamVRVersionBuild = 10 ;
18
+ static const uint32_t k_nSteamVRVersionMinor = 14 ;
19
+ static const uint32_t k_nSteamVRVersionBuild = 15 ;
20
20
} // namespace vr
21
21
22
22
// vrtypes.h
@@ -469,7 +469,8 @@ enum ETrackedDeviceProperty
469
469
470
470
Prop_Audio_DefaultPlaybackDeviceId_String = 2300 ,
471
471
Prop_Audio_DefaultRecordingDeviceId_String = 2301 ,
472
- Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302 ,
472
+ Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302 ,
473
+ Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303 ,
473
474
474
475
// Properties that are unique to TrackedDeviceClass_Controller
475
476
Prop_AttachedDeviceId_String = 3000 ,
@@ -784,6 +785,8 @@ enum EVREventType
784
785
VREvent_RoomViewHidden = 527 , // Sent by compositor whenever room-view is disabled
785
786
VREvent_ShowUI = 528 , // data is showUi
786
787
VREvent_ShowDevTools = 529 , // data is showDevTools
788
+ VREvent_DesktopViewUpdating = 530 ,
789
+ VREvent_DesktopViewReady = 531 ,
787
790
788
791
VREvent_Notification_Shown = 600 ,
789
792
VREvent_Notification_Hidden = 601 ,
@@ -2422,6 +2425,7 @@ namespace vr
2422
2425
static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = " enablePlaybackMirrorIndependentVolume" ;
2423
2426
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = " lastHmdPlaybackDeviceId" ;
2424
2427
static const char * const k_pch_audio_VIVEHDMIGain = " viveHDMIGain" ;
2428
+ static const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = " dualSpeakerAndJackOutput" ;
2425
2429
2426
2430
// -----------------------------------------------------------------------------
2427
2431
// power management keys
@@ -2679,12 +2683,15 @@ namespace vr
2679
2683
// ivrdriverdirectmodecomponent.h
2680
2684
namespace vr
2681
2685
{
2682
-
2686
+ enum VRSwapTextureFlag
2687
+ {
2688
+ // Specify that the shared texture resource was created with the SHARED_NTHANDLE option (Windows)
2689
+ VRSwapTextureFlag_Shared_NTHandle = 1 << 0 ,
2690
+ };
2683
2691
2684
2692
// ----------------------------------------------------------------------------------------------
2685
2693
// Purpose: This component is used for drivers that implement direct mode entirely on their own
2686
- // without allowing the VR Compositor to own the window/device. Chances are you don't
2687
- // need to implement this component in your driver.
2694
+ // without allowing the VR Compositor to own the window/device.
2688
2695
// ----------------------------------------------------------------------------------------------
2689
2696
class IVRDriverDirectModeComponent
2690
2697
{
@@ -2694,15 +2701,22 @@ namespace vr
2694
2701
// Direct mode methods
2695
2702
// -----------------------------------
2696
2703
2697
- /* * Specific to Oculus compositor support, textures supplied must be created using this method. */
2698
2704
struct SwapTextureSetDesc_t
2699
2705
{
2700
2706
uint32_t nWidth;
2701
2707
uint32_t nHeight;
2702
2708
uint32_t nFormat;
2703
2709
uint32_t nSampleCount;
2704
2710
};
2705
- virtual void CreateSwapTextureSet ( uint32_t unPid, const SwapTextureSetDesc_t *pSwapTextureSetDesc, vr::SharedTextureHandle_t( *pSharedTextureHandles )[ 3 ] ) {}
2711
+
2712
+ struct SwapTextureSet_t
2713
+ {
2714
+ vr::SharedTextureHandle_t rSharedTextureHandles[ 3 ];
2715
+ uint32_t unTextureFlags;
2716
+ };
2717
+
2718
+ /* * Called to allocate textures for applications to render into. One of these per eye will be passed back to SubmitLayer each frame. */
2719
+ virtual void CreateSwapTextureSet ( uint32_t unPid, const SwapTextureSetDesc_t *pSwapTextureSetDesc, SwapTextureSet_t *pOutSwapTextureSet ) {}
2706
2720
2707
2721
/* * Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */
2708
2722
virtual void DestroySwapTextureSet ( vr::SharedTextureHandle_t sharedTextureHandle ) {}
@@ -2741,7 +2755,7 @@ namespace vr
2741
2755
virtual void GetFrameTiming ( DriverDirectMode_FrameTiming *pFrameTiming ) {}
2742
2756
};
2743
2757
2744
- static const char *IVRDriverDirectModeComponent_Version = " IVRDriverDirectModeComponent_006 " ;
2758
+ static const char *IVRDriverDirectModeComponent_Version = " IVRDriverDirectModeComponent_007 " ;
2745
2759
2746
2760
}
2747
2761
@@ -3452,18 +3466,27 @@ class IVRServerDriverHost
3452
3466
* other properties can be looked up via IVRProperties. */
3453
3467
virtual void GetRawTrackedDevicePoses ( float fPredictedSecondsFromNow , TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0;
3454
3468
3455
- /* * Notifies the server that a tracked device's display component transforms have been updated. */
3456
- virtual void TrackedDeviceDisplayTransformUpdated ( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0;
3457
-
3458
3469
/* * Requests that SteamVR be restarted. The provided reason will be displayed to the user and should be in the current locale. */
3459
3470
virtual void RequestRestart ( const char *pchLocalizedReason, const char *pchExecutableToStart, const char *pchArguments, const char *pchWorkingDirectory ) = 0;
3460
3471
3461
3472
/* * Interface for copying a range of timing data. Frames are returned in ascending order (oldest to newest) with the last being the most recent frame.
3462
3473
* Only the first entry's m_nSize needs to be set, as the rest will be inferred from that. Returns total number of entries filled out. */
3463
3474
virtual uint32_t GetFrameTimings ( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0;
3475
+
3476
+ /* * Notifies the server that a tracked device's display component transforms have been updated.
3477
+ * only permitted on devices of the HMD class. */
3478
+ virtual void SetDisplayEyeToHead ( uint32_t unWhichDevice, const HmdMatrix34_t & eyeToHeadLeft, const HmdMatrix34_t & eyeToHeadRight ) = 0;
3479
+
3480
+ /* * Notifies the server that a tracked device's display projection has changed.
3481
+ * only permitted on devices of the HMD class. */
3482
+ virtual void SetDisplayProjectionRaw ( uint32_t unWhichDevice, const HmdRect2_t & eyeLeft, const HmdRect2_t & eyeRight ) = 0;
3483
+
3484
+ /* * Notifies the server that a tracked device's recommended render target resolution has changed.
3485
+ * only permitted on devices of the HMD class. */
3486
+ virtual void SetRecommendedRenderTargetSize ( uint32_t unWhichDevice, uint32_t nWidth, uint32_t nHeight ) = 0;
3464
3487
};
3465
3488
3466
- static const char *IVRServerDriverHost_Version = " IVRServerDriverHost_005 " ;
3489
+ static const char *IVRServerDriverHost_Version = " IVRServerDriverHost_006 " ;
3467
3490
3468
3491
}
3469
3492
0 commit comments