Skip to content

Commit 0eb7032

Browse files
committed
# OpenVR SDK 1.14.15
New events: * VREvent_DesktopViewUpdating * VREvent_DesktopViewReady IVRDriverDirectModeComponent: * Updated CreateSwapTextureSet to (optionally) allow NTHandle support IVRServerDriverHost: * Added SetDisplayProjectionRaw * Added SetRecommendedRenderTargetSize * Renamed TrackedDeviceDisplayTransformUpdated -> SetDisplayEyeToHead [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 6100641]
1 parent 793739c commit 0eb7032

30 files changed

+86
-20
lines changed

bin/linux32/libopenvr_api.so

2 Bytes
Binary file not shown.

bin/linux32/libopenvr_api.so.dbg

334 Bytes
Binary file not shown.

bin/linux64/libopenvr_api.so

2.35 KB
Binary file not shown.

bin/linux64/libopenvr_api.so.dbg

13.3 KB
Binary file not shown.

bin/linuxarm64/libopenvr_api.so

-8.8 KB
Binary file not shown.

bin/linuxarm64/libopenvr_api.so.dbg

1.46 MB
Binary file not shown.

bin/linuxarm64/libopenvr_api_unity.so

-12.7 KB
Binary file not shown.
2.43 MB
Binary file not shown.

bin/win32/openvr_api.dll

0 Bytes
Binary file not shown.

bin/win32/openvr_api.dll.sig

0 Bytes
Binary file not shown.

bin/win32/openvr_api.pdb

0 Bytes
Binary file not shown.

bin/win64/openvr_api.dll

0 Bytes
Binary file not shown.

bin/win64/openvr_api.dll.sig

0 Bytes
Binary file not shown.

bin/win64/openvr_api.pdb

0 Bytes
Binary file not shown.

headers/openvr.h

+7-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace vr
1616
{
1717
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;
2020
} // namespace vr
2121

2222
// vrtypes.h
@@ -469,7 +469,8 @@ enum ETrackedDeviceProperty
469469

470470
Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
471471
Prop_Audio_DefaultRecordingDeviceId_String = 2301,
472-
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
472+
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
473+
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
473474

474475
// Properties that are unique to TrackedDeviceClass_Controller
475476
Prop_AttachedDeviceId_String = 3000,
@@ -784,6 +785,8 @@ enum EVREventType
784785
VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled
785786
VREvent_ShowUI = 528, // data is showUi
786787
VREvent_ShowDevTools = 529, // data is showDevTools
788+
VREvent_DesktopViewUpdating = 530,
789+
VREvent_DesktopViewReady = 531,
787790

788791
VREvent_Notification_Shown = 600,
789792
VREvent_Notification_Hidden = 601,
@@ -2829,6 +2832,7 @@ namespace vr
28292832
static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
28302833
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
28312834
static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
2835+
static const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
28322836

28332837
//-----------------------------------------------------------------------------
28342838
// power management keys

headers/openvr_api.cs

+5
Original file line numberDiff line numberDiff line change
@@ -4719,6 +4719,7 @@ public enum ETrackedDeviceProperty
47194719
Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
47204720
Prop_Audio_DefaultRecordingDeviceId_String = 2301,
47214721
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
4722+
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
47224723
Prop_AttachedDeviceId_String = 3000,
47234724
Prop_SupportedButtons_Uint64 = 3001,
47244725
Prop_Axis0Type_Int32 = 3002,
@@ -4885,6 +4886,8 @@ public enum EVREventType
48854886
VREvent_RoomViewHidden = 527,
48864887
VREvent_ShowUI = 528,
48874888
VREvent_ShowDevTools = 529,
4889+
VREvent_DesktopViewUpdating = 530,
4890+
VREvent_DesktopViewReady = 531,
48884891
VREvent_Notification_Shown = 600,
48894892
VREvent_Notification_Hidden = 601,
48904893
VREvent_Notification_BeginInteraction = 602,
@@ -7699,6 +7702,7 @@ public static uint GetInitToken()
76997702
public const string k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
77007703
public const string k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
77017704
public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
7705+
public const string k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
77027706
public const string k_pch_Power_Section = "power";
77037707
public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
77047708
public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
@@ -7773,6 +7777,7 @@ public static uint GetInitToken()
77737777
public const string k_pchPathBoundTrackerRole = "/bound_tracker_role";
77747778
public const string k_pchPathPoseRaw = "/pose/raw";
77757779
public const string k_pchPathPoseTip = "/pose/tip";
7780+
public const string k_pchPathPoseGrip = "/pose/grip";
77767781
public const string k_pchPathSystemButtonClick = "/input/system/click";
77777782
public const string k_pchPathProximity = "/proximity";
77787783
public const string k_pchPathControllerTypePrefix = "/controller_type/";

headers/openvr_api.json

+7
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
,{"name": "Prop_Audio_DefaultPlaybackDeviceId_String","value": "2300"}
253253
,{"name": "Prop_Audio_DefaultRecordingDeviceId_String","value": "2301"}
254254
,{"name": "Prop_Audio_DefaultPlaybackDeviceVolume_Float","value": "2302"}
255+
,{"name": "Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool","value": "2303"}
255256
,{"name": "Prop_AttachedDeviceId_String","value": "3000"}
256257
,{"name": "Prop_SupportedButtons_Uint64","value": "3001"}
257258
,{"name": "Prop_Axis0Type_Int32","value": "3002"}
@@ -413,6 +414,8 @@
413414
,{"name": "VREvent_RoomViewHidden","value": "527"}
414415
,{"name": "VREvent_ShowUI","value": "528"}
415416
,{"name": "VREvent_ShowDevTools","value": "529"}
417+
,{"name": "VREvent_DesktopViewUpdating","value": "530"}
418+
,{"name": "VREvent_DesktopViewReady","value": "531"}
416419
,{"name": "VREvent_Notification_Shown","value": "600"}
417420
,{"name": "VREvent_Notification_Hidden","value": "601"}
418421
,{"name": "VREvent_Notification_BeginInteraction","value": "602"}
@@ -1698,6 +1701,8 @@
16981701
"constname": "k_pch_audio_LastHmdPlaybackDeviceId_String","consttype": "const char *const", "constval": "lastHmdPlaybackDeviceId"}
16991702
,{
17001703
"constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"}
1704+
,{
1705+
"constname": "k_pch_audio_DualSpeakerAndJackOutput_Bool","consttype": "const char *const", "constval": "dualSpeakerAndJackOutput"}
17011706
,{
17021707
"constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"}
17031708
,{
@@ -1846,6 +1851,8 @@
18461851
"constname": "k_pchPathPoseRaw","consttype": "const char *", "constval": "/pose/raw"}
18471852
,{
18481853
"constname": "k_pchPathPoseTip","consttype": "const char *", "constval": "/pose/tip"}
1854+
,{
1855+
"constname": "k_pchPathPoseGrip","consttype": "const char *", "constval": "/pose/grip"}
18491856
,{
18501857
"constname": "k_pchPathSystemButtonClick","consttype": "const char *", "constval": "/input/system/click"}
18511858
,{

headers/openvr_capi.h

+5
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ static const char * k_pch_audio_ActiveMirrorDevice_String = "activePlaybackMirro
298298
static const char * k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
299299
static const char * k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
300300
static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
301+
static const char * k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
301302
static const char * k_pch_Power_Section = "power";
302303
static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
303304
static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
@@ -372,6 +373,7 @@ static const char * k_pchPathBoundTrackerAliasPath = "/bound_tracker_path";
372373
static const char * k_pchPathBoundTrackerRole = "/bound_tracker_role";
373374
static const char * k_pchPathPoseRaw = "/pose/raw";
374375
static const char * k_pchPathPoseTip = "/pose/tip";
376+
static const char * k_pchPathPoseGrip = "/pose/grip";
375377
static const char * k_pchPathSystemButtonClick = "/input/system/click";
376378
static const char * k_pchPathProximity = "/proximity";
377379
static const char * k_pchPathControllerTypePrefix = "/controller_type/";
@@ -627,6 +629,7 @@ typedef enum ETrackedDeviceProperty
627629
ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
628630
ETrackedDeviceProperty_Prop_Audio_DefaultRecordingDeviceId_String = 2301,
629631
ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
632+
ETrackedDeviceProperty_Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
630633
ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000,
631634
ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001,
632635
ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002,
@@ -798,6 +801,8 @@ typedef enum EVREventType
798801
EVREventType_VREvent_RoomViewHidden = 527,
799802
EVREventType_VREvent_ShowUI = 528,
800803
EVREventType_VREvent_ShowDevTools = 529,
804+
EVREventType_VREvent_DesktopViewUpdating = 530,
805+
EVREventType_VREvent_DesktopViewReady = 531,
801806
EVREventType_VREvent_Notification_Shown = 600,
802807
EVREventType_VREvent_Notification_Hidden = 601,
803808
EVREventType_VREvent_Notification_BeginInteraction = 602,

headers/openvr_driver.h

+36-13
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
namespace vr
1616
{
1717
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;
2020
} // namespace vr
2121

2222
// vrtypes.h
@@ -469,7 +469,8 @@ enum ETrackedDeviceProperty
469469

470470
Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
471471
Prop_Audio_DefaultRecordingDeviceId_String = 2301,
472-
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
472+
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
473+
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
473474

474475
// Properties that are unique to TrackedDeviceClass_Controller
475476
Prop_AttachedDeviceId_String = 3000,
@@ -784,6 +785,8 @@ enum EVREventType
784785
VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled
785786
VREvent_ShowUI = 528, // data is showUi
786787
VREvent_ShowDevTools = 529, // data is showDevTools
788+
VREvent_DesktopViewUpdating = 530,
789+
VREvent_DesktopViewReady = 531,
787790

788791
VREvent_Notification_Shown = 600,
789792
VREvent_Notification_Hidden = 601,
@@ -2422,6 +2425,7 @@ namespace vr
24222425
static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
24232426
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
24242427
static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
2428+
static const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
24252429

24262430
//-----------------------------------------------------------------------------
24272431
// power management keys
@@ -2679,12 +2683,15 @@ namespace vr
26792683
// ivrdriverdirectmodecomponent.h
26802684
namespace vr
26812685
{
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+
};
26832691

26842692
// ----------------------------------------------------------------------------------------------
26852693
// 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.
26882695
// ----------------------------------------------------------------------------------------------
26892696
class IVRDriverDirectModeComponent
26902697
{
@@ -2694,15 +2701,22 @@ namespace vr
26942701
// Direct mode methods
26952702
// -----------------------------------
26962703

2697-
/** Specific to Oculus compositor support, textures supplied must be created using this method. */
26982704
struct SwapTextureSetDesc_t
26992705
{
27002706
uint32_t nWidth;
27012707
uint32_t nHeight;
27022708
uint32_t nFormat;
27032709
uint32_t nSampleCount;
27042710
};
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 ) {}
27062720

27072721
/** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */
27082722
virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {}
@@ -2741,7 +2755,7 @@ namespace vr
27412755
virtual void GetFrameTiming( DriverDirectMode_FrameTiming *pFrameTiming ) {}
27422756
};
27432757

2744-
static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_006";
2758+
static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_007";
27452759

27462760
}
27472761

@@ -3452,18 +3466,27 @@ class IVRServerDriverHost
34523466
* other properties can be looked up via IVRProperties. */
34533467
virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0;
34543468

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-
34583469
/** Requests that SteamVR be restarted. The provided reason will be displayed to the user and should be in the current locale. */
34593470
virtual void RequestRestart( const char *pchLocalizedReason, const char *pchExecutableToStart, const char *pchArguments, const char *pchWorkingDirectory ) = 0;
34603471

34613472
/** 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.
34623473
* 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. */
34633474
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;
34643487
};
34653488

3466-
static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_005";
3489+
static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_006";
34673490

34683491
}
34693492

0 commit comments

Comments
 (0)