16
16
namespace vr
17
17
{
18
18
static const uint32_t k_nSteamVRVersionMajor = 1 ;
19
- static const uint32_t k_nSteamVRVersionMinor = 16 ;
20
- static const uint32_t k_nSteamVRVersionBuild = 8 ;
19
+ static const uint32_t k_nSteamVRVersionMinor = 23 ;
20
+ static const uint32_t k_nSteamVRVersionBuild = 7 ;
21
21
} // namespace vr
22
22
23
23
// public_vrtypes.h
@@ -29,6 +29,8 @@ namespace vr
29
29
{
30
30
#pragma pack( push, 8 )
31
31
32
+ typedef uint32_t PropertyTypeTag_t;
33
+
32
34
// right-handed system
33
35
// +y is up
34
36
// +x is to the right
@@ -387,6 +389,8 @@ enum ETrackedDeviceProperty
387
389
Prop_ManufacturerSerialNumber_String = 1049 ,
388
390
Prop_ComputedSerialNumber_String = 1050 ,
389
391
Prop_EstimatedDeviceFirstUseTime_Int32 = 1051 ,
392
+ Prop_DevicePowerUsage_Float = 1052 ,
393
+ Prop_IgnoreMotionForStandby_Bool = 1053 ,
390
394
391
395
// Properties that are unique to TrackedDeviceClass_HMD
392
396
Prop_ReportsTimeSinceVSync_Bool = 2000 ,
@@ -479,10 +483,15 @@ enum ETrackedDeviceProperty
479
483
Prop_CameraGlobalGain_Float = 2089 ,
480
484
// Prop_DashboardLayoutPathName_String = 2090, // DELETED
481
485
Prop_DashboardScale_Float = 2091 ,
486
+ Prop_PeerButtonInfo_String = 2092 ,
487
+
482
488
Prop_IpdUIRangeMinMeters_Float = 2100 ,
483
489
Prop_IpdUIRangeMaxMeters_Float = 2101 ,
484
490
Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102 ,
485
491
Prop_Hmd_SupportsMicMonitoring_Bool = 2103 ,
492
+ Prop_Hmd_SupportsDisplayPortTrainingMode_Bool = 2104 ,
493
+ Prop_SupportsRoomViewDirect_Bool = 2105 ,
494
+ Prop_SupportsAppThrottling_Bool = 2106 ,
486
495
487
496
// Driver requested mura correction properties
488
497
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200 ,
@@ -671,8 +680,8 @@ enum EVRSubmitFlags
671
680
Submit_GlArrayTexture = 0x80 ,
672
681
673
682
// Do not use
674
- Submit_Reserved2 = 0x8000 ,
675
-
683
+ Submit_Reserved2 = 0x08000 ,
684
+ Submit_Reserved3 = 0x10000 ,
676
685
677
686
};
678
687
@@ -824,6 +833,11 @@ enum EVREventType
824
833
VREvent_DesktopViewUpdating = 530 ,
825
834
VREvent_DesktopViewReady = 531 ,
826
835
836
+ VREvent_StartDashboard = 532 ,
837
+ VREvent_ElevatePrism = 533 ,
838
+
839
+ VREvent_OverlayClosed = 534 ,
840
+
827
841
VREvent_Notification_Shown = 600 ,
828
842
VREvent_Notification_Hidden = 601 ,
829
843
VREvent_Notification_BeginInteraction = 602 ,
@@ -835,6 +849,7 @@ enum EVREventType
835
849
VREvent_QuitAcknowledged = 703 , // data is process
836
850
VREvent_DriverRequestedQuit = 704 , // The driver has requested that SteamVR shut down
837
851
VREvent_RestartRequested = 705 , // A driver or other component wants the user to restart SteamVR
852
+ VREvent_InvalidateSwapTextureSets = 706 ,
838
853
839
854
VREvent_ChaperoneDataHasChanged = 800 , // this will never happen with the new chaperone system
840
855
VREvent_ChaperoneUniverseHasChanged = 801 ,
@@ -905,6 +920,7 @@ enum EVREventType
905
920
VREvent_Compositor_OutOfVideoMemory = 1417 ,
906
921
VREvent_Compositor_DisplayModeNotSupported = 1418 , // k_pch_SteamVR_PreferredRefreshRate
907
922
VREvent_Compositor_StageOverrideReady = 1419 ,
923
+ VREvent_Compositor_RequestDisconnectReconnect = 1420 ,
908
924
909
925
VREvent_TrackedCamera_StartVideoStream = 1500 ,
910
926
VREvent_TrackedCamera_StopVideoStream = 1501 ,
@@ -1484,6 +1500,7 @@ enum EVROverlayError
1484
1500
VROverlayError_TextureAlreadyLocked = 31 ,
1485
1501
VROverlayError_TextureLockCapacityReached = 32 ,
1486
1502
VROverlayError_TextureNotLocked = 33 ,
1503
+ VROverlayError_TimedOut = 34 ,
1487
1504
};
1488
1505
1489
1506
/* * enum values to pass in to VR_Init to identify whether the application will
@@ -1505,6 +1522,7 @@ enum EVRApplicationType
1505
1522
VRApplication_OpenXRScene = 10 , // reserved for openxr (started session)
1506
1523
VRApplication_OpenXROverlay = 11 , // reserved for openxr (started overlay session)
1507
1524
VRApplication_Prism = 12 , // reserved for the vrprismhost process
1525
+ VRApplication_RoomView = 13 , // reserved for the RoomView process
1508
1526
1509
1527
VRApplication_Max
1510
1528
};
@@ -1520,6 +1538,15 @@ inline bool IsOpenXRAppType( EVRApplicationType eType )
1520
1538
}
1521
1539
1522
1540
1541
+ /* * returns true if the specified application type submits eye buffers */
1542
+ inline bool BAppTypeSubmitsEyeBuffers ( EVRApplicationType eType )
1543
+ {
1544
+ return eType == VRApplication_Scene
1545
+ || eType == VRApplication_OpenXRScene
1546
+ || eType == VRApplication_RoomView;
1547
+ }
1548
+
1549
+
1523
1550
/* * error codes for firmware */
1524
1551
enum EVRFirmwareError
1525
1552
{
@@ -1641,8 +1668,20 @@ enum EVRInitError
1641
1668
VRInitError_Init_PrismNeedsNewDrivers = 151 ,
1642
1669
VRInitError_Init_PrismStartupTimedOut = 152 ,
1643
1670
VRInitError_Init_CouldNotStartPrism = 153 ,
1644
- VRInitError_Init_CreateDriverDirectDeviceFailed = 154 ,
1645
- VRInitError_Init_PrismExitedUnexpectedly = 155 ,
1671
+ VRInitError_Init_PrismClientInitFailed = 154 ,
1672
+ VRInitError_Init_PrismClientStartFailed = 155 ,
1673
+ VRInitError_Init_PrismExitedUnexpectedly = 156 ,
1674
+ VRInitError_Init_BadLuid = 157 ,
1675
+ VRInitError_Init_NoServerForAppContainer = 158 ,
1676
+ VRInitError_Init_DuplicateBootstrapper = 159 ,
1677
+ VRInitError_Init_VRDashboardServicePending = 160 ,
1678
+ VRInitError_Init_VRDashboardServiceTimeout = 161 ,
1679
+ VRInitError_Init_VRDashboardServiceStopped = 162 ,
1680
+ VRInitError_Init_VRDashboardAlreadyStarted = 163 ,
1681
+ VRInitError_Init_VRDashboardCopyFailed = 164 ,
1682
+ VRInitError_Init_VRDashboardTokenFailure = 165 ,
1683
+ VRInitError_Init_VRDashboardEnvironmentFailure = 166 ,
1684
+ VRInitError_Init_VRDashboardPathFailure = 167 ,
1646
1685
1647
1686
VRInitError_Driver_Failed = 200 ,
1648
1687
VRInitError_Driver_Unknown = 201 ,
@@ -1658,6 +1697,9 @@ enum EVRInitError
1658
1697
VRInitError_Driver_HmdDriverIdOutOfBounds = 211 ,
1659
1698
VRInitError_Driver_HmdDisplayMirrored = 212 ,
1660
1699
VRInitError_Driver_HmdDisplayNotFoundLaptop = 213 ,
1700
+ VRInitError_Driver_PeerDriverNotInstalled = 214 ,
1701
+ VRInitError_Driver_WirelessHmdNotConnected = 215 ,
1702
+
1661
1703
// Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE
1662
1704
1663
1705
VRInitError_IPC_ServerInitFailed = 300 ,
@@ -1766,9 +1808,12 @@ enum EVRInitError
1766
1808
VRInitError_Compositor_WindowInterfaceIsNull = 491 ,
1767
1809
VRInitError_Compositor_SystemLayerCreateInstance = 492 ,
1768
1810
VRInitError_Compositor_SystemLayerCreateSession = 493 ,
1811
+ VRInitError_Compositor_CreateInverseDistortUVs = 494 ,
1812
+ VRInitError_Compositor_CreateBackbufferDepth = 495 ,
1769
1813
1770
1814
VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000 ,
1771
1815
VRInitError_VendorSpecific_WindowsNotInDevMode = 1001 ,
1816
+ VRInitError_VendorSpecific_OculusLinkNotEnabled = 1002 ,
1772
1817
1773
1818
VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101 ,
1774
1819
VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102 ,
@@ -1784,6 +1829,7 @@ enum EVRInitError
1784
1829
VRInitError_VendorSpecific_HmdFound_UserDataError = 1112 ,
1785
1830
VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113 ,
1786
1831
VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114 ,
1832
+ VRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1 = 1115 ,
1787
1833
1788
1834
VRInitError_Steam_SteamInstallationNotFound = 2000 ,
1789
1835
@@ -2727,6 +2773,8 @@ namespace vr
2727
2773
static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = " motionSmoothingOverride" ;
2728
2774
static const char * const k_pch_SteamVR_FramesToThrottle_Int32 = " framesToThrottle" ;
2729
2775
static const char * const k_pch_SteamVR_AdditionalFramesToPredict_Int32 = " additionalFramesToPredict" ;
2776
+ static const char * const k_pch_SteamVR_WorldScale_Float = " worldScale" ;
2777
+ static const char * const k_pch_SteamVR_FovScale_Int32 = " fovScale" ;
2730
2778
static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = " disableAsync" ;
2731
2779
static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = " forceFadeOnBadTracking" ;
2732
2780
static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = " mirrorView" ;
@@ -2770,6 +2818,7 @@ namespace vr
2770
2818
static const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = " blockOculusSDKOnOpenVRLaunchOption" ;
2771
2819
static const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = " blockOculusSDKOnAllLaunches" ;
2772
2820
static const char * const k_pch_SteamVR_HDCPLegacyCompatibility_Bool = " hdcp14legacyCompatibility" ;
2821
+ static const char * const k_pch_SteamVR_DisplayPortTrainingMode_Int = " displayPortTrainingMode" ;
2773
2822
static const char * const k_pch_SteamVR_UsePrism_Bool = " usePrism" ;
2774
2823
2775
2824
// -----------------------------------------------------------------------------
@@ -2917,6 +2966,7 @@ namespace vr
2917
2966
static const char * const k_pch_Dashboard_DesktopScale = " desktopScale" ;
2918
2967
static const char * const k_pch_Dashboard_DashboardScale = " dashboardScale" ;
2919
2968
static const char * const k_pch_Dashboard_UseStandaloneSystemLayer = " standaloneSystemLayer" ;
2969
+ static const char * const k_pch_Dashboard_StickyDashboard = " stickyDashboard" ;
2920
2970
2921
2971
// -----------------------------------------------------------------------------
2922
2972
// model skin keys
@@ -3635,8 +3685,7 @@ typedef uint32_t VRNotificationId;
3635
3685
3636
3686
#pragma pack( pop )
3637
3687
3638
- /* * Allows notification sources to interact with the VR system
3639
- This current interface is not yet implemented. Do not use yet. */
3688
+ /* * Allows notification sources to interact with the VR system. */
3640
3689
class IVRNotifications
3641
3690
{
3642
3691
public:
@@ -3753,6 +3802,9 @@ namespace vr
3753
3802
3754
3803
// If this is set, alpha composition assumes the texture is pre-multiplied
3755
3804
VROverlayFlags_IsPremultiplied = 1 << 21 ,
3805
+
3806
+ // If this is set, the alpha values of the overlay texture will be ignored
3807
+ VROverlayFlags_IgnoreTextureAlpha = 1 << 22 ,
3756
3808
};
3757
3809
3758
3810
enum VRMessageOverlayResponse
@@ -3948,6 +4000,12 @@ namespace vr
3948
4000
/* * Returns the curvature of the overlay as a percentage from (0..1] where 1 is a fully closed cylinder. */
3949
4001
virtual EVROverlayError GetOverlayCurvature ( VROverlayHandle_t ulOverlayHandle, float *pfCurvature ) = 0;
3950
4002
4003
+ /* * Sets the pitch angle (in radians) of the overlay before curvature is applied -- to form a fan or disk. */
4004
+ virtual EVROverlayError SetOverlayPreCurvePitch ( VROverlayHandle_t ulOverlayHandle, float fRadians ) = 0;
4005
+
4006
+ /* * Returns the overlay's set pre-curve pitch angle (in radians). */
4007
+ virtual EVROverlayError GetOverlayPreCurvePitch ( VROverlayHandle_t ulOverlayHandle, float *pfRadians ) = 0;
4008
+
3951
4009
/* * Sets the colorspace the overlay texture's data is in. Defaults to 'auto'.
3952
4010
* If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */
3953
4011
virtual EVROverlayError SetOverlayTextureColorSpace ( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0;
@@ -4013,6 +4071,11 @@ namespace vr
4013
4071
/* * Get the transform in 3d space associated with a specific 2d point in the overlay's coordinate space (where 0,0 is the lower left). -Z points out of the overlay */
4014
4072
virtual EVROverlayError GetTransformForOverlayCoordinates ( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0;
4015
4073
4074
+ /* * This function will block until the top of each frame, and can therefore be used to synchronize with the runtime's update rate.
4075
+ * Note: In non-async mode, some signals may be dropped due to scene app performance, so passing a timeout of 1000/refresh rate
4076
+ * may be useful depending on the overlay app's desired behavior. */
4077
+ virtual EVROverlayError WaitFrameSync ( uint32_t nTimeoutMs ) = 0;
4078
+
4016
4079
// ---------------------------------------------
4017
4080
// Overlay input methods
4018
4081
// ---------------------------------------------
@@ -4165,7 +4228,7 @@ namespace vr
4165
4228
virtual void CloseMessageOverlay () = 0;
4166
4229
};
4167
4230
4168
- static const char * const IVROverlay_Version = " IVROverlay_025 " ;
4231
+ static const char * const IVROverlay_Version = " IVROverlay_026 " ;
4169
4232
4170
4233
} // namespace vr
4171
4234
@@ -4285,7 +4348,8 @@ enum EVRRenderModelTextureFormat
4285
4348
VRRenderModelTextureFormat_BC2,
4286
4349
VRRenderModelTextureFormat_BC4,
4287
4350
VRRenderModelTextureFormat_BC7,
4288
- VRRenderModelTextureFormat_BC7_SRGB
4351
+ VRRenderModelTextureFormat_BC7_SRGB,
4352
+ VRRenderModelTextureFormat_RGBA16_FLOAT,
4289
4353
};
4290
4354
4291
4355
/* * A single vertex in a render model */
@@ -4308,6 +4372,7 @@ struct RenderModel_TextureMap_t
4308
4372
uint16_t unWidth, unHeight; // width and height of the texture map in pixels
4309
4373
const uint8_t *rubTextureMapData; // Map texture data.
4310
4374
EVRRenderModelTextureFormat format; // Refer to EVRRenderModelTextureFormat
4375
+ uint16_t unMipLevels;
4311
4376
};
4312
4377
#if defined(__linux__) || defined(__APPLE__)
4313
4378
#pragma pack( pop )
0 commit comments