* update openvr 1.26.7

* ignore chaperone play area error, as it should not effect chaperone, and it frequently occurs with some meta to pcvr configurations

* replace old seated origin call with new reset zero pose call

* change zero offsets to new command

* adjust camera settings to new version of openvr 1.27

* fix save error

* increment version 5.7.4
This commit is contained in:
ykeara
2023-10-09 15:39:13 -05:00
committed by GitHub
parent 67fb57a353
commit 54d22a429e
38 changed files with 1455 additions and 18096 deletions
+1 -1
View File
@@ -1 +1 @@
5.7.3-release 5.7.4-release
+1 -1
View File
@@ -1224,7 +1224,7 @@ void OverlayController::mainEventLoop()
case vr::VREvent_SeatedZeroPoseReset: case vr::VREvent_SeatedZeroPoseReset:
{ {
m_moveCenterTabController.incomingSeatedReset(); m_moveCenterTabController.incomingSeatedReset();
LOG( INFO ) << "Game Triggered Seated Zero-Position Reset"; LOG( INFO ) << "Game/SteamVR Triggered Seated Zero-Position Reset";
} }
break; break;
@@ -40,12 +40,10 @@ GroupBox {
SteamVRTabController.setCameraActive(this.checked, false) SteamVRTabController.setCameraActive(this.checked, false)
if(this.checked){ if(this.checked){
steamvrCameraBoundsToggle.enabled = true steamvrCameraBoundsToggle.enabled = true
steamvrCameraDashboardToggle.enabled = true steamvrCameraContToggle.enabled = true
steamvrCameraRoomToggle.enabled = true
}else{ }else{
steamvrCameraBoundsToggle.enabled = false steamvrCameraBoundsToggle.enabled = false
steamvrCameraDashboardToggle.enabled = false steamvrCameraContToggle.enabled = false
steamvrCameraRoomToggle.enabled = false
} }
} }
} }
@@ -57,27 +55,21 @@ GroupBox {
MyToggleButton { MyToggleButton {
id: steamvrCameraBoundsToggle id: steamvrCameraBoundsToggle
text: "Camera for Bounds" text: "Show camera on bounds collision"
Layout.preferredWidth: 300 Layout.preferredWidth: 400
onCheckedChanged: { onCheckedChanged: {
SteamVRTabController.setCameraBounds(this.checked, false) SteamVRTabController.setCameraBounds(this.checked, false)
} }
} }
Item{
MyToggleButton { Layout.preferredWidth: 100
id: steamvrCameraDashboardToggle
text: "Camera for Dashboard"
Layout.preferredWidth: 300
onCheckedChanged: {
SteamVRTabController.setCameraDashboard(this.checked, false)
}
} }
MyToggleButton { MyToggleButton {
id: steamvrCameraRoomToggle id: steamvrCameraContToggle
text: "Camera for Room View" text: "Show camera on controller"
onCheckedChanged: { onCheckedChanged: {
SteamVRTabController.setCameraRoom(this.checked, false) SteamVRTabController.setCameraCont(this.checked, false)
} }
} }
} }
@@ -88,11 +80,10 @@ GroupBox {
var c1 = SteamVRTabController.cameraActive var c1 = SteamVRTabController.cameraActive
steamvrCameraActiveToggle.checked = c1 steamvrCameraActiveToggle.checked = c1
steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds
steamvrCameraDashboardToggle.checked = SteamVRTabController.cameraDashboard steamvrCameraContToggle.checked = SteamVRTabController.cameraCont
steamvrCameraRoomToggle.checked = SteamVRTabController.cameraRoom
if(!c1){ if(!c1){
steamvrCameraDashboardToggle.enabled = false;
steamvrCameraBoundsToggle.enabled = false; steamvrCameraBoundsToggle.enabled = false;
steamvrCameraRoomToggle.enabled = false; steamvrCameraRoomToggle.enabled = false;
} }
@@ -104,11 +95,8 @@ GroupBox {
onCameraActiveChanged: { onCameraActiveChanged: {
steamvrCameraActiveToggle.checked = SteamVRTabController.cameraActive steamvrCameraActiveToggle.checked = SteamVRTabController.cameraActive
} }
onCameraRoomChanged: { onCameraContChanged: {
steamvrCameraRoomToggle.checked = SteamVRTabController.cameraRoom steamvrCameraContToggle.checked = SteamVRTabController.cameraCont
}
onCameraDashboardChanged: {
steamvrCameraDashboardToggle.checked = SteamVRTabController.cameraDashboard
} }
onCameraBoundsChanged: { onCameraBoundsChanged: {
steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds steamvrCameraBoundsToggle.checked = SteamVRTabController.cameraBounds
@@ -968,7 +968,7 @@ void MoveCenterTabController::incomingSeatedReset()
if ( !m_selfRequestedSeatedRecenter && !simpleRecenter() ) if ( !m_selfRequestedSeatedRecenter && !simpleRecenter() )
{ {
m_selfRequestedSeatedRecenter = true; m_selfRequestedSeatedRecenter = true;
vr::VRSystem()->ResetSeatedZeroPose(); vr::VRChaperone()->ResetZeroPose( vr::TrackingUniverseSeated );
} }
else else
{ {
@@ -1122,6 +1122,8 @@ void MoveCenterTabController::zeroOffsets()
// offsets // offsets
auto chaperoneState = vr::VRChaperone()->GetCalibrationState(); auto chaperoneState = vr::VRChaperone()->GetCalibrationState();
if ( chaperoneState < vr::ChaperoneCalibrationState_Error if ( chaperoneState < vr::ChaperoneCalibrationState_Error
|| chaperoneState
== vr::ChaperoneCalibrationState_Error_PlayAreaInvalid
|| m_ignoreChaperoneState ) || m_ignoreChaperoneState )
{ {
if ( !m_chaperoneInit ) if ( !m_chaperoneInit )
@@ -1202,7 +1204,7 @@ void MoveCenterTabController::zeroOffsets()
void MoveCenterTabController::sendSeatedRecenter() void MoveCenterTabController::sendSeatedRecenter()
{ {
vr::VRSystem()->ResetSeatedZeroPose(); vr::VRChaperone()->ResetZeroPose( vr::TrackingUniverseSeated );
} }
double MoveCenterTabController::getHmdYawTotal() double MoveCenterTabController::getHmdYawTotal()
+11 -45
View File
@@ -38,8 +38,7 @@ void SteamVRTabController::synchSteamVR()
setDND( dnd() ); setDND( dnd() );
setNoFadeToGrid( noFadeToGrid() ); setNoFadeToGrid( noFadeToGrid() );
setCameraActive( cameraActive() ); setCameraActive( cameraActive() );
setCameraRoom( cameraRoom() ); setCameraCont( cameraCont() );
setCameraDashboard( cameraDashboard() );
setCameraBounds( cameraBounds() ); setCameraBounds( cameraBounds() );
} }
@@ -249,48 +248,33 @@ void SteamVRTabController::setCameraBounds( const bool value,
} }
} }
bool SteamVRTabController::cameraRoom() const bool SteamVRTabController::cameraCont() const
{ {
auto p = ovr_settings_wrapper::getBool( auto p = ovr_settings_wrapper::getBool(
vr::k_pch_Camera_Section, vr::k_pch_Camera_Section, vr::k_pch_Camera_ShowOnController_Bool );
vr::k_pch_Camera_EnableCameraForRoomView_Bool );
if ( p.first == ovr_settings_wrapper::SettingsError::NoError ) if ( p.first == ovr_settings_wrapper::SettingsError::NoError )
{ {
return p.second; return p.second;
} }
return m_cameraRoom; return m_cameraCont;
} }
void SteamVRTabController::setCameraRoom( const bool value, const bool notify ) void SteamVRTabController::setCameraCont( const bool value, const bool notify )
{ {
if ( m_cameraRoom != value ) if ( m_cameraCont != value )
{ {
m_cameraRoom = value; m_cameraCont = value;
ovr_settings_wrapper::setBool( ovr_settings_wrapper::setBool( vr::k_pch_Camera_Section,
vr::k_pch_Camera_Section, vr::k_pch_Camera_ShowOnController_Bool,
vr::k_pch_Camera_EnableCameraForRoomView_Bool, m_cameraCont );
m_cameraRoom );
if ( notify ) if ( notify )
{ {
emit cameraRoomChanged( m_cameraRoom ); emit cameraContChanged( m_cameraCont );
} }
} }
} }
bool SteamVRTabController::cameraDashboard() const
{
auto p = ovr_settings_wrapper::getBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraInDashboard_Bool );
if ( p.first == ovr_settings_wrapper::SettingsError::NoError )
{
return p.second;
}
return m_cameraDashboard;
}
void SteamVRTabController::updateRXTXList() void SteamVRTabController::updateRXTXList()
{ {
emit updateRXTX( true ); emit updateRXTX( true );
@@ -471,24 +455,6 @@ void SteamVRTabController::launchBindingUI()
LOG( ERROR ) << "Input Error: " << error; LOG( ERROR ) << "Input Error: " << error;
} }
} }
void SteamVRTabController::setCameraDashboard( const bool value,
const bool notify )
{
if ( m_cameraDashboard != value )
{
m_cameraDashboard = value;
ovr_settings_wrapper::setBool(
vr::k_pch_Camera_Section,
vr::k_pch_Camera_EnableCameraInDashboard_Bool,
m_cameraDashboard );
if ( notify )
{
emit cameraDashboardChanged( m_cameraDashboard );
}
}
}
void SteamVRTabController::restartSteamVR() void SteamVRTabController::restartSteamVR()
{ {
QString cmd = QString( "cmd.exe /C restartvrserver.bat \"" ) QString cmd = QString( "cmd.exe /C restartvrserver.bat \"" )
+6 -12
View File
@@ -61,10 +61,8 @@ class SteamVRTabController : public QObject
cameraActiveChanged ) cameraActiveChanged )
Q_PROPERTY( bool cameraBounds READ cameraBounds WRITE setCameraBounds NOTIFY Q_PROPERTY( bool cameraBounds READ cameraBounds WRITE setCameraBounds NOTIFY
cameraBoundsChanged ) cameraBoundsChanged )
Q_PROPERTY( bool cameraRoom READ cameraRoom WRITE setCameraRoom NOTIFY Q_PROPERTY( bool cameraCont READ cameraCont WRITE setCameraCont NOTIFY
cameraRoomChanged ) cameraContChanged )
Q_PROPERTY( bool cameraDashboard READ cameraDashboard WRITE
setCameraDashboard NOTIFY cameraDashboardChanged )
Q_PROPERTY( bool perAppBindEnabled READ perAppBindEnabled WRITE Q_PROPERTY( bool perAppBindEnabled READ perAppBindEnabled WRITE
setPerAppBindEnabled NOTIFY perAppBindEnabledChanged ) setPerAppBindEnabled NOTIFY perAppBindEnabledChanged )
@@ -84,8 +82,7 @@ private:
bool m_cameraActive = false; bool m_cameraActive = false;
bool m_cameraBounds = false; bool m_cameraBounds = false;
bool m_cameraRoom = false; bool m_cameraCont = false;
bool m_cameraDashboard = false;
bool m_pathRXTXInit = false; bool m_pathRXTXInit = false;
int m_dongleCountCur = 0; int m_dongleCountCur = 0;
int m_dongleCountMax = 0; int m_dongleCountMax = 0;
@@ -118,8 +115,7 @@ public:
bool cameraActive() const; bool cameraActive() const;
bool cameraBounds() const; bool cameraBounds() const;
bool cameraRoom() const; bool cameraCont() const;
bool cameraDashboard() const;
QNetworkProxy m_proxy; QNetworkProxy m_proxy;
QWebSocket m_webSocket; QWebSocket m_webSocket;
@@ -170,8 +166,7 @@ public slots:
void setCameraActive( bool value, bool notify = true ); void setCameraActive( bool value, bool notify = true );
void setCameraBounds( bool value, bool notify = true ); void setCameraBounds( bool value, bool notify = true );
void setCameraRoom( bool value, bool notify = true ); void setCameraCont( bool value, bool notify = true );
void setCameraDashboard( bool value, bool notify = true );
void setPerAppBindEnabled( bool value, bool notify = true ); void setPerAppBindEnabled( bool value, bool notify = true );
@@ -190,8 +185,7 @@ signals:
void cameraActiveChanged( bool value ); void cameraActiveChanged( bool value );
void cameraBoundsChanged( bool value ); void cameraBoundsChanged( bool value );
void cameraRoomChanged( bool value ); void cameraContChanged( bool value );
void cameraDashboardChanged( bool value );
void pairStatusChanged( QString value ); void pairStatusChanged( QString value );
void updateRXTX( bool value ); void updateRXTX( bool value );
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.libopenvr_api.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
-1
View File
@@ -1 +0,0 @@
Versions/Current/Headers
-1
View File
@@ -1 +0,0 @@
Versions/Current/OpenVR
@@ -1 +0,0 @@
Versions/Current/Resources
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.valvesoftware.OpenVR.framework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>OpenVR</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
@@ -1 +0,0 @@
A
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+310 -105
View File
@@ -12,38 +12,24 @@
// version.h // version.h
namespace vr namespace vr
{ {
static const uint32_t k_nSteamVRVersionMajor = 1; static const uint32_t k_nSteamVRVersionMajor = 1;
static const uint32_t k_nSteamVRVersionMinor = 12; static const uint32_t k_nSteamVRVersionMinor = 26;
static const uint32_t k_nSteamVRVersionBuild = 5; static const uint32_t k_nSteamVRVersionBuild = 7;
} // namespace vr } // namespace vr
// vrtypes.h // public_vrtypes.h
#ifndef _INCLUDE_VRTYPES_H
#define _INCLUDE_VRTYPES_H
// Forward declarations to avoid requiring vulkan.h #ifndef _INCLUDE_CORE_VRTYPES_PUBLIC_H
struct VkDevice_T; #define _INCLUDE_CORE_VRTYPES_PUBLIC_H
struct VkPhysicalDevice_T;
struct VkInstance_T;
struct VkQueue_T;
// Forward declarations to avoid requiring d3d12.h
struct ID3D12Resource;
struct ID3D12CommandQueue;
namespace vr namespace vr
{ {
#pragma pack( push, 8 ) #pragma pack( push, 8 )
/** A handle for a spatial anchor. This handle is only valid during the session it was created in. typedef uint32_t PropertyTypeTag_t;
* Anchors that live beyond one session should be saved by their string descriptors. */
typedef uint32_t SpatialAnchorHandle_t;
typedef void* glSharedTextureHandle_t;
typedef int32_t glInt_t;
typedef uint32_t glUInt_t;
// right-handed system // right-handed system
// +y is up // +y is up
@@ -111,6 +97,13 @@ struct HmdRect2_t
HmdVector2_t vBottomRight; HmdVector2_t vBottomRight;
}; };
/** Holds the transform for a single bone */
struct VRBoneTransform_t
{
HmdVector4_t position;
HmdQuaternionf_t orientation;
};
/** Used to return the post-distortion UVs for each color channel. /** Used to return the post-distortion UVs for each color channel.
* UVs range from 0 to 1 with 0,0 in the upper left corner of the * UVs range from 0 to 1 with 0,0 in the upper left corner of the
* source render target. The 0,0 to 1,1 range covers a single eye. */ * source render target. The 0,0 to 1,1 range covers a single eye. */
@@ -137,9 +130,9 @@ enum ETextureType
TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure
TextureType_DXGISharedHandle = 5, // Handle is a HANDLE DXGI share handle, only supported for Overlay render targets. TextureType_DXGISharedHandle = 5, // Handle is a HANDLE DXGI share handle, only supported for Overlay render targets.
// this texture is used directly by our renderer, so only perform atomic (copyresource or resolve) on it // this texture is used directly by our renderer, so only perform atomic (copyresource or resolve) on it
TextureType_Metal = 6, // Handle is a MTLTexture conforming to the MTLSharedTexture protocol. Textures submitted to IVRCompositor::Submit which TextureType_Metal = 6, // Handle is a MTLTexture conforming to the MTLSharedTexture protocol. Textures submitted to IVRCompositor::Submit which
// are of type MTLTextureType2DArray assume layer 0 is the left eye texture (vr::EVREye::Eye_left), layer 1 is the right // are of type MTLTextureType2DArray assume layer 0 is the left eye texture (vr::EVREye::Eye_left), layer 1 is the right
// eye texture (vr::EVREye::Eye_Right) // eye texture (vr::EVREye::Eye_Right)
}; };
enum EColorSpace enum EColorSpace
@@ -156,6 +149,81 @@ struct Texture_t
EColorSpace eColorSpace; EColorSpace eColorSpace;
}; };
/** Allows the application to control what part of the provided texture will be used in the
* frame buffer. */
struct VRTextureBounds_t
{
float uMin, vMin;
float uMax, vMax;
};
/** Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses). */
struct VRTextureWithPose_t : public Texture_t
{
HmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.
};
struct VRTextureDepthInfo_t
{
void* handle; // See ETextureType definition above
HmdMatrix44_t mProjection;
HmdVector2_t vRange; // 0..1
};
struct VRTextureWithDepth_t : public Texture_t
{
VRTextureDepthInfo_t depth;
};
struct VRTextureWithPoseAndDepth_t : public VRTextureWithPose_t
{
VRTextureDepthInfo_t depth;
};
// 64-bit types that are part of public structures
// that are replicated in shared memory.
#if defined(__linux__) || defined(__APPLE__)
typedef uint64_t vrshared_uint64_t __attribute__ ((aligned(8)));
typedef double vrshared_double __attribute__ ((aligned(8)));
#else
typedef uint64_t vrshared_uint64_t;
typedef double vrshared_double;
#endif
#pragma pack( pop )
} // namespace vr
#endif
// vrtypes.h
#ifndef _INCLUDE_VRTYPES_H
#define _INCLUDE_VRTYPES_H
// Forward declarations to avoid requiring vulkan.h
struct VkDevice_T;
struct VkPhysicalDevice_T;
struct VkInstance_T;
struct VkQueue_T;
// Forward declarations to avoid requiring d3d12.h
struct ID3D12Resource;
struct ID3D12CommandQueue;
namespace vr
{
#pragma pack( push, 8 )
/** A handle for a spatial anchor. This handle is only valid during the session it was created in.
* Anchors that live beyond one session should be saved by their string descriptors. */
typedef uint32_t SpatialAnchorHandle_t;
typedef void* glSharedTextureHandle_t;
typedef int32_t glInt_t;
typedef uint32_t glUInt_t;
// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). // Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource).
typedef uint64_t SharedTextureHandle_t; typedef uint64_t SharedTextureHandle_t;
#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) #define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0)
@@ -362,6 +430,8 @@ enum ETrackedDeviceProperty
Prop_ManufacturerSerialNumber_String = 1049, Prop_ManufacturerSerialNumber_String = 1049,
Prop_ComputedSerialNumber_String = 1050, Prop_ComputedSerialNumber_String = 1050,
Prop_EstimatedDeviceFirstUseTime_Int32 = 1051, Prop_EstimatedDeviceFirstUseTime_Int32 = 1051,
Prop_DevicePowerUsage_Float = 1052,
Prop_IgnoreMotionForStandby_Bool = 1053,
// Properties that are unique to TrackedDeviceClass_HMD // Properties that are unique to TrackedDeviceClass_HMD
Prop_ReportsTimeSinceVSync_Bool = 2000, Prop_ReportsTimeSinceVSync_Bool = 2000,
@@ -441,7 +511,7 @@ enum ETrackedDeviceProperty
Prop_DriverProvidedChaperoneVisibility_Bool = 2076, Prop_DriverProvidedChaperoneVisibility_Bool = 2076,
Prop_HmdColumnCorrectionSettingPrefix_String = 2077, Prop_HmdColumnCorrectionSettingPrefix_String = 2077,
Prop_CameraSupportsCompatibilityModes_Bool = 2078, Prop_CameraSupportsCompatibilityModes_Bool = 2078,
Prop_SupportsRoomViewDepthProjection_Bool = 2079,
Prop_DisplayAvailableFrameRates_Float_Array = 2080, // populated by compositor from actual EDID list when available from GPU driver Prop_DisplayAvailableFrameRates_Float_Array = 2080, // populated by compositor from actual EDID list when available from GPU driver
Prop_DisplaySupportsMultipleFramerates_Bool = 2081, // if this is true but Prop_DisplayAvailableFrameRates_Float_Array is empty, explain to user Prop_DisplaySupportsMultipleFramerates_Bool = 2081, // if this is true but Prop_DisplayAvailableFrameRates_Float_Array is empty, explain to user
Prop_DisplayColorMultLeft_Vector3 = 2082, Prop_DisplayColorMultLeft_Vector3 = 2082,
@@ -450,11 +520,27 @@ enum ETrackedDeviceProperty
Prop_DisplaySupportsAnalogGain_Bool = 2085, Prop_DisplaySupportsAnalogGain_Bool = 2085,
Prop_DisplayMinAnalogGain_Float = 2086, Prop_DisplayMinAnalogGain_Float = 2086,
Prop_DisplayMaxAnalogGain_Float = 2087, Prop_DisplayMaxAnalogGain_Float = 2087,
Prop_CameraExposureTime_Float = 2088,
Prop_CameraGlobalGain_Float = 2089,
// Prop_DashboardLayoutPathName_String = 2090, // DELETED // Prop_DashboardLayoutPathName_String = 2090, // DELETED
Prop_DashboardScale_Float = 2091, Prop_DashboardScale_Float = 2091,
Prop_PeerButtonInfo_String = 2092,
Prop_Hmd_SupportsHDR10_Bool = 2093,
Prop_Hmd_EnableParallelRenderCameras_Bool = 2094,
Prop_DriverProvidedChaperoneJson_String = 2095, // higher priority than Prop_DriverProvidedChaperonePath_String
Prop_IpdUIRangeMinMeters_Float = 2100, Prop_IpdUIRangeMinMeters_Float = 2100,
Prop_IpdUIRangeMaxMeters_Float = 2101, Prop_IpdUIRangeMaxMeters_Float = 2101,
Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102,
Prop_Hmd_SupportsMicMonitoring_Bool = 2103,
Prop_Hmd_SupportsDisplayPortTrainingMode_Bool = 2104,
Prop_Hmd_SupportsRoomViewDirect_Bool = 2105,
Prop_Hmd_SupportsAppThrottling_Bool = 2106,
Prop_Hmd_SupportsGpuBusMonitoring_Bool = 2107,
Prop_DSCVersion_Int32 = 2110,
Prop_DSCSliceCount_Int32 = 2111,
Prop_DSCBPPx16_Int32 = 2112,
// Driver requested mura correction properties // Driver requested mura correction properties
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200, Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
@@ -469,7 +555,8 @@ enum ETrackedDeviceProperty
Prop_Audio_DefaultPlaybackDeviceId_String = 2300, Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
Prop_Audio_DefaultRecordingDeviceId_String = 2301, Prop_Audio_DefaultRecordingDeviceId_String = 2301,
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302, Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
// Properties that are unique to TrackedDeviceClass_Controller // Properties that are unique to TrackedDeviceClass_Controller
Prop_AttachedDeviceId_String = 3000, Prop_AttachedDeviceId_String = 3000,
@@ -575,37 +662,6 @@ static const VRActionSetHandle_t k_ulInvalidActionSetHandle = 0;
static const VRInputValueHandle_t k_ulInvalidInputValueHandle = 0; static const VRInputValueHandle_t k_ulInvalidInputValueHandle = 0;
/** Allows the application to control what part of the provided texture will be used in the
* frame buffer. */
struct VRTextureBounds_t
{
float uMin, vMin;
float uMax, vMax;
};
/** Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses). */
struct VRTextureWithPose_t : public Texture_t
{
HmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.
};
struct VRTextureDepthInfo_t
{
void* handle; // See ETextureType definition above
HmdMatrix44_t mProjection;
HmdVector2_t vRange; // 0..1
};
struct VRTextureWithDepth_t : public Texture_t
{
VRTextureDepthInfo_t depth;
};
struct VRTextureWithPoseAndDepth_t : public VRTextureWithPose_t
{
VRTextureDepthInfo_t depth;
};
/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ /** Allows the application to control how scene textures are used by the compositor when calling Submit. */
enum EVRSubmitFlags enum EVRSubmitFlags
{ {
@@ -637,6 +693,14 @@ enum EVRSubmitFlags
// Set to indicate that pTexture->handle is a contains VRVulkanTextureArrayData_t // Set to indicate that pTexture->handle is a contains VRVulkanTextureArrayData_t
Submit_VulkanTextureWithArrayData = 0x40, Submit_VulkanTextureWithArrayData = 0x40,
// If the texture pointer passed in is an OpenGL Array texture, set this flag
Submit_GlArrayTexture = 0x80,
// Do not use
Submit_Reserved2 = 0x08000,
Submit_Reserved3 = 0x10000,
}; };
/** Data required for passing Vulkan textures to IVRCompositor::Submit. /** Data required for passing Vulkan textures to IVRCompositor::Submit.
@@ -737,7 +801,7 @@ enum EVREventType
// VREvent_SceneFocusLost = 402, // data is process // VREvent_SceneFocusLost = 402, // data is process
// VREvent_SceneFocusGained = 403, // data is process // VREvent_SceneFocusGained = 403, // data is process
VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor)
VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene // VREvent_SceneFocusChanged = 405, // data is process - This is defunct and will not be called.
VREvent_InputFocusChanged = 406, // data is process VREvent_InputFocusChanged = 406, // data is process
// VREvent_SceneApplicationSecondaryRenderingStarted = 407, // VREvent_SceneApplicationSecondaryRenderingStarted = 407,
VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process
@@ -748,6 +812,8 @@ enum EVREventType
VREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState(); VREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState();
VREvent_SceneAppPipeDisconnected = 413, // data is process - Called when the scene app's pipe has been closed.
VREvent_ConsoleOpened = 420, VREvent_ConsoleOpened = 420,
VREvent_ConsoleClosed = 421, VREvent_ConsoleClosed = 421,
@@ -784,6 +850,13 @@ enum EVREventType
VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled
VREvent_ShowUI = 528, // data is showUi VREvent_ShowUI = 528, // data is showUi
VREvent_ShowDevTools = 529, // data is showDevTools VREvent_ShowDevTools = 529, // data is showDevTools
VREvent_DesktopViewUpdating = 530,
VREvent_DesktopViewReady = 531,
VREvent_StartDashboard = 532,
VREvent_ElevatePrism = 533,
VREvent_OverlayClosed = 534,
VREvent_Notification_Shown = 600, VREvent_Notification_Shown = 600,
VREvent_Notification_Hidden = 601, VREvent_Notification_Hidden = 601,
@@ -796,6 +869,7 @@ enum EVREventType
VREvent_QuitAcknowledged = 703, // data is process VREvent_QuitAcknowledged = 703, // data is process
VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down
VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR
VREvent_InvalidateSwapTextureSets = 706,
VREvent_ChaperoneDataHasChanged = 800, // this will never happen with the new chaperone system VREvent_ChaperoneDataHasChanged = 800, // this will never happen with the new chaperone system
VREvent_ChaperoneUniverseHasChanged = 801, VREvent_ChaperoneUniverseHasChanged = 801,
@@ -805,6 +879,7 @@ enum EVREventType
VREvent_ChaperoneFlushCache = 805, // Sent when the process needs to reload any cached data it retrieved from VRChaperone() VREvent_ChaperoneFlushCache = 805, // Sent when the process needs to reload any cached data it retrieved from VRChaperone()
VREvent_ChaperoneRoomSetupStarting = 806, // Triggered by CVRChaperoneClient::RoomSetupStarting VREvent_ChaperoneRoomSetupStarting = 806, // Triggered by CVRChaperoneClient::RoomSetupStarting
VREvent_ChaperoneRoomSetupFinished = 807, // Triggered by CVRChaperoneClient::CommitWorkingCopy VREvent_ChaperoneRoomSetupFinished = 807, // Triggered by CVRChaperoneClient::CommitWorkingCopy
VREvent_StandingZeroPoseReset = 808,
VREvent_AudioSettingsHaveChanged = 820, VREvent_AudioSettingsHaveChanged = 820,
@@ -865,6 +940,7 @@ enum EVREventType
VREvent_Compositor_OutOfVideoMemory = 1417, VREvent_Compositor_OutOfVideoMemory = 1417,
VREvent_Compositor_DisplayModeNotSupported = 1418, // k_pch_SteamVR_PreferredRefreshRate VREvent_Compositor_DisplayModeNotSupported = 1418, // k_pch_SteamVR_PreferredRefreshRate
VREvent_Compositor_StageOverrideReady = 1419, VREvent_Compositor_StageOverrideReady = 1419,
VREvent_Compositor_RequestDisconnectReconnect = 1420,
VREvent_TrackedCamera_StartVideoStream = 1500, VREvent_TrackedCamera_StartVideoStream = 1500,
VREvent_TrackedCamera_StopVideoStream = 1501, VREvent_TrackedCamera_StopVideoStream = 1501,
@@ -951,6 +1027,9 @@ enum EVRButtonId
k_EButton_IndexController_B = k_EButton_ApplicationMenu, k_EButton_IndexController_B = k_EButton_ApplicationMenu,
k_EButton_IndexController_JoyStick = k_EButton_Axis3, k_EButton_IndexController_JoyStick = k_EButton_Axis3,
k_EButton_Reserved0 = 50,
k_EButton_Reserved1 = 51,
k_EButton_Max = 64 k_EButton_Max = 64
}; };
@@ -1031,6 +1110,7 @@ struct VREvent_Overlay_t
{ {
uint64_t overlayHandle; uint64_t overlayHandle;
uint64_t devicePath; uint64_t devicePath;
uint64_t memoryBlockId;
}; };
@@ -1443,6 +1523,7 @@ enum EVROverlayError
VROverlayError_TextureAlreadyLocked = 31, VROverlayError_TextureAlreadyLocked = 31,
VROverlayError_TextureLockCapacityReached = 32, VROverlayError_TextureLockCapacityReached = 32,
VROverlayError_TextureNotLocked = 33, VROverlayError_TextureNotLocked = 33,
VROverlayError_TimedOut = 34,
}; };
/** enum values to pass in to VR_Init to identify whether the application will /** enum values to pass in to VR_Init to identify whether the application will
@@ -1460,11 +1541,35 @@ enum EVRApplicationType
VRApplication_SteamWatchdog = 6,// Reserved for Steam VRApplication_SteamWatchdog = 6,// Reserved for Steam
VRApplication_Bootstrapper = 7, // reserved for vrstartup VRApplication_Bootstrapper = 7, // reserved for vrstartup
VRApplication_WebHelper = 8, // reserved for vrwebhelper VRApplication_WebHelper = 8, // reserved for vrwebhelper
VRApplication_OpenXRInstance = 9, // reserved for openxr (created instance, but not session yet)
VRApplication_OpenXRScene = 10, // reserved for openxr (started session)
VRApplication_OpenXROverlay = 11, // reserved for openxr (started overlay session)
VRApplication_Prism = 12, // reserved for the vrprismhost process
VRApplication_RoomView = 13, // reserved for the RoomView process
VRApplication_Max VRApplication_Max
}; };
/** returns true if the specified application type is one of the
* OpenXR types */
inline bool IsOpenXRAppType( EVRApplicationType eType )
{
return eType == VRApplication_OpenXRInstance
|| eType == VRApplication_OpenXRScene
|| eType == VRApplication_OpenXROverlay;
}
/** returns true if the specified application type submits eye buffers */
inline bool BAppTypeSubmitsEyeBuffers( EVRApplicationType eType )
{
return eType == VRApplication_Scene
|| eType == VRApplication_OpenXRScene
|| eType == VRApplication_RoomView;
}
/** error codes for firmware */ /** error codes for firmware */
enum EVRFirmwareError enum EVRFirmwareError
{ {
@@ -1519,14 +1624,6 @@ enum EVRSkeletalTrackingLevel
}; };
/** Holds the transform for a single bone */
struct VRBoneTransform_t
{
HmdVector4_t position;
HmdQuaternionf_t orientation;
};
/** Type used for referring to bones by their index */ /** Type used for referring to bones by their index */
typedef int32_t BoneIndex_t; typedef int32_t BoneIndex_t;
const BoneIndex_t k_unInvalidBoneIndex = -1; const BoneIndex_t k_unInvalidBoneIndex = -1;
@@ -1587,6 +1684,27 @@ enum EVRInitError
VRInitError_Init_FailedForVrMonitor = 144, VRInitError_Init_FailedForVrMonitor = 144,
VRInitError_Init_PropertyManagerInitFailed = 145, VRInitError_Init_PropertyManagerInitFailed = 145,
VRInitError_Init_WebServerFailed = 146, VRInitError_Init_WebServerFailed = 146,
VRInitError_Init_IllegalTypeTransition = 147,
VRInitError_Init_MismatchedRuntimes = 148,
VRInitError_Init_InvalidProcessId = 149,
VRInitError_Init_VRServiceStartupFailed = 150,
VRInitError_Init_PrismNeedsNewDrivers = 151,
VRInitError_Init_PrismStartupTimedOut = 152,
VRInitError_Init_CouldNotStartPrism = 153,
VRInitError_Init_PrismClientInitFailed = 154,
VRInitError_Init_PrismClientStartFailed = 155,
VRInitError_Init_PrismExitedUnexpectedly = 156,
VRInitError_Init_BadLuid = 157,
VRInitError_Init_NoServerForAppContainer = 158,
VRInitError_Init_DuplicateBootstrapper = 159,
VRInitError_Init_VRDashboardServicePending = 160,
VRInitError_Init_VRDashboardServiceTimeout = 161,
VRInitError_Init_VRDashboardServiceStopped = 162,
VRInitError_Init_VRDashboardAlreadyStarted = 163,
VRInitError_Init_VRDashboardCopyFailed = 164,
VRInitError_Init_VRDashboardTokenFailure = 165,
VRInitError_Init_VRDashboardEnvironmentFailure = 166,
VRInitError_Init_VRDashboardPathFailure = 167,
VRInitError_Driver_Failed = 200, VRInitError_Driver_Failed = 200,
VRInitError_Driver_Unknown = 201, VRInitError_Driver_Unknown = 201,
@@ -1602,6 +1720,9 @@ enum EVRInitError
VRInitError_Driver_HmdDriverIdOutOfBounds = 211, VRInitError_Driver_HmdDriverIdOutOfBounds = 211,
VRInitError_Driver_HmdDisplayMirrored = 212, VRInitError_Driver_HmdDisplayMirrored = 212,
VRInitError_Driver_HmdDisplayNotFoundLaptop = 213, VRInitError_Driver_HmdDisplayNotFoundLaptop = 213,
VRInitError_Driver_PeerDriverNotInstalled = 214,
VRInitError_Driver_WirelessHmdNotConnected = 215,
// Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE // Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE
VRInitError_IPC_ServerInitFailed = 300, VRInitError_IPC_ServerInitFailed = 300,
@@ -1707,9 +1828,15 @@ enum EVRInitError
VRInitError_Compositor_CreateOverlayInvalidCall = 488, VRInitError_Compositor_CreateOverlayInvalidCall = 488,
VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489, VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489,
VRInitError_Compositor_FailedToCreateMailbox = 490, VRInitError_Compositor_FailedToCreateMailbox = 490,
VRInitError_Compositor_WindowInterfaceIsNull = 491,
VRInitError_Compositor_SystemLayerCreateInstance = 492,
VRInitError_Compositor_SystemLayerCreateSession = 493,
VRInitError_Compositor_CreateInverseDistortUVs = 494,
VRInitError_Compositor_CreateBackbufferDepth = 495,
VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
VRInitError_VendorSpecific_WindowsNotInDevMode = 1001, VRInitError_VendorSpecific_WindowsNotInDevMode = 1001,
VRInitError_VendorSpecific_OculusLinkNotEnabled = 1002,
VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
@@ -1725,6 +1852,7 @@ enum EVRInitError
VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, VRInitError_VendorSpecific_HmdFound_UserDataError = 1112,
VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,
VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114, VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114,
VRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1 = 1115,
VRInitError_Steam_SteamInstallationNotFound = 2000, VRInitError_Steam_SteamInstallationNotFound = 2000,
@@ -1830,18 +1958,18 @@ const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the
const uint32_t VRCompositor_ReprojectionMotion = 0x08; // This flag indicates whether or not motion smoothing was triggered for this frame const uint32_t VRCompositor_ReprojectionMotion = 0x08; // This flag indicates whether or not motion smoothing was triggered for this frame
const uint32_t VRCompositor_PredictionMask = 0x30; // The runtime may predict more than one frame (up to four) ahead if const uint32_t VRCompositor_PredictionMask = 0xF0; // The runtime may predict more than one frame (up to four) ahead if
// it detects the application is taking too long to render. These two // it detects the application is taking too long to render. These two
// bits will contain the count of additional frames (normally zero). // bits will contain the count of additional frames (normally zero).
// Use the VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES macro to read from // Use the VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES macro to read from
// the latest frame timing entry. // the latest frame timing entry.
const uint32_t VRCompositor_ThrottleMask = 0xC0; // Number of frames the compositor is throttling the application. const uint32_t VRCompositor_ThrottleMask = 0xF00; // Number of frames the compositor is throttling the application.
// Use the VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES macro to read from // Use the VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES macro to read from
// the latest frame timing entry. // the latest frame timing entry.
#define VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_PredictionMask ) >> 4 ) #define VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_PredictionMask ) >> 4 )
#define VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_ThrottleMask ) >> 6 ) #define VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_ThrottleMask ) >> 8 )
/** Provides a single frame's timing information to the app */ /** Provides a single frame's timing information to the app */
struct Compositor_FrameTiming struct Compositor_FrameTiming
@@ -1977,11 +2105,10 @@ struct ImuSample_t
#endif #endif
} // namespace vr } // namespace vr
#endif // _INCLUDE_VRTYPES_H #endif // _INCLUDE_VRTYPES_H
// vrannotation.h // vrannotation.h
#ifdef API_GEN #ifdef API_GEN
# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) # define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR )))
#else #else
@@ -2001,6 +2128,7 @@ struct ImuSample_t
#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) #define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" )
// ivrsystem.h // ivrsystem.h
namespace vr namespace vr
{ {
@@ -2109,17 +2237,6 @@ public:
*/ */
virtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; virtual void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0;
/** Sets the zero pose for the seated tracker coordinate system to the current position and yaw of the HMD. After
* ResetSeatedZeroPose all GetDeviceToAbsoluteTrackingPose calls that pass TrackingUniverseSeated as the origin
* will be relative to this new zero pose. The new zero coordinate system will not change the fact that the Y axis
* is up in the real world, so the next pose returned from GetDeviceToAbsoluteTrackingPose after a call to
* ResetSeatedZeroPose may not be exactly an identity matrix.
*
* NOTE: This function overrides the user's previously saved seated zero pose and should only be called as the result of a user action.
* Users are also able to set their seated zero pose via the OpenVR Dashboard.
**/
virtual void ResetSeatedZeroPose() = 0;
/** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows /** Returns the transform from the seated zero pose to the standing absolute tracking system. This allows
* applications to represent the seated origin to used or transform object positions from one coordinate * applications to represent the seated origin to used or transform object positions from one coordinate
* system to the other. * system to the other.
@@ -2307,12 +2424,13 @@ public:
}; };
static const char * const IVRSystem_Version = "IVRSystem_021"; static const char * const IVRSystem_Version = "IVRSystem_022";
} }
// ivrapplications.h // ivrapplications.h
namespace vr namespace vr
{ {
@@ -2342,6 +2460,8 @@ namespace vr
VRApplicationError_PropertyNotSet = 201, // The requested property was not set VRApplicationError_PropertyNotSet = 201, // The requested property was not set
VRApplicationError_UnknownProperty = 202, VRApplicationError_UnknownProperty = 202,
VRApplicationError_InvalidParameter = 203, VRApplicationError_InvalidParameter = 203,
VRApplicationError_NotImplemented = 300, // Fcn is not implemented in current interface
}; };
/** The maximum length of an application key */ /** The maximum length of an application key */
@@ -2524,6 +2644,7 @@ namespace vr
} // namespace vr } // namespace vr
// ivrsettings.h // ivrsettings.h
#include <string> #include <string>
namespace vr namespace vr
@@ -2662,6 +2783,7 @@ namespace vr
static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
static const char * const k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor"; static const char * const k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage";
static const char * const k_pch_SteamVR_DrawTrackingReferences_Bool = "drawTrackingReferences";
static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
@@ -2672,6 +2794,10 @@ namespace vr
static const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution"; static const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
static const char * const k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing"; static const char * const k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride"; static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
static const char * const k_pch_SteamVR_FramesToThrottle_Int32 = "framesToThrottle";
static const char * const k_pch_SteamVR_AdditionalFramesToPredict_Int32 = "additionalFramesToPredict";
static const char * const k_pch_SteamVR_WorldScale_Float = "worldScale";
static const char * const k_pch_SteamVR_FovScale_Int32 = "fovScale";
static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync"; static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView"; static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
@@ -2698,7 +2824,6 @@ namespace vr
static const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor"; static const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor";
static const char * const k_pch_SteamVR_DebugInputBinding = "debugInputBinding"; static const char * const k_pch_SteamVR_DebugInputBinding = "debugInputBinding";
static const char * const k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid"; static const char * const k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid";
static const char * const k_pch_SteamVR_RenderCameraMode = "renderCameraMode";
static const char * const k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling"; static const char * const k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling";
static const char * const k_pch_SteamVR_EnableSafeMode = "enableSafeMode"; static const char * const k_pch_SteamVR_EnableSafeMode = "enableSafeMode";
static const char * const k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate"; static const char * const k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate";
@@ -2714,6 +2839,9 @@ namespace vr
static const char * const k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2"; static const char * const k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2";
static const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption"; static const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption";
static const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches"; static const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches";
static const char * const k_pch_SteamVR_HDCPLegacyCompatibility_Bool = "hdcp14legacyCompatibility";
static const char * const k_pch_SteamVR_DisplayPortTrainingMode_Int = "displayPortTrainingMode";
static const char * const k_pch_SteamVR_UsePrism_Bool = "usePrism";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// direct mode keys // direct mode keys
@@ -2789,6 +2917,7 @@ namespace vr
static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
static const char * const k_pch_Perf_TestData_Float = "perfTestData"; static const char * const k_pch_Perf_TestData_Float = "perfTestData";
static const char * const k_pch_Perf_GPUProfiling_Bool = "GPUProfiling"; static const char * const k_pch_Perf_GPUProfiling_Bool = "GPUProfiling";
static const char * const k_pch_Perf_GpuBusMonitoring_Bool = "gpuBusMonitoring";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// collision bounds keys // collision bounds keys
@@ -2809,15 +2938,15 @@ namespace vr
// camera keys // camera keys
static const char * const k_pch_Camera_Section = "camera"; static const char * const k_pch_Camera_Section = "camera";
static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera";
static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; static const char * const k_pch_Camera_ShowOnController_Bool = "showOnController";
static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; static const char * const k_pch_Camera_RoomView_Int32 = "roomView";
static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength";
static const char * const k_pch_Camera_RoomViewMode_Int32 = "cameraRoomViewMode"; static const char * const k_pch_Camera_RoomViewStyle_Int32 = "roomViewStyle";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// audio keys // audio keys
@@ -2838,6 +2967,8 @@ namespace vr
static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume"; static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId"; static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
static const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
static const char * const k_pch_audio_MuteMicMonitor_Bool = "muteMicMonitor";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// power management keys // power management keys
@@ -2857,6 +2988,9 @@ namespace vr
static const char * const k_pch_Dashboard_Position = "position"; static const char * const k_pch_Dashboard_Position = "position";
static const char * const k_pch_Dashboard_DesktopScale = "desktopScale"; static const char * const k_pch_Dashboard_DesktopScale = "desktopScale";
static const char * const k_pch_Dashboard_DashboardScale = "dashboardScale"; static const char * const k_pch_Dashboard_DashboardScale = "dashboardScale";
static const char * const k_pch_Dashboard_UseStandaloneSystemLayer = "standaloneSystemLayer";
static const char * const k_pch_Dashboard_StickyDashboard = "stickyDashboard";
static const char * const k_pch_Dashboard_AllowSteamOverlays_Bool = "allowSteamOverlays";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// model skin keys // model skin keys
@@ -2887,7 +3021,8 @@ namespace vr
// per-app keys - the section name for these is the app key itself. Some of these are prefixed by the controller type // per-app keys - the section name for these is the app key itself. Some of these are prefixed by the controller type
static const char* const k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL"; static const char* const k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL";
static const char* const k_pch_App_BindingLegacyAPISuffix_String = "_legacy"; static const char* const k_pch_App_BindingLegacyAPISuffix_String = "_legacy";
static const char* const k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput"; static const char *const k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput";
static const char *const k_pch_App_BindingOpenXRAPISuffix_String = "_openxr";
static const char* const k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL"; static const char* const k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL";
static const char* const k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL"; static const char* const k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL";
static const char* const k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave"; static const char* const k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave";
@@ -2926,6 +3061,7 @@ namespace vr
} // namespace vr } // namespace vr
// ivrchaperone.h // ivrchaperone.h
namespace vr namespace vr
{ {
@@ -2988,15 +3124,27 @@ public:
/** Force the bounds to show, mostly for utilities **/ /** Force the bounds to show, mostly for utilities **/
virtual void ForceBoundsVisible( bool bForce ) = 0; virtual void ForceBoundsVisible( bool bForce ) = 0;
/** Sets the zero pose for the given tracker coordinate system to the current position and yaw of the HMD. After
* ResetZeroPose all GetDeviceToAbsoluteTrackingPose calls as the origin will be relative to this new zero pose.
* The new zero coordinate system will not change the fact that the Y axis is up in the real world, so the next
* pose returned from GetDeviceToAbsoluteTrackingPose after a call to ResetZeroPose may not be exactly an
* identity matrix.
*
* NOTE: This function overrides the user's previously saved zero pose and should only be called as the result of a user action.
* Users are also able to set their zero pose via the OpenVR Dashboard.
**/
virtual void ResetZeroPose( ETrackingUniverseOrigin eTrackingUniverseOrigin ) = 0;
}; };
static const char * const IVRChaperone_Version = "IVRChaperone_003"; static const char * const IVRChaperone_Version = "IVRChaperone_004";
#pragma pack( pop ) #pragma pack( pop )
} }
// ivrchaperonesetup.h // ivrchaperonesetup.h
namespace vr namespace vr
{ {
@@ -3095,6 +3243,7 @@ static const char * const IVRChaperoneSetup_Version = "IVRChaperoneSetup_006";
} }
// ivrcompositor.h // ivrcompositor.h
namespace vr namespace vr
{ {
@@ -3154,6 +3303,16 @@ struct Compositor_CumulativeStats
uint32_t m_nNumFramePresentsTimedOut; uint32_t m_nNumFramePresentsTimedOut;
uint32_t m_nNumDroppedFramesTimedOut; uint32_t m_nNumDroppedFramesTimedOut;
uint32_t m_nNumReprojectedFramesTimedOut; uint32_t m_nNumReprojectedFramesTimedOut;
/** For items in this section, divide all the values by m_nNumFrameSubmits. */
uint32_t m_nNumFrameSubmits;
vrshared_double m_flSumCompositorCPUTimeMS;
vrshared_double m_flSumCompositorGPUTimeMS;
vrshared_double m_flSumTargetFrameTimes;
vrshared_double m_flSumApplicationCPUTimeMS;
vrshared_double m_flSumApplicationGPUTimeMS;
uint32_t m_nNumFramesWithDepth; // total frames submitted with depth by the current application
}; };
struct Compositor_StageRenderSettings struct Compositor_StageRenderSettings
@@ -3286,7 +3445,7 @@ public:
virtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0; virtual HmdColor_t GetCurrentFadeColor( bool bBackground = false ) = 0;
/** Fading the Grid in or out in fSeconds */ /** Fading the Grid in or out in fSeconds */
virtual void FadeGrid( float fSeconds, bool bFadeIn ) = 0; virtual void FadeGrid( float fSeconds, bool bFadeGridIn ) = 0;
/** Get current alpha value of grid. */ /** Get current alpha value of grid. */
virtual float GetCurrentGridAlpha() = 0; virtual float GetCurrentGridAlpha() = 0;
@@ -3306,8 +3465,8 @@ public:
/** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */ /** Pushes the compositor window to the back. This is useful for allowing other applications to draw directly to the HMD. */
virtual void CompositorGoToBack() = 0; virtual void CompositorGoToBack() = 0;
/** Tells the compositor process to clean up and exit. You do not need to call this function at shutdown. Under normal /** DEPRECATED: Tells the compositor process to clean up and exit. You do not need to call this function at shutdown.
* circumstances the compositor will manage its own life cycle based on what applications are running. */ * Under normal circumstances the compositor will manage its own life cycle based on what applications are running. */
virtual void CompositorQuit() = 0; virtual void CompositorQuit() = 0;
/** Return whether the compositor is fullscreen */ /** Return whether the compositor is fullscreen */
@@ -3429,13 +3588,14 @@ public:
virtual EVRCompositorError GetPosesForFrame( uint32_t unPosePredictionID, VR_ARRAY_COUNT( unPoseArrayCount ) TrackedDevicePose_t* pPoseArray, uint32_t unPoseArrayCount ) = 0; virtual EVRCompositorError GetPosesForFrame( uint32_t unPosePredictionID, VR_ARRAY_COUNT( unPoseArrayCount ) TrackedDevicePose_t* pPoseArray, uint32_t unPoseArrayCount ) = 0;
}; };
static const char * const IVRCompositor_Version = "IVRCompositor_026"; static const char * const IVRCompositor_Version = "IVRCompositor_027";
} // namespace vr } // namespace vr
// ivrheadsetview.h // ivrheadsetview.h
namespace vr namespace vr
{ {
enum HeadsetViewMode_t enum HeadsetViewMode_t
@@ -3493,6 +3653,7 @@ namespace vr
// ivrnotifications.h // ivrnotifications.h
namespace vr namespace vr
{ {
@@ -3559,8 +3720,7 @@ typedef uint32_t VRNotificationId;
#pragma pack( pop ) #pragma pack( pop )
/** Allows notification sources to interact with the VR system /** Allows notification sources to interact with the VR system. */
This current interface is not yet implemented. Do not use yet. */
class IVRNotifications class IVRNotifications
{ {
public: public:
@@ -3582,6 +3742,7 @@ static const char * const IVRNotifications_Version = "IVRNotifications_002";
// ivroverlay.h // ivroverlay.h
namespace vr namespace vr
{ {
@@ -3611,12 +3772,14 @@ namespace vr
VROverlayTransform_Invalid = -1, VROverlayTransform_Invalid = -1,
VROverlayTransform_Absolute = 0, VROverlayTransform_Absolute = 0,
VROverlayTransform_TrackedDeviceRelative = 1, VROverlayTransform_TrackedDeviceRelative = 1,
VROverlayTransform_SystemOverlay = 2, //VROverlayTransform_SystemOverlay = 2, // Deleted from the SDK.
VROverlayTransform_TrackedComponent = 3, VROverlayTransform_TrackedComponent = 3,
VROverlayTransform_Cursor = 4, VROverlayTransform_Cursor = 4,
VROverlayTransform_DashboardTab = 5, VROverlayTransform_DashboardTab = 5,
VROverlayTransform_DashboardThumb = 6, VROverlayTransform_DashboardThumb = 6,
VROverlayTransform_Mountable = 7, VROverlayTransform_Mountable = 7,
VROverlayTransform_Projection = 8,
VROverlayTransform_Subview = 9,
}; };
/** Overlay control settings */ /** Overlay control settings */
@@ -3675,6 +3838,12 @@ namespace vr
// If this is set, alpha composition assumes the texture is pre-multiplied // If this is set, alpha composition assumes the texture is pre-multiplied
VROverlayFlags_IsPremultiplied = 1 << 21, VROverlayFlags_IsPremultiplied = 1 << 21,
// If this is set, the alpha values of the overlay texture will be ignored
VROverlayFlags_IgnoreTextureAlpha = 1 << 22,
// Do not use
VROverlayFlags_Reserved = 1 << 26,
}; };
enum VRMessageOverlayResponse enum VRMessageOverlayResponse
@@ -3758,6 +3927,15 @@ namespace vr
KeyboardFlag_Modal = 2 << 0, // makes the keyboard take all focus and dismiss when clicking off the panel KeyboardFlag_Modal = 2 << 0, // makes the keyboard take all focus and dismiss when clicking off the panel
}; };
/** Defines the project used in an overlay that is using SetOverlayTransformProjection */
struct VROverlayProjection_t
{
/** Tangent of the sides of the frustum */
float fLeft;
float fRight;
float fTop;
float fBottom;
};
class IVROverlay class IVROverlay
{ {
@@ -3842,6 +4020,9 @@ namespace vr
* Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same * Within a category overlays are rendered lowest sort order to highest sort order. Overlays with the same
* sort order are rendered back to front base on distance from the HMD. * sort order are rendered back to front base on distance from the HMD.
* *
* Subview overlays are always drawn immediately on top of their parent overlay, and the sort order is
* only relative to their peer subviews for that overlay.
*
* Sort order defaults to 0. */ * Sort order defaults to 0. */
virtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0; virtual EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) = 0;
@@ -3861,6 +4042,12 @@ namespace vr
/** Returns the curvature of the overlay as a percentage from (0..1] where 1 is a fully closed cylinder. */ /** Returns the curvature of the overlay as a percentage from (0..1] where 1 is a fully closed cylinder. */
virtual EVROverlayError GetOverlayCurvature( VROverlayHandle_t ulOverlayHandle, float *pfCurvature ) = 0; virtual EVROverlayError GetOverlayCurvature( VROverlayHandle_t ulOverlayHandle, float *pfCurvature ) = 0;
/** Sets the pitch angle (in radians) of the overlay before curvature is applied -- to form a fan or disk. */
virtual EVROverlayError SetOverlayPreCurvePitch( VROverlayHandle_t ulOverlayHandle, float fRadians ) = 0;
/** Returns the overlay's set pre-curve pitch angle (in radians). */
virtual EVROverlayError GetOverlayPreCurvePitch( VROverlayHandle_t ulOverlayHandle, float *pfRadians ) = 0;
/** Sets the colorspace the overlay texture's data is in. Defaults to 'auto'. /** Sets the colorspace the overlay texture's data is in. Defaults to 'auto'.
* If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */ * If the texture needs to be resolved, you should call SetOverlayTexture with the appropriate colorspace instead. */
virtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0; virtual EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) = 0;
@@ -3896,12 +4083,6 @@ namespace vr
/** Gets the transform information when the overlay is rendering on a component. */ /** Gets the transform information when the overlay is rendering on a component. */
virtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameSize ) = 0; virtual EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameSize ) = 0;
/** Gets the transform if it is relative to another overlay. Returns an error if the transform is some other type. */
virtual vr::EVROverlayError GetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0;
/** Sets the transform to relative to the transform of the specified overlay. This overlays visibility will also track the parents visibility */
virtual vr::EVROverlayError SetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) = 0;
/** Sets the hotspot for the specified overlay when that overlay is used as a cursor. These are in texture space with 0,0 in the upper left corner of /** Sets the hotspot for the specified overlay when that overlay is used as a cursor. These are in texture space with 0,0 in the upper left corner of
* the texture and 1,1 in the lower right corner of the texture. */ * the texture and 1,1 in the lower right corner of the texture. */
virtual EVROverlayError SetOverlayTransformCursor( VROverlayHandle_t ulCursorOverlayHandle, const HmdVector2_t *pvHotspot ) = 0; virtual EVROverlayError SetOverlayTransformCursor( VROverlayHandle_t ulCursorOverlayHandle, const HmdVector2_t *pvHotspot ) = 0;
@@ -3909,6 +4090,11 @@ namespace vr
/** Gets cursor hotspot/transform for the specified overlay */ /** Gets cursor hotspot/transform for the specified overlay */
virtual vr::EVROverlayError GetOverlayTransformCursor( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvHotspot ) = 0; virtual vr::EVROverlayError GetOverlayTransformCursor( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvHotspot ) = 0;
/** Sets the overlay as a projection overlay */
virtual vr::EVROverlayError SetOverlayTransformProjection( VROverlayHandle_t ulOverlayHandle,
ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t* pmatTrackingOriginToOverlayTransform,
const VROverlayProjection_t *pProjection, vr::EVREye eEye ) = 0;
/** Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */ /** Shows the VR overlay. For dashboard overlays, only the Dashboard Manager is allowed to call this. */
virtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0; virtual EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) = 0;
@@ -3921,6 +4107,11 @@ namespace vr
/** 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 */ /** 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 */
virtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0; virtual EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) = 0;
/** This function will block until the top of each frame, and can therefore be used to synchronize with the runtime's update rate.
* Note: In non-async mode, some signals may be dropped due to scene app performance, so passing a timeout of 1000/refresh rate
* may be useful depending on the overlay app's desired behavior. */
virtual EVROverlayError WaitFrameSync( uint32_t nTimeoutMs ) = 0;
// --------------------------------------------- // ---------------------------------------------
// Overlay input methods // Overlay input methods
// --------------------------------------------- // ---------------------------------------------
@@ -4073,11 +4264,12 @@ namespace vr
virtual void CloseMessageOverlay() = 0; virtual void CloseMessageOverlay() = 0;
}; };
static const char * const IVROverlay_Version = "IVROverlay_024"; static const char * const IVROverlay_Version = "IVROverlay_027";
} // namespace vr } // namespace vr
// ivroverlayview.h // ivroverlayview.h
namespace vr namespace vr
{ {
struct VROverlayView_t struct VROverlayView_t
@@ -4155,6 +4347,7 @@ namespace vr
} }
// ivrrendermodels.h // ivrrendermodels.h
namespace vr namespace vr
{ {
@@ -4191,7 +4384,8 @@ enum EVRRenderModelTextureFormat
VRRenderModelTextureFormat_BC2, VRRenderModelTextureFormat_BC2,
VRRenderModelTextureFormat_BC4, VRRenderModelTextureFormat_BC4,
VRRenderModelTextureFormat_BC7, VRRenderModelTextureFormat_BC7,
VRRenderModelTextureFormat_BC7_SRGB VRRenderModelTextureFormat_BC7_SRGB,
VRRenderModelTextureFormat_RGBA16_FLOAT,
}; };
/** A single vertex in a render model */ /** A single vertex in a render model */
@@ -4214,6 +4408,7 @@ struct RenderModel_TextureMap_t
uint16_t unWidth, unHeight; // width and height of the texture map in pixels uint16_t unWidth, unHeight; // width and height of the texture map in pixels
const uint8_t *rubTextureMapData; // Map texture data. const uint8_t *rubTextureMapData; // Map texture data.
EVRRenderModelTextureFormat format; // Refer to EVRRenderModelTextureFormat EVRRenderModelTextureFormat format; // Refer to EVRRenderModelTextureFormat
uint16_t unMipLevels;
}; };
#if defined(__linux__) || defined(__APPLE__) #if defined(__linux__) || defined(__APPLE__)
#pragma pack( pop ) #pragma pack( pop )
@@ -4355,6 +4550,7 @@ static const char * const IVRRenderModels_Version = "IVRRenderModels_006";
// ivrextendeddisplay.h // ivrextendeddisplay.h
namespace vr namespace vr
{ {
@@ -4384,6 +4580,7 @@ namespace vr
// ivrtrackedcamera.h // ivrtrackedcamera.h
namespace vr namespace vr
{ {
@@ -4441,6 +4638,7 @@ static const char * const IVRTrackedCamera_Version = "IVRTrackedCamera_006";
// ivrscreenshots.h // ivrscreenshots.h
namespace vr namespace vr
{ {
@@ -4548,6 +4746,7 @@ static const char * const IVRScreenshots_Version = "IVRScreenshots_001";
// ivrresources.h // ivrresources.h
namespace vr namespace vr
{ {
@@ -4573,7 +4772,9 @@ static const char * const IVRResources_Version = "IVRResources_001";
} }
// ivrdrivermanager.h // ivrdrivermanager.h
namespace vr namespace vr
{ {
@@ -4597,6 +4798,7 @@ static const char * const IVRDriverManager_Version = "IVRDriverManager_001";
// ivrinput.h // ivrinput.h
namespace vr namespace vr
{ {
// Maximum number of characters in an action name, including the trailing null // Maximum number of characters in an action name, including the trailing null
@@ -4945,6 +5147,7 @@ namespace vr
} // namespace vr } // namespace vr
// ivriobuffer.h // ivriobuffer.h
namespace vr namespace vr
{ {
@@ -4998,6 +5201,7 @@ static const uint64_t k_ulInvalidIOBufferHandle = 0;
} }
// ivrspatialanchors.h // ivrspatialanchors.h
namespace vr namespace vr
{ {
static const SpatialAnchorHandle_t k_ulInvalidSpatialAnchorHandle = 0; static const SpatialAnchorHandle_t k_ulInvalidSpatialAnchorHandle = 0;
@@ -5050,6 +5254,7 @@ namespace vr
} // namespace vr } // namespace vr
// ivrdebug.h // ivrdebug.h
namespace vr namespace vr
{ {
enum EVRDebugError enum EVRDebugError
+216 -64
View File
@@ -4,6 +4,7 @@
// This file is auto-generated, do not edit it. // This file is auto-generated, do not edit it.
// //
//============================================================================= //=============================================================================
#if !OPENVR_XR_API
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
@@ -79,11 +80,6 @@ public struct IVRSystem
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose; internal _GetDeviceToAbsoluteTrackingPose GetDeviceToAbsoluteTrackingPose;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void _ResetSeatedZeroPose();
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _ResetSeatedZeroPose ResetSeatedZeroPose;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); internal delegate HmdMatrix34_t _GetSeatedZeroPoseToStandingAbsoluteTrackingPose();
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
@@ -549,6 +545,11 @@ public struct IVRChaperone
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _ForceBoundsVisible ForceBoundsVisible; internal _ForceBoundsVisible ForceBoundsVisible;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void _ResetZeroPose(ETrackingUniverseOrigin eTrackingUniverseOrigin);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _ResetZeroPose ResetZeroPose;
} }
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
@@ -730,7 +731,7 @@ public struct IVRCompositor
internal _GetCurrentFadeColor GetCurrentFadeColor; internal _GetCurrentFadeColor GetCurrentFadeColor;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void _FadeGrid(float fSeconds, bool bFadeIn); internal delegate void _FadeGrid(float fSeconds, bool bFadeGridIn);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _FadeGrid FadeGrid; internal _FadeGrid FadeGrid;
@@ -1044,6 +1045,16 @@ public struct IVROverlay
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetOverlayCurvature GetOverlayCurvature; internal _GetOverlayCurvature GetOverlayCurvature;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _SetOverlayPreCurvePitch(ulong ulOverlayHandle, float fRadians);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _SetOverlayPreCurvePitch SetOverlayPreCurvePitch;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _GetOverlayPreCurvePitch(ulong ulOverlayHandle, ref float pfRadians);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetOverlayPreCurvePitch GetOverlayPreCurvePitch;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace); internal delegate EVROverlayError _SetOverlayTextureColorSpace(ulong ulOverlayHandle, EColorSpace eTextureColorSpace);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
@@ -1099,16 +1110,6 @@ public struct IVROverlay
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent; internal _GetOverlayTransformTrackedDeviceComponent GetOverlayTransformTrackedDeviceComponent;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _GetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ref ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetOverlayTransformOverlayRelative GetOverlayTransformOverlayRelative;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _SetOverlayTransformOverlayRelative(ulong ulOverlayHandle, ulong ulOverlayHandleParent, ref HmdMatrix34_t pmatParentOverlayToOverlayTransform);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _SetOverlayTransformOverlayRelative SetOverlayTransformOverlayRelative;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _SetOverlayTransformCursor(ulong ulCursorOverlayHandle, ref HmdVector2_t pvHotspot); internal delegate EVROverlayError _SetOverlayTransformCursor(ulong ulCursorOverlayHandle, ref HmdVector2_t pvHotspot);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
@@ -1119,6 +1120,11 @@ public struct IVROverlay
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetOverlayTransformCursor GetOverlayTransformCursor; internal _GetOverlayTransformCursor GetOverlayTransformCursor;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _SetOverlayTransformProjection(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform, ref VROverlayProjection_t pProjection, EVREye eEye);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _SetOverlayTransformProjection SetOverlayTransformProjection;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle); internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
@@ -1139,6 +1145,11 @@ public struct IVROverlay
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates; internal _GetTransformForOverlayCoordinates GetTransformForOverlayCoordinates;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EVROverlayError _WaitFrameSync(uint nTimeoutMs);
[MarshalAs(UnmanagedType.FunctionPtr)]
internal _WaitFrameSync WaitFrameSync;
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent); internal delegate bool _PollNextOverlayEvent(ulong ulOverlayHandle, ref VREvent_t pEvent, uint uncbVREvent);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
@@ -1945,7 +1956,7 @@ public struct IVRPaths
public struct IVRBlockQueue public struct IVRBlockQueue
{ {
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate EBlockQueueError _Create(ref ulong pulQueueHandle, IntPtr pchPath, uint unBlockDataSize, uint unBlockHeaderSize, uint unBlockCount); internal delegate EBlockQueueError _Create(ref ulong pulQueueHandle, IntPtr pchPath, uint unBlockDataSize, uint unBlockHeaderSize, uint unBlockCount, uint unFlags);
[MarshalAs(UnmanagedType.FunctionPtr)] [MarshalAs(UnmanagedType.FunctionPtr)]
internal _Create Create; internal _Create Create;
@@ -1996,6 +2007,11 @@ public class Utils
{ {
public static IntPtr ToUtf8(string managedString) public static IntPtr ToUtf8(string managedString)
{ {
if (managedString == null)
{
return IntPtr.Zero;
}
int size = System.Text.Encoding.UTF8.GetByteCount(managedString) + 1; int size = System.Text.Encoding.UTF8.GetByteCount(managedString) + 1;
if (buffer.Length < size) buffer = new byte[size]; if (buffer.Length < size) buffer = new byte[size];
int written = System.Text.Encoding.UTF8.GetBytes(managedString, 0, managedString.Length, buffer, 0); int written = System.Text.Encoding.UTF8.GetBytes(managedString, 0, managedString.Length, buffer, 0);
@@ -2079,10 +2095,6 @@ public class CVRSystem
{ {
FnTable.GetDeviceToAbsoluteTrackingPose(eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length); FnTable.GetDeviceToAbsoluteTrackingPose(eOrigin,fPredictedSecondsToPhotonsFromNow,pTrackedDevicePoseArray,(uint) pTrackedDevicePoseArray.Length);
} }
public void ResetSeatedZeroPose()
{
FnTable.ResetSeatedZeroPose();
}
public HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() public HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose()
{ {
HmdMatrix34_t result = FnTable.GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); HmdMatrix34_t result = FnTable.GetSeatedZeroPoseToStandingAbsoluteTrackingPose();
@@ -2707,6 +2719,10 @@ public class CVRChaperone
{ {
FnTable.ForceBoundsVisible(bForce); FnTable.ForceBoundsVisible(bForce);
} }
public void ResetZeroPose(ETrackingUniverseOrigin eTrackingUniverseOrigin)
{
FnTable.ResetZeroPose(eTrackingUniverseOrigin);
}
} }
@@ -2893,9 +2909,9 @@ public class CVRCompositor
HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground); HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground);
return result; return result;
} }
public void FadeGrid(float fSeconds,bool bFadeIn) public void FadeGrid(float fSeconds,bool bFadeGridIn)
{ {
FnTable.FadeGrid(fSeconds,bFadeIn); FnTable.FadeGrid(fSeconds,bFadeGridIn);
} }
public float GetCurrentGridAlpha() public float GetCurrentGridAlpha()
{ {
@@ -3224,6 +3240,17 @@ public class CVROverlay
EVROverlayError result = FnTable.GetOverlayCurvature(ulOverlayHandle,ref pfCurvature); EVROverlayError result = FnTable.GetOverlayCurvature(ulOverlayHandle,ref pfCurvature);
return result; return result;
} }
public EVROverlayError SetOverlayPreCurvePitch(ulong ulOverlayHandle,float fRadians)
{
EVROverlayError result = FnTable.SetOverlayPreCurvePitch(ulOverlayHandle,fRadians);
return result;
}
public EVROverlayError GetOverlayPreCurvePitch(ulong ulOverlayHandle,ref float pfRadians)
{
pfRadians = 0;
EVROverlayError result = FnTable.GetOverlayPreCurvePitch(ulOverlayHandle,ref pfRadians);
return result;
}
public EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle,EColorSpace eTextureColorSpace) public EVROverlayError SetOverlayTextureColorSpace(ulong ulOverlayHandle,EColorSpace eTextureColorSpace)
{ {
EVROverlayError result = FnTable.SetOverlayTextureColorSpace(ulOverlayHandle,eTextureColorSpace); EVROverlayError result = FnTable.SetOverlayTextureColorSpace(ulOverlayHandle,eTextureColorSpace);
@@ -3283,17 +3310,6 @@ public class CVROverlay
EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize); EVROverlayError result = FnTable.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle,ref punDeviceIndex,pchComponentName,unComponentNameSize);
return result; return result;
} }
public EVROverlayError GetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ref ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform)
{
ulOverlayHandleParent = 0;
EVROverlayError result = FnTable.GetOverlayTransformOverlayRelative(ulOverlayHandle,ref ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform);
return result;
}
public EVROverlayError SetOverlayTransformOverlayRelative(ulong ulOverlayHandle,ulong ulOverlayHandleParent,ref HmdMatrix34_t pmatParentOverlayToOverlayTransform)
{
EVROverlayError result = FnTable.SetOverlayTransformOverlayRelative(ulOverlayHandle,ulOverlayHandleParent,ref pmatParentOverlayToOverlayTransform);
return result;
}
public EVROverlayError SetOverlayTransformCursor(ulong ulCursorOverlayHandle,ref HmdVector2_t pvHotspot) public EVROverlayError SetOverlayTransformCursor(ulong ulCursorOverlayHandle,ref HmdVector2_t pvHotspot)
{ {
EVROverlayError result = FnTable.SetOverlayTransformCursor(ulCursorOverlayHandle,ref pvHotspot); EVROverlayError result = FnTable.SetOverlayTransformCursor(ulCursorOverlayHandle,ref pvHotspot);
@@ -3304,6 +3320,11 @@ public class CVROverlay
EVROverlayError result = FnTable.GetOverlayTransformCursor(ulOverlayHandle,ref pvHotspot); EVROverlayError result = FnTable.GetOverlayTransformCursor(ulOverlayHandle,ref pvHotspot);
return result; return result;
} }
public EVROverlayError SetOverlayTransformProjection(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform,ref VROverlayProjection_t pProjection,EVREye eEye)
{
EVROverlayError result = FnTable.SetOverlayTransformProjection(ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform,ref pProjection,eEye);
return result;
}
public EVROverlayError ShowOverlay(ulong ulOverlayHandle) public EVROverlayError ShowOverlay(ulong ulOverlayHandle)
{ {
EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle); EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle);
@@ -3324,6 +3345,11 @@ public class CVROverlay
EVROverlayError result = FnTable.GetTransformForOverlayCoordinates(ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform); EVROverlayError result = FnTable.GetTransformForOverlayCoordinates(ulOverlayHandle,eTrackingOrigin,coordinatesInOverlay,ref pmatTransform);
return result; return result;
} }
public EVROverlayError WaitFrameSync(uint nTimeoutMs)
{
EVROverlayError result = FnTable.WaitFrameSync(nTimeoutMs);
return result;
}
// This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were // This is a terrible hack to workaround the fact that VRControllerState_t and VREvent_t were
// originally mis-compiled with the wrong packing for Linux and OSX. // originally mis-compiled with the wrong packing for Linux and OSX.
[UnmanagedFunctionPointer(CallingConvention.StdCall)] [UnmanagedFunctionPointer(CallingConvention.StdCall)]
@@ -4409,11 +4435,11 @@ public class CVRBlockQueue
{ {
FnTable = (IVRBlockQueue)Marshal.PtrToStructure(pInterface, typeof(IVRBlockQueue)); FnTable = (IVRBlockQueue)Marshal.PtrToStructure(pInterface, typeof(IVRBlockQueue));
} }
public EBlockQueueError Create(ref ulong pulQueueHandle,string pchPath,uint unBlockDataSize,uint unBlockHeaderSize,uint unBlockCount) public EBlockQueueError Create(ref ulong pulQueueHandle,string pchPath,uint unBlockDataSize,uint unBlockHeaderSize,uint unBlockCount,uint unFlags)
{ {
pulQueueHandle = 0; pulQueueHandle = 0;
IntPtr pchPathUtf8 = Utils.ToUtf8(pchPath); IntPtr pchPathUtf8 = Utils.ToUtf8(pchPath);
EBlockQueueError result = FnTable.Create(ref pulQueueHandle,pchPathUtf8,unBlockDataSize,unBlockHeaderSize,unBlockCount); EBlockQueueError result = FnTable.Create(ref pulQueueHandle,pchPathUtf8,unBlockDataSize,unBlockHeaderSize,unBlockCount,unFlags);
Marshal.FreeHGlobal(pchPathUtf8); Marshal.FreeHGlobal(pchPathUtf8);
return result; return result;
} }
@@ -4613,6 +4639,8 @@ public enum ETrackedDeviceProperty
Prop_ManufacturerSerialNumber_String = 1049, Prop_ManufacturerSerialNumber_String = 1049,
Prop_ComputedSerialNumber_String = 1050, Prop_ComputedSerialNumber_String = 1050,
Prop_EstimatedDeviceFirstUseTime_Int32 = 1051, Prop_EstimatedDeviceFirstUseTime_Int32 = 1051,
Prop_DevicePowerUsage_Float = 1052,
Prop_IgnoreMotionForStandby_Bool = 1053,
Prop_ReportsTimeSinceVSync_Bool = 2000, Prop_ReportsTimeSinceVSync_Bool = 2000,
Prop_SecondsFromVsyncToPhotons_Float = 2001, Prop_SecondsFromVsyncToPhotons_Float = 2001,
Prop_DisplayFrequency_Float = 2002, Prop_DisplayFrequency_Float = 2002,
@@ -4689,6 +4717,7 @@ public enum ETrackedDeviceProperty
Prop_DriverProvidedChaperoneVisibility_Bool = 2076, Prop_DriverProvidedChaperoneVisibility_Bool = 2076,
Prop_HmdColumnCorrectionSettingPrefix_String = 2077, Prop_HmdColumnCorrectionSettingPrefix_String = 2077,
Prop_CameraSupportsCompatibilityModes_Bool = 2078, Prop_CameraSupportsCompatibilityModes_Bool = 2078,
Prop_SupportsRoomViewDepthProjection_Bool = 2079,
Prop_DisplayAvailableFrameRates_Float_Array = 2080, Prop_DisplayAvailableFrameRates_Float_Array = 2080,
Prop_DisplaySupportsMultipleFramerates_Bool = 2081, Prop_DisplaySupportsMultipleFramerates_Bool = 2081,
Prop_DisplayColorMultLeft_Vector3 = 2082, Prop_DisplayColorMultLeft_Vector3 = 2082,
@@ -4697,9 +4726,24 @@ public enum ETrackedDeviceProperty
Prop_DisplaySupportsAnalogGain_Bool = 2085, Prop_DisplaySupportsAnalogGain_Bool = 2085,
Prop_DisplayMinAnalogGain_Float = 2086, Prop_DisplayMinAnalogGain_Float = 2086,
Prop_DisplayMaxAnalogGain_Float = 2087, Prop_DisplayMaxAnalogGain_Float = 2087,
Prop_CameraExposureTime_Float = 2088,
Prop_CameraGlobalGain_Float = 2089,
Prop_DashboardScale_Float = 2091, Prop_DashboardScale_Float = 2091,
Prop_PeerButtonInfo_String = 2092,
Prop_Hmd_SupportsHDR10_Bool = 2093,
Prop_Hmd_EnableParallelRenderCameras_Bool = 2094,
Prop_DriverProvidedChaperoneJson_String = 2095,
Prop_IpdUIRangeMinMeters_Float = 2100, Prop_IpdUIRangeMinMeters_Float = 2100,
Prop_IpdUIRangeMaxMeters_Float = 2101, Prop_IpdUIRangeMaxMeters_Float = 2101,
Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102,
Prop_Hmd_SupportsMicMonitoring_Bool = 2103,
Prop_Hmd_SupportsDisplayPortTrainingMode_Bool = 2104,
Prop_Hmd_SupportsRoomViewDirect_Bool = 2105,
Prop_Hmd_SupportsAppThrottling_Bool = 2106,
Prop_Hmd_SupportsGpuBusMonitoring_Bool = 2107,
Prop_DSCVersion_Int32 = 2110,
Prop_DSCSliceCount_Int32 = 2111,
Prop_DSCBPPx16_Int32 = 2112,
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200, Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
Prop_DriverRequestedMuraFeather_InnerLeft_Int32 = 2201, Prop_DriverRequestedMuraFeather_InnerLeft_Int32 = 2201,
Prop_DriverRequestedMuraFeather_InnerRight_Int32 = 2202, Prop_DriverRequestedMuraFeather_InnerRight_Int32 = 2202,
@@ -4712,6 +4756,7 @@ public enum ETrackedDeviceProperty
Prop_Audio_DefaultPlaybackDeviceId_String = 2300, Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
Prop_Audio_DefaultRecordingDeviceId_String = 2301, Prop_Audio_DefaultRecordingDeviceId_String = 2301,
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302, Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
Prop_AttachedDeviceId_String = 3000, Prop_AttachedDeviceId_String = 3000,
Prop_SupportedButtons_Uint64 = 3001, Prop_SupportedButtons_Uint64 = 3001,
Prop_Axis0Type_Int32 = 3002, Prop_Axis0Type_Int32 = 3002,
@@ -4793,6 +4838,9 @@ public enum EVRSubmitFlags
Submit_TextureWithDepth = 16, Submit_TextureWithDepth = 16,
Submit_FrameDiscontinuty = 32, Submit_FrameDiscontinuty = 32,
Submit_VulkanTextureWithArrayData = 64, Submit_VulkanTextureWithArrayData = 64,
Submit_GlArrayTexture = 128,
Submit_Reserved2 = 32768,
Submit_Reserved3 = 65536,
} }
public enum EVRState public enum EVRState
{ {
@@ -4843,13 +4891,13 @@ public enum EVREventType
VREvent_InputFocusCaptured = 400, VREvent_InputFocusCaptured = 400,
VREvent_InputFocusReleased = 401, VREvent_InputFocusReleased = 401,
VREvent_SceneApplicationChanged = 404, VREvent_SceneApplicationChanged = 404,
VREvent_SceneFocusChanged = 405,
VREvent_InputFocusChanged = 406, VREvent_InputFocusChanged = 406,
VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408,
VREvent_ActionBindingReloaded = 409, VREvent_ActionBindingReloaded = 409,
VREvent_HideRenderModels = 410, VREvent_HideRenderModels = 410,
VREvent_ShowRenderModels = 411, VREvent_ShowRenderModels = 411,
VREvent_SceneApplicationStateChanged = 412, VREvent_SceneApplicationStateChanged = 412,
VREvent_SceneAppPipeDisconnected = 413,
VREvent_ConsoleOpened = 420, VREvent_ConsoleOpened = 420,
VREvent_ConsoleClosed = 421, VREvent_ConsoleClosed = 421,
VREvent_OverlayShown = 500, VREvent_OverlayShown = 500,
@@ -4878,6 +4926,11 @@ public enum EVREventType
VREvent_RoomViewHidden = 527, VREvent_RoomViewHidden = 527,
VREvent_ShowUI = 528, VREvent_ShowUI = 528,
VREvent_ShowDevTools = 529, VREvent_ShowDevTools = 529,
VREvent_DesktopViewUpdating = 530,
VREvent_DesktopViewReady = 531,
VREvent_StartDashboard = 532,
VREvent_ElevatePrism = 533,
VREvent_OverlayClosed = 534,
VREvent_Notification_Shown = 600, VREvent_Notification_Shown = 600,
VREvent_Notification_Hidden = 601, VREvent_Notification_Hidden = 601,
VREvent_Notification_BeginInteraction = 602, VREvent_Notification_BeginInteraction = 602,
@@ -4887,6 +4940,7 @@ public enum EVREventType
VREvent_QuitAcknowledged = 703, VREvent_QuitAcknowledged = 703,
VREvent_DriverRequestedQuit = 704, VREvent_DriverRequestedQuit = 704,
VREvent_RestartRequested = 705, VREvent_RestartRequested = 705,
VREvent_InvalidateSwapTextureSets = 706,
VREvent_ChaperoneDataHasChanged = 800, VREvent_ChaperoneDataHasChanged = 800,
VREvent_ChaperoneUniverseHasChanged = 801, VREvent_ChaperoneUniverseHasChanged = 801,
VREvent_ChaperoneTempDataHasChanged = 802, VREvent_ChaperoneTempDataHasChanged = 802,
@@ -4895,6 +4949,7 @@ public enum EVREventType
VREvent_ChaperoneFlushCache = 805, VREvent_ChaperoneFlushCache = 805,
VREvent_ChaperoneRoomSetupStarting = 806, VREvent_ChaperoneRoomSetupStarting = 806,
VREvent_ChaperoneRoomSetupFinished = 807, VREvent_ChaperoneRoomSetupFinished = 807,
VREvent_StandingZeroPoseReset = 808,
VREvent_AudioSettingsHaveChanged = 820, VREvent_AudioSettingsHaveChanged = 820,
VREvent_BackgroundSettingHasChanged = 850, VREvent_BackgroundSettingHasChanged = 850,
VREvent_CameraSettingsHaveChanged = 851, VREvent_CameraSettingsHaveChanged = 851,
@@ -4940,6 +4995,7 @@ public enum EVREventType
VREvent_Compositor_OutOfVideoMemory = 1417, VREvent_Compositor_OutOfVideoMemory = 1417,
VREvent_Compositor_DisplayModeNotSupported = 1418, VREvent_Compositor_DisplayModeNotSupported = 1418,
VREvent_Compositor_StageOverrideReady = 1419, VREvent_Compositor_StageOverrideReady = 1419,
VREvent_Compositor_RequestDisconnectReconnect = 1420,
VREvent_TrackedCamera_StartVideoStream = 1500, VREvent_TrackedCamera_StartVideoStream = 1500,
VREvent_TrackedCamera_StopVideoStream = 1501, VREvent_TrackedCamera_StopVideoStream = 1501,
VREvent_TrackedCamera_PauseVideoStream = 1502, VREvent_TrackedCamera_PauseVideoStream = 1502,
@@ -5000,6 +5056,8 @@ public enum EVRButtonId
k_EButton_IndexController_A = 2, k_EButton_IndexController_A = 2,
k_EButton_IndexController_B = 1, k_EButton_IndexController_B = 1,
k_EButton_IndexController_JoyStick = 35, k_EButton_IndexController_JoyStick = 35,
k_EButton_Reserved0 = 50,
k_EButton_Reserved1 = 51,
k_EButton_Max = 64, k_EButton_Max = 64,
} }
public enum EVRMouseButton public enum EVRMouseButton
@@ -5130,6 +5188,7 @@ public enum EVROverlayError
TextureAlreadyLocked = 31, TextureAlreadyLocked = 31,
TextureLockCapacityReached = 32, TextureLockCapacityReached = 32,
TextureNotLocked = 33, TextureNotLocked = 33,
TimedOut = 34,
} }
public enum EVRApplicationType public enum EVRApplicationType
{ {
@@ -5142,7 +5201,12 @@ public enum EVRApplicationType
VRApplication_SteamWatchdog = 6, VRApplication_SteamWatchdog = 6,
VRApplication_Bootstrapper = 7, VRApplication_Bootstrapper = 7,
VRApplication_WebHelper = 8, VRApplication_WebHelper = 8,
VRApplication_Max = 9, VRApplication_OpenXRInstance = 9,
VRApplication_OpenXRScene = 10,
VRApplication_OpenXROverlay = 11,
VRApplication_Prism = 12,
VRApplication_RoomView = 13,
VRApplication_Max = 14,
} }
public enum EVRFirmwareError public enum EVRFirmwareError
{ {
@@ -5222,6 +5286,27 @@ public enum EVRInitError
Init_FailedForVrMonitor = 144, Init_FailedForVrMonitor = 144,
Init_PropertyManagerInitFailed = 145, Init_PropertyManagerInitFailed = 145,
Init_WebServerFailed = 146, Init_WebServerFailed = 146,
Init_IllegalTypeTransition = 147,
Init_MismatchedRuntimes = 148,
Init_InvalidProcessId = 149,
Init_VRServiceStartupFailed = 150,
Init_PrismNeedsNewDrivers = 151,
Init_PrismStartupTimedOut = 152,
Init_CouldNotStartPrism = 153,
Init_PrismClientInitFailed = 154,
Init_PrismClientStartFailed = 155,
Init_PrismExitedUnexpectedly = 156,
Init_BadLuid = 157,
Init_NoServerForAppContainer = 158,
Init_DuplicateBootstrapper = 159,
Init_VRDashboardServicePending = 160,
Init_VRDashboardServiceTimeout = 161,
Init_VRDashboardServiceStopped = 162,
Init_VRDashboardAlreadyStarted = 163,
Init_VRDashboardCopyFailed = 164,
Init_VRDashboardTokenFailure = 165,
Init_VRDashboardEnvironmentFailure = 166,
Init_VRDashboardPathFailure = 167,
Driver_Failed = 200, Driver_Failed = 200,
Driver_Unknown = 201, Driver_Unknown = 201,
Driver_HmdUnknown = 202, Driver_HmdUnknown = 202,
@@ -5235,6 +5320,8 @@ public enum EVRInitError
Driver_HmdDriverIdOutOfBounds = 211, Driver_HmdDriverIdOutOfBounds = 211,
Driver_HmdDisplayMirrored = 212, Driver_HmdDisplayMirrored = 212,
Driver_HmdDisplayNotFoundLaptop = 213, Driver_HmdDisplayNotFoundLaptop = 213,
Driver_PeerDriverNotInstalled = 214,
Driver_WirelessHmdNotConnected = 215,
IPC_ServerInitFailed = 300, IPC_ServerInitFailed = 300,
IPC_ConnectFailed = 301, IPC_ConnectFailed = 301,
IPC_SharedStateInitFailed = 302, IPC_SharedStateInitFailed = 302,
@@ -5337,8 +5424,14 @@ public enum EVRInitError
Compositor_CreateOverlayInvalidCall = 488, Compositor_CreateOverlayInvalidCall = 488,
Compositor_CreateOverlayAlreadyInitialized = 489, Compositor_CreateOverlayAlreadyInitialized = 489,
Compositor_FailedToCreateMailbox = 490, Compositor_FailedToCreateMailbox = 490,
Compositor_WindowInterfaceIsNull = 491,
Compositor_SystemLayerCreateInstance = 492,
Compositor_SystemLayerCreateSession = 493,
Compositor_CreateInverseDistortUVs = 494,
Compositor_CreateBackbufferDepth = 495,
VendorSpecific_UnableToConnectToOculusRuntime = 1000, VendorSpecific_UnableToConnectToOculusRuntime = 1000,
VendorSpecific_WindowsNotInDevMode = 1001, VendorSpecific_WindowsNotInDevMode = 1001,
VendorSpecific_OculusLinkNotEnabled = 1002,
VendorSpecific_HmdFound_CantOpenDevice = 1101, VendorSpecific_HmdFound_CantOpenDevice = 1101,
VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
VendorSpecific_HmdFound_NoStoredConfig = 1103, VendorSpecific_HmdFound_NoStoredConfig = 1103,
@@ -5353,6 +5446,7 @@ public enum EVRInitError
VendorSpecific_HmdFound_UserDataError = 1112, VendorSpecific_HmdFound_UserDataError = 1112,
VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,
VendorSpecific_OculusRuntimeBadInstall = 1114, VendorSpecific_OculusRuntimeBadInstall = 1114,
VendorSpecific_HmdFound_UnexpectedConfiguration_1 = 1115,
Steam_SteamInstallationNotFound = 2000, Steam_SteamInstallationNotFound = 2000,
LastError = 2001, LastError = 2001,
} }
@@ -5454,6 +5548,7 @@ public enum EVRApplicationError
PropertyNotSet = 201, PropertyNotSet = 201,
UnknownProperty = 202, UnknownProperty = 202,
InvalidParameter = 203, InvalidParameter = 203,
NotImplemented = 300,
} }
public enum EVRApplicationProperty public enum EVRApplicationProperty
{ {
@@ -5538,12 +5633,13 @@ public enum VROverlayTransformType
VROverlayTransform_Invalid = -1, VROverlayTransform_Invalid = -1,
VROverlayTransform_Absolute = 0, VROverlayTransform_Absolute = 0,
VROverlayTransform_TrackedDeviceRelative = 1, VROverlayTransform_TrackedDeviceRelative = 1,
VROverlayTransform_SystemOverlay = 2,
VROverlayTransform_TrackedComponent = 3, VROverlayTransform_TrackedComponent = 3,
VROverlayTransform_Cursor = 4, VROverlayTransform_Cursor = 4,
VROverlayTransform_DashboardTab = 5, VROverlayTransform_DashboardTab = 5,
VROverlayTransform_DashboardThumb = 6, VROverlayTransform_DashboardThumb = 6,
VROverlayTransform_Mountable = 7, VROverlayTransform_Mountable = 7,
VROverlayTransform_Projection = 8,
VROverlayTransform_Subview = 9,
} }
public enum VROverlayFlags public enum VROverlayFlags
{ {
@@ -5564,6 +5660,8 @@ public enum VROverlayFlags
HideLaserIntersection = 524288, HideLaserIntersection = 524288,
WantsModalBehavior = 1048576, WantsModalBehavior = 1048576,
IsPremultiplied = 2097152, IsPremultiplied = 2097152,
IgnoreTextureAlpha = 4194304,
Reserved = 67108864,
} }
public enum VRMessageOverlayResponse public enum VRMessageOverlayResponse
{ {
@@ -5631,6 +5729,7 @@ public enum EVRRenderModelTextureFormat
BC4 = 2, BC4 = 2,
BC7 = 3, BC7 = 3,
BC7_SRGB = 4, BC7_SRGB = 4,
RGBA16_FLOAT = 5,
} }
public enum EVRNotificationType public enum EVRNotificationType
{ {
@@ -5757,6 +5856,10 @@ public enum EBlockQueueReadType
BlockQueueRead_New = 1, BlockQueueRead_New = 1,
BlockQueueRead_Next = 2, BlockQueueRead_Next = 2,
} }
public enum EBlockQueueCreationFlag
{
BlockQueueFlag_OwnerIsReader = 1,
}
[StructLayout(LayoutKind.Explicit)] public struct VREvent_Data_t [StructLayout(LayoutKind.Explicit)] public struct VREvent_Data_t
{ {
@@ -5937,6 +6040,11 @@ public enum EBlockQueueReadType
public HmdVector2_t vTopLeft; public HmdVector2_t vTopLeft;
public HmdVector2_t vBottomRight; public HmdVector2_t vBottomRight;
} }
[StructLayout(LayoutKind.Sequential)] public struct VRBoneTransform_t
{
public HmdVector4_t position;
public HmdQuaternionf_t orientation;
}
[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t [StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t
{ {
public float rfRed0; //float[2] public float rfRed0; //float[2]
@@ -5952,17 +6060,6 @@ public enum EBlockQueueReadType
public ETextureType eType; public ETextureType eType;
public EColorSpace eColorSpace; public EColorSpace eColorSpace;
} }
[StructLayout(LayoutKind.Sequential)] public struct TrackedDevicePose_t
{
public HmdMatrix34_t mDeviceToAbsoluteTracking;
public HmdVector3_t vVelocity;
public HmdVector3_t vAngularVelocity;
public ETrackingResult eTrackingResult;
[MarshalAs(UnmanagedType.I1)]
public bool bPoseIsValid;
[MarshalAs(UnmanagedType.I1)]
public bool bDeviceIsConnected;
}
[StructLayout(LayoutKind.Sequential)] public struct VRTextureBounds_t [StructLayout(LayoutKind.Sequential)] public struct VRTextureBounds_t
{ {
public float uMin; public float uMin;
@@ -5972,6 +6069,9 @@ public enum EBlockQueueReadType
} }
[StructLayout(LayoutKind.Sequential)] public struct VRTextureWithPose_t [StructLayout(LayoutKind.Sequential)] public struct VRTextureWithPose_t
{ {
public IntPtr handle; // void *
public ETextureType eType;
public EColorSpace eColorSpace;
public HmdMatrix34_t mDeviceToAbsoluteTracking; public HmdMatrix34_t mDeviceToAbsoluteTracking;
} }
[StructLayout(LayoutKind.Sequential)] public struct VRTextureDepthInfo_t [StructLayout(LayoutKind.Sequential)] public struct VRTextureDepthInfo_t
@@ -5982,12 +6082,30 @@ public enum EBlockQueueReadType
} }
[StructLayout(LayoutKind.Sequential)] public struct VRTextureWithDepth_t [StructLayout(LayoutKind.Sequential)] public struct VRTextureWithDepth_t
{ {
public IntPtr handle; // void *
public ETextureType eType;
public EColorSpace eColorSpace;
public VRTextureDepthInfo_t depth; public VRTextureDepthInfo_t depth;
} }
[StructLayout(LayoutKind.Sequential)] public struct VRTextureWithPoseAndDepth_t [StructLayout(LayoutKind.Sequential)] public struct VRTextureWithPoseAndDepth_t
{ {
public IntPtr handle; // void *
public ETextureType eType;
public EColorSpace eColorSpace;
public HmdMatrix34_t mDeviceToAbsoluteTracking;
public VRTextureDepthInfo_t depth; public VRTextureDepthInfo_t depth;
} }
[StructLayout(LayoutKind.Sequential)] public struct TrackedDevicePose_t
{
public HmdMatrix34_t mDeviceToAbsoluteTracking;
public HmdVector3_t vVelocity;
public HmdVector3_t vAngularVelocity;
public ETrackingResult eTrackingResult;
[MarshalAs(UnmanagedType.I1)]
public bool bPoseIsValid;
[MarshalAs(UnmanagedType.I1)]
public bool bDeviceIsConnected;
}
[StructLayout(LayoutKind.Sequential)] public struct VRVulkanTextureData_t [StructLayout(LayoutKind.Sequential)] public struct VRVulkanTextureData_t
{ {
public ulong m_nImage; public ulong m_nImage;
@@ -6057,6 +6175,7 @@ public enum EBlockQueueReadType
{ {
public ulong overlayHandle; public ulong overlayHandle;
public ulong devicePath; public ulong devicePath;
public ulong memoryBlockId;
} }
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t [StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t
{ {
@@ -6279,11 +6398,6 @@ public enum EBlockQueueReadType
unpacked.rAxis4 = this.rAxis4; unpacked.rAxis4 = this.rAxis4;
} }
} }
[StructLayout(LayoutKind.Sequential)] public struct VRBoneTransform_t
{
public HmdVector4_t position;
public HmdQuaternionf_t orientation;
}
[StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t [StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t
{ {
public EVRTrackedCameraFrameType eFrameType; public EVRTrackedCameraFrameType eFrameType;
@@ -6365,6 +6479,13 @@ public enum EBlockQueueReadType
public uint m_nNumFramePresentsTimedOut; public uint m_nNumFramePresentsTimedOut;
public uint m_nNumDroppedFramesTimedOut; public uint m_nNumDroppedFramesTimedOut;
public uint m_nNumReprojectedFramesTimedOut; public uint m_nNumReprojectedFramesTimedOut;
public uint m_nNumFrameSubmits;
public vrshared_double m_flSumCompositorCPUTimeMS;
public vrshared_double m_flSumCompositorGPUTimeMS;
public vrshared_double m_flSumTargetFrameTimes;
public vrshared_double m_flSumApplicationCPUTimeMS;
public vrshared_double m_flSumApplicationGPUTimeMS;
public uint m_nNumFramesWithDepth;
} }
[StructLayout(LayoutKind.Sequential)] public struct Compositor_StageRenderSettings [StructLayout(LayoutKind.Sequential)] public struct Compositor_StageRenderSettings
{ {
@@ -6411,6 +6532,13 @@ public enum EBlockQueueReadType
public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType; public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;
public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive; public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive;
} }
[StructLayout(LayoutKind.Sequential)] public struct VROverlayProjection_t
{
public float fLeft;
public float fRight;
public float fTop;
public float fBottom;
}
[StructLayout(LayoutKind.Sequential)] public struct VROverlayView_t [StructLayout(LayoutKind.Sequential)] public struct VROverlayView_t
{ {
public ulong overlayHandle; public ulong overlayHandle;
@@ -6443,6 +6571,7 @@ public enum EBlockQueueReadType
public ushort unHeight; public ushort unHeight;
public IntPtr rubTextureMapData; // const uint8_t * public IntPtr rubTextureMapData; // const uint8_t *
public EVRRenderModelTextureFormat format; public EVRRenderModelTextureFormat format;
public ushort unMipLevels;
} }
// This structure is for backwards binary compatibility on Linux and OSX only // This structure is for backwards binary compatibility on Linux and OSX only
[StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_TextureMap_t_Packed [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct RenderModel_TextureMap_t_Packed
@@ -6451,12 +6580,14 @@ public enum EBlockQueueReadType
public ushort unHeight; public ushort unHeight;
public IntPtr rubTextureMapData; // const uint8_t * public IntPtr rubTextureMapData; // const uint8_t *
public EVRRenderModelTextureFormat format; public EVRRenderModelTextureFormat format;
public ushort unMipLevels;
public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked) public RenderModel_TextureMap_t_Packed(RenderModel_TextureMap_t unpacked)
{ {
this.unWidth = unpacked.unWidth; this.unWidth = unpacked.unWidth;
this.unHeight = unpacked.unHeight; this.unHeight = unpacked.unHeight;
this.rubTextureMapData = unpacked.rubTextureMapData; this.rubTextureMapData = unpacked.rubTextureMapData;
this.format = unpacked.format; this.format = unpacked.format;
this.unMipLevels = unpacked.unMipLevels;
} }
public void Unpack(ref RenderModel_TextureMap_t unpacked) public void Unpack(ref RenderModel_TextureMap_t unpacked)
{ {
@@ -6464,6 +6595,7 @@ public enum EBlockQueueReadType
unpacked.unHeight = this.unHeight; unpacked.unHeight = this.unHeight;
unpacked.rubTextureMapData = this.rubTextureMapData; unpacked.rubTextureMapData = this.rubTextureMapData;
unpacked.format = this.format; unpacked.format = this.format;
unpacked.unMipLevels = this.unMipLevels;
} }
} }
[StructLayout(LayoutKind.Sequential)] public struct RenderModel_t [StructLayout(LayoutKind.Sequential)] public struct RenderModel_t
@@ -7488,21 +7620,21 @@ public class OpenVR
public const ulong k_ulOverlayHandleInvalid = 0; public const ulong k_ulOverlayHandleInvalid = 0;
public const uint k_unMaxDistortionFunctionParameters = 8; public const uint k_unMaxDistortionFunctionParameters = 8;
public const uint k_unScreenshotHandleInvalid = 0; public const uint k_unScreenshotHandleInvalid = 0;
public const string IVRSystem_Version = "IVRSystem_021"; public const string IVRSystem_Version = "IVRSystem_022";
public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; public const string IVRExtendedDisplay_Version = "IVRExtendedDisplay_001";
public const string IVRTrackedCamera_Version = "IVRTrackedCamera_006"; public const string IVRTrackedCamera_Version = "IVRTrackedCamera_006";
public const uint k_unMaxApplicationKeyLength = 128; public const uint k_unMaxApplicationKeyLength = 128;
public const string k_pch_MimeType_HomeApp = "vr/home"; public const string k_pch_MimeType_HomeApp = "vr/home";
public const string k_pch_MimeType_GameTheater = "vr/game_theater"; public const string k_pch_MimeType_GameTheater = "vr/game_theater";
public const string IVRApplications_Version = "IVRApplications_007"; public const string IVRApplications_Version = "IVRApplications_007";
public const string IVRChaperone_Version = "IVRChaperone_003"; public const string IVRChaperone_Version = "IVRChaperone_004";
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_006"; public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_006";
public const string IVRCompositor_Version = "IVRCompositor_026"; public const string IVRCompositor_Version = "IVRCompositor_027";
public const uint k_unVROverlayMaxKeyLength = 128; public const uint k_unVROverlayMaxKeyLength = 128;
public const uint k_unVROverlayMaxNameLength = 128; public const uint k_unVROverlayMaxNameLength = 128;
public const uint k_unMaxOverlayCount = 128; public const uint k_unMaxOverlayCount = 128;
public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32;
public const string IVROverlay_Version = "IVROverlay_024"; public const string IVROverlay_Version = "IVROverlay_027";
public const string IVROverlayView_Version = "IVROverlayView_003"; public const string IVROverlayView_Version = "IVROverlayView_003";
public const uint k_unHeadsetViewMaxWidth = 3840; public const uint k_unHeadsetViewMaxWidth = 3840;
public const uint k_unHeadsetViewMaxHeight = 2160; public const uint k_unHeadsetViewMaxHeight = 2160;
@@ -7537,6 +7669,7 @@ public class OpenVR
public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
public const string k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor"; public const string k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
public const string k_pch_SteamVR_ShowStage_Bool = "showStage"; public const string k_pch_SteamVR_ShowStage_Bool = "showStage";
public const string k_pch_SteamVR_DrawTrackingReferences_Bool = "drawTrackingReferences";
public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
@@ -7547,6 +7680,10 @@ public class OpenVR
public const string k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution"; public const string k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
public const string k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing"; public const string k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
public const string k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride"; public const string k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
public const string k_pch_SteamVR_FramesToThrottle_Int32 = "framesToThrottle";
public const string k_pch_SteamVR_AdditionalFramesToPredict_Int32 = "additionalFramesToPredict";
public const string k_pch_SteamVR_WorldScale_Float = "worldScale";
public const string k_pch_SteamVR_FovScale_Int32 = "fovScale";
public const string k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync"; public const string k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView"; public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
@@ -7573,7 +7710,6 @@ public class OpenVR
public const string k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor"; public const string k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor";
public const string k_pch_SteamVR_DebugInputBinding = "debugInputBinding"; public const string k_pch_SteamVR_DebugInputBinding = "debugInputBinding";
public const string k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid"; public const string k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid";
public const string k_pch_SteamVR_RenderCameraMode = "renderCameraMode";
public const string k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling"; public const string k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling";
public const string k_pch_SteamVR_EnableSafeMode = "enableSafeMode"; public const string k_pch_SteamVR_EnableSafeMode = "enableSafeMode";
public const string k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate"; public const string k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate";
@@ -7589,6 +7725,9 @@ public class OpenVR
public const string k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2"; public const string k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2";
public const string k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption"; public const string k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption";
public const string k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches"; public const string k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches";
public const string k_pch_SteamVR_HDCPLegacyCompatibility_Bool = "hdcp14legacyCompatibility";
public const string k_pch_SteamVR_DisplayPortTrainingMode_Int = "displayPortTrainingMode";
public const string k_pch_SteamVR_UsePrism_Bool = "usePrism";
public const string k_pch_DirectMode_Section = "direct_mode"; public const string k_pch_DirectMode_Section = "direct_mode";
public const string k_pch_DirectMode_Enable_Bool = "enable"; public const string k_pch_DirectMode_Enable_Bool = "enable";
public const string k_pch_DirectMode_Count_Int32 = "count"; public const string k_pch_DirectMode_Count_Int32 = "count";
@@ -7640,6 +7779,7 @@ public class OpenVR
public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; public const string k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
public const string k_pch_Perf_TestData_Float = "perfTestData"; public const string k_pch_Perf_TestData_Float = "perfTestData";
public const string k_pch_Perf_GPUProfiling_Bool = "GPUProfiling"; public const string k_pch_Perf_GPUProfiling_Bool = "GPUProfiling";
public const string k_pch_Perf_GpuBusMonitoring_Bool = "gpuBusMonitoring";
public const string k_pch_CollisionBounds_Section = "collisionBounds"; public const string k_pch_CollisionBounds_Section = "collisionBounds";
public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; public const string k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle";
public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; public const string k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn";
@@ -7654,15 +7794,15 @@ public class OpenVR
public const string k_pch_CollisionBounds_EnableDriverImport = "enableDriverBoundsImport"; public const string k_pch_CollisionBounds_EnableDriverImport = "enableDriverBoundsImport";
public const string k_pch_Camera_Section = "camera"; public const string k_pch_Camera_Section = "camera";
public const string k_pch_Camera_EnableCamera_Bool = "enableCamera"; public const string k_pch_Camera_EnableCamera_Bool = "enableCamera";
public const string k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; public const string k_pch_Camera_ShowOnController_Bool = "showOnController";
public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; public const string k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
public const string k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; public const string k_pch_Camera_RoomView_Int32 = "roomView";
public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; public const string k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; public const string k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; public const string k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; public const string k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
public const string k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; public const string k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength";
public const string k_pch_Camera_RoomViewMode_Int32 = "cameraRoomViewMode"; public const string k_pch_Camera_RoomViewStyle_Int32 = "roomViewStyle";
public const string k_pch_audio_Section = "audio"; public const string k_pch_audio_Section = "audio";
public const string k_pch_audio_SetOsDefaultPlaybackDevice_Bool = "setOsDefaultPlaybackDevice"; public const string k_pch_audio_SetOsDefaultPlaybackDevice_Bool = "setOsDefaultPlaybackDevice";
public const string k_pch_audio_EnablePlaybackDeviceOverride_Bool = "enablePlaybackDeviceOverride"; public const string k_pch_audio_EnablePlaybackDeviceOverride_Bool = "enablePlaybackDeviceOverride";
@@ -7680,6 +7820,8 @@ public class OpenVR
public const string k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume"; public const string k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
public const string k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId"; public const string k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
public const string k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
public const string k_pch_audio_MuteMicMonitor_Bool = "muteMicMonitor";
public const string k_pch_Power_Section = "power"; public const string k_pch_Power_Section = "power";
public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
@@ -7693,6 +7835,9 @@ public class OpenVR
public const string k_pch_Dashboard_Position = "position"; public const string k_pch_Dashboard_Position = "position";
public const string k_pch_Dashboard_DesktopScale = "desktopScale"; public const string k_pch_Dashboard_DesktopScale = "desktopScale";
public const string k_pch_Dashboard_DashboardScale = "dashboardScale"; public const string k_pch_Dashboard_DashboardScale = "dashboardScale";
public const string k_pch_Dashboard_UseStandaloneSystemLayer = "standaloneSystemLayer";
public const string k_pch_Dashboard_StickyDashboard = "stickyDashboard";
public const string k_pch_Dashboard_AllowSteamOverlays_Bool = "allowSteamOverlays";
public const string k_pch_modelskin_Section = "modelskins"; public const string k_pch_modelskin_Section = "modelskins";
public const string k_pch_Driver_Enable_Bool = "enable"; public const string k_pch_Driver_Enable_Bool = "enable";
public const string k_pch_Driver_BlockedBySafemode_Bool = "blocked_by_safe_mode"; public const string k_pch_Driver_BlockedBySafemode_Bool = "blocked_by_safe_mode";
@@ -7705,6 +7850,7 @@ public class OpenVR
public const string k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL"; public const string k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL";
public const string k_pch_App_BindingLegacyAPISuffix_String = "_legacy"; public const string k_pch_App_BindingLegacyAPISuffix_String = "_legacy";
public const string k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput"; public const string k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput";
public const string k_pch_App_BindingOpenXRAPISuffix_String = "_openxr";
public const string k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL"; public const string k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL";
public const string k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL"; public const string k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL";
public const string k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave"; public const string k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave";
@@ -7754,6 +7900,7 @@ public class OpenVR
public const string k_pchPathBoundTrackerRole = "/bound_tracker_role"; public const string k_pchPathBoundTrackerRole = "/bound_tracker_role";
public const string k_pchPathPoseRaw = "/pose/raw"; public const string k_pchPathPoseRaw = "/pose/raw";
public const string k_pchPathPoseTip = "/pose/tip"; public const string k_pchPathPoseTip = "/pose/tip";
public const string k_pchPathPoseGrip = "/pose/grip";
public const string k_pchPathSystemButtonClick = "/input/system/click"; public const string k_pchPathSystemButtonClick = "/input/system/click";
public const string k_pchPathProximity = "/proximity"; public const string k_pchPathProximity = "/proximity";
public const string k_pchPathControllerTypePrefix = "/controller_type/"; public const string k_pchPathControllerTypePrefix = "/controller_type/";
@@ -7771,6 +7918,10 @@ public class OpenVR
public const string k_pchPathUserElbowRight = "/user/elbow/right"; public const string k_pchPathUserElbowRight = "/user/elbow/right";
public const string k_pchPathUserKneeLeft = "/user/knee/left"; public const string k_pchPathUserKneeLeft = "/user/knee/left";
public const string k_pchPathUserKneeRight = "/user/knee/right"; public const string k_pchPathUserKneeRight = "/user/knee/right";
public const string k_pchPathUserWristLeft = "/user/wrist/left";
public const string k_pchPathUserWristRight = "/user/wrist/right";
public const string k_pchPathUserAnkleLeft = "/user/ankle/left";
public const string k_pchPathUserAnkleRight = "/user/ankle/right";
public const string k_pchPathUserWaist = "/user/waist"; public const string k_pchPathUserWaist = "/user/waist";
public const string k_pchPathUserChest = "/user/chest"; public const string k_pchPathUserChest = "/user/chest";
public const string k_pchPathUserCamera = "/user/camera"; public const string k_pchPathUserCamera = "/user/camera";
@@ -7778,7 +7929,7 @@ public class OpenVR
public const string k_pchPathClientAppKey = "/client_info/app_key"; public const string k_pchPathClientAppKey = "/client_info/app_key";
public const ulong k_ulInvalidPathHandle = 0; public const ulong k_ulInvalidPathHandle = 0;
public const string IVRPaths_Version = "IVRPaths_001"; public const string IVRPaths_Version = "IVRPaths_001";
public const string IVRBlockQueue_Version = "IVRBlockQueue_004"; public const string IVRBlockQueue_Version = "IVRBlockQueue_005";
static uint VRToken { get; set; } static uint VRToken { get; set; }
@@ -8144,4 +8295,5 @@ public class OpenVR
} }
#endif
+207 -54
View File
@@ -1,4 +1,7 @@
{"typedefs":[{"typedef": "vr::SpatialAnchorHandle_t","type": "uint32_t"} {"typedefs":[{"typedef": "vr::PropertyTypeTag_t","type": "uint32_t"}
,{"typedef": "vr::vrshared_uint64_t","type": "uint64_t"}
,{"typedef": "vr::vrshared_double","type": "double"}
,{"typedef": "vr::SpatialAnchorHandle_t","type": "uint32_t"}
,{"typedef": "vr::glSharedTextureHandle_t","type": "void *"} ,{"typedef": "vr::glSharedTextureHandle_t","type": "void *"}
,{"typedef": "vr::glInt_t","type": "int32_t"} ,{"typedef": "vr::glInt_t","type": "int32_t"}
,{"typedef": "vr::glUInt_t","type": "uint32_t"} ,{"typedef": "vr::glUInt_t","type": "uint32_t"}
@@ -152,6 +155,8 @@
,{"name": "Prop_ManufacturerSerialNumber_String","value": "1049"} ,{"name": "Prop_ManufacturerSerialNumber_String","value": "1049"}
,{"name": "Prop_ComputedSerialNumber_String","value": "1050"} ,{"name": "Prop_ComputedSerialNumber_String","value": "1050"}
,{"name": "Prop_EstimatedDeviceFirstUseTime_Int32","value": "1051"} ,{"name": "Prop_EstimatedDeviceFirstUseTime_Int32","value": "1051"}
,{"name": "Prop_DevicePowerUsage_Float","value": "1052"}
,{"name": "Prop_IgnoreMotionForStandby_Bool","value": "1053"}
,{"name": "Prop_ReportsTimeSinceVSync_Bool","value": "2000"} ,{"name": "Prop_ReportsTimeSinceVSync_Bool","value": "2000"}
,{"name": "Prop_SecondsFromVsyncToPhotons_Float","value": "2001"} ,{"name": "Prop_SecondsFromVsyncToPhotons_Float","value": "2001"}
,{"name": "Prop_DisplayFrequency_Float","value": "2002"} ,{"name": "Prop_DisplayFrequency_Float","value": "2002"}
@@ -228,6 +233,7 @@
,{"name": "Prop_DriverProvidedChaperoneVisibility_Bool","value": "2076"} ,{"name": "Prop_DriverProvidedChaperoneVisibility_Bool","value": "2076"}
,{"name": "Prop_HmdColumnCorrectionSettingPrefix_String","value": "2077"} ,{"name": "Prop_HmdColumnCorrectionSettingPrefix_String","value": "2077"}
,{"name": "Prop_CameraSupportsCompatibilityModes_Bool","value": "2078"} ,{"name": "Prop_CameraSupportsCompatibilityModes_Bool","value": "2078"}
,{"name": "Prop_SupportsRoomViewDepthProjection_Bool","value": "2079"}
,{"name": "Prop_DisplayAvailableFrameRates_Float_Array","value": "2080"} ,{"name": "Prop_DisplayAvailableFrameRates_Float_Array","value": "2080"}
,{"name": "Prop_DisplaySupportsMultipleFramerates_Bool","value": "2081"} ,{"name": "Prop_DisplaySupportsMultipleFramerates_Bool","value": "2081"}
,{"name": "Prop_DisplayColorMultLeft_Vector3","value": "2082"} ,{"name": "Prop_DisplayColorMultLeft_Vector3","value": "2082"}
@@ -236,9 +242,24 @@
,{"name": "Prop_DisplaySupportsAnalogGain_Bool","value": "2085"} ,{"name": "Prop_DisplaySupportsAnalogGain_Bool","value": "2085"}
,{"name": "Prop_DisplayMinAnalogGain_Float","value": "2086"} ,{"name": "Prop_DisplayMinAnalogGain_Float","value": "2086"}
,{"name": "Prop_DisplayMaxAnalogGain_Float","value": "2087"} ,{"name": "Prop_DisplayMaxAnalogGain_Float","value": "2087"}
,{"name": "Prop_CameraExposureTime_Float","value": "2088"}
,{"name": "Prop_CameraGlobalGain_Float","value": "2089"}
,{"name": "Prop_DashboardScale_Float","value": "2091"} ,{"name": "Prop_DashboardScale_Float","value": "2091"}
,{"name": "Prop_PeerButtonInfo_String","value": "2092"}
,{"name": "Prop_Hmd_SupportsHDR10_Bool","value": "2093"}
,{"name": "Prop_Hmd_EnableParallelRenderCameras_Bool","value": "2094"}
,{"name": "Prop_DriverProvidedChaperoneJson_String","value": "2095"}
,{"name": "Prop_IpdUIRangeMinMeters_Float","value": "2100"} ,{"name": "Prop_IpdUIRangeMinMeters_Float","value": "2100"}
,{"name": "Prop_IpdUIRangeMaxMeters_Float","value": "2101"} ,{"name": "Prop_IpdUIRangeMaxMeters_Float","value": "2101"}
,{"name": "Prop_Hmd_SupportsHDCP14LegacyCompat_Bool","value": "2102"}
,{"name": "Prop_Hmd_SupportsMicMonitoring_Bool","value": "2103"}
,{"name": "Prop_Hmd_SupportsDisplayPortTrainingMode_Bool","value": "2104"}
,{"name": "Prop_Hmd_SupportsRoomViewDirect_Bool","value": "2105"}
,{"name": "Prop_Hmd_SupportsAppThrottling_Bool","value": "2106"}
,{"name": "Prop_Hmd_SupportsGpuBusMonitoring_Bool","value": "2107"}
,{"name": "Prop_DSCVersion_Int32","value": "2110"}
,{"name": "Prop_DSCSliceCount_Int32","value": "2111"}
,{"name": "Prop_DSCBPPx16_Int32","value": "2112"}
,{"name": "Prop_DriverRequestedMuraCorrectionMode_Int32","value": "2200"} ,{"name": "Prop_DriverRequestedMuraCorrectionMode_Int32","value": "2200"}
,{"name": "Prop_DriverRequestedMuraFeather_InnerLeft_Int32","value": "2201"} ,{"name": "Prop_DriverRequestedMuraFeather_InnerLeft_Int32","value": "2201"}
,{"name": "Prop_DriverRequestedMuraFeather_InnerRight_Int32","value": "2202"} ,{"name": "Prop_DriverRequestedMuraFeather_InnerRight_Int32","value": "2202"}
@@ -251,6 +272,7 @@
,{"name": "Prop_Audio_DefaultPlaybackDeviceId_String","value": "2300"} ,{"name": "Prop_Audio_DefaultPlaybackDeviceId_String","value": "2300"}
,{"name": "Prop_Audio_DefaultRecordingDeviceId_String","value": "2301"} ,{"name": "Prop_Audio_DefaultRecordingDeviceId_String","value": "2301"}
,{"name": "Prop_Audio_DefaultPlaybackDeviceVolume_Float","value": "2302"} ,{"name": "Prop_Audio_DefaultPlaybackDeviceVolume_Float","value": "2302"}
,{"name": "Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool","value": "2303"}
,{"name": "Prop_AttachedDeviceId_String","value": "3000"} ,{"name": "Prop_AttachedDeviceId_String","value": "3000"}
,{"name": "Prop_SupportedButtons_Uint64","value": "3001"} ,{"name": "Prop_SupportedButtons_Uint64","value": "3001"}
,{"name": "Prop_Axis0Type_Int32","value": "3002"} ,{"name": "Prop_Axis0Type_Int32","value": "3002"}
@@ -329,6 +351,9 @@
,{"name": "Submit_TextureWithDepth","value": "16"} ,{"name": "Submit_TextureWithDepth","value": "16"}
,{"name": "Submit_FrameDiscontinuty","value": "32"} ,{"name": "Submit_FrameDiscontinuty","value": "32"}
,{"name": "Submit_VulkanTextureWithArrayData","value": "64"} ,{"name": "Submit_VulkanTextureWithArrayData","value": "64"}
,{"name": "Submit_GlArrayTexture","value": "128"}
,{"name": "Submit_Reserved2","value": "32768"}
,{"name": "Submit_Reserved3","value": "65536"}
]} ]}
, {"enumname": "vr::EVRState","values": [ , {"enumname": "vr::EVRState","values": [
{"name": "VRState_Undefined","value": "-1"} {"name": "VRState_Undefined","value": "-1"}
@@ -377,13 +402,13 @@
,{"name": "VREvent_InputFocusCaptured","value": "400"} ,{"name": "VREvent_InputFocusCaptured","value": "400"}
,{"name": "VREvent_InputFocusReleased","value": "401"} ,{"name": "VREvent_InputFocusReleased","value": "401"}
,{"name": "VREvent_SceneApplicationChanged","value": "404"} ,{"name": "VREvent_SceneApplicationChanged","value": "404"}
,{"name": "VREvent_SceneFocusChanged","value": "405"}
,{"name": "VREvent_InputFocusChanged","value": "406"} ,{"name": "VREvent_InputFocusChanged","value": "406"}
,{"name": "VREvent_SceneApplicationUsingWrongGraphicsAdapter","value": "408"} ,{"name": "VREvent_SceneApplicationUsingWrongGraphicsAdapter","value": "408"}
,{"name": "VREvent_ActionBindingReloaded","value": "409"} ,{"name": "VREvent_ActionBindingReloaded","value": "409"}
,{"name": "VREvent_HideRenderModels","value": "410"} ,{"name": "VREvent_HideRenderModels","value": "410"}
,{"name": "VREvent_ShowRenderModels","value": "411"} ,{"name": "VREvent_ShowRenderModels","value": "411"}
,{"name": "VREvent_SceneApplicationStateChanged","value": "412"} ,{"name": "VREvent_SceneApplicationStateChanged","value": "412"}
,{"name": "VREvent_SceneAppPipeDisconnected","value": "413"}
,{"name": "VREvent_ConsoleOpened","value": "420"} ,{"name": "VREvent_ConsoleOpened","value": "420"}
,{"name": "VREvent_ConsoleClosed","value": "421"} ,{"name": "VREvent_ConsoleClosed","value": "421"}
,{"name": "VREvent_OverlayShown","value": "500"} ,{"name": "VREvent_OverlayShown","value": "500"}
@@ -412,6 +437,11 @@
,{"name": "VREvent_RoomViewHidden","value": "527"} ,{"name": "VREvent_RoomViewHidden","value": "527"}
,{"name": "VREvent_ShowUI","value": "528"} ,{"name": "VREvent_ShowUI","value": "528"}
,{"name": "VREvent_ShowDevTools","value": "529"} ,{"name": "VREvent_ShowDevTools","value": "529"}
,{"name": "VREvent_DesktopViewUpdating","value": "530"}
,{"name": "VREvent_DesktopViewReady","value": "531"}
,{"name": "VREvent_StartDashboard","value": "532"}
,{"name": "VREvent_ElevatePrism","value": "533"}
,{"name": "VREvent_OverlayClosed","value": "534"}
,{"name": "VREvent_Notification_Shown","value": "600"} ,{"name": "VREvent_Notification_Shown","value": "600"}
,{"name": "VREvent_Notification_Hidden","value": "601"} ,{"name": "VREvent_Notification_Hidden","value": "601"}
,{"name": "VREvent_Notification_BeginInteraction","value": "602"} ,{"name": "VREvent_Notification_BeginInteraction","value": "602"}
@@ -421,6 +451,7 @@
,{"name": "VREvent_QuitAcknowledged","value": "703"} ,{"name": "VREvent_QuitAcknowledged","value": "703"}
,{"name": "VREvent_DriverRequestedQuit","value": "704"} ,{"name": "VREvent_DriverRequestedQuit","value": "704"}
,{"name": "VREvent_RestartRequested","value": "705"} ,{"name": "VREvent_RestartRequested","value": "705"}
,{"name": "VREvent_InvalidateSwapTextureSets","value": "706"}
,{"name": "VREvent_ChaperoneDataHasChanged","value": "800"} ,{"name": "VREvent_ChaperoneDataHasChanged","value": "800"}
,{"name": "VREvent_ChaperoneUniverseHasChanged","value": "801"} ,{"name": "VREvent_ChaperoneUniverseHasChanged","value": "801"}
,{"name": "VREvent_ChaperoneTempDataHasChanged","value": "802"} ,{"name": "VREvent_ChaperoneTempDataHasChanged","value": "802"}
@@ -429,6 +460,7 @@
,{"name": "VREvent_ChaperoneFlushCache","value": "805"} ,{"name": "VREvent_ChaperoneFlushCache","value": "805"}
,{"name": "VREvent_ChaperoneRoomSetupStarting","value": "806"} ,{"name": "VREvent_ChaperoneRoomSetupStarting","value": "806"}
,{"name": "VREvent_ChaperoneRoomSetupFinished","value": "807"} ,{"name": "VREvent_ChaperoneRoomSetupFinished","value": "807"}
,{"name": "VREvent_StandingZeroPoseReset","value": "808"}
,{"name": "VREvent_AudioSettingsHaveChanged","value": "820"} ,{"name": "VREvent_AudioSettingsHaveChanged","value": "820"}
,{"name": "VREvent_BackgroundSettingHasChanged","value": "850"} ,{"name": "VREvent_BackgroundSettingHasChanged","value": "850"}
,{"name": "VREvent_CameraSettingsHaveChanged","value": "851"} ,{"name": "VREvent_CameraSettingsHaveChanged","value": "851"}
@@ -474,6 +506,7 @@
,{"name": "VREvent_Compositor_OutOfVideoMemory","value": "1417"} ,{"name": "VREvent_Compositor_OutOfVideoMemory","value": "1417"}
,{"name": "VREvent_Compositor_DisplayModeNotSupported","value": "1418"} ,{"name": "VREvent_Compositor_DisplayModeNotSupported","value": "1418"}
,{"name": "VREvent_Compositor_StageOverrideReady","value": "1419"} ,{"name": "VREvent_Compositor_StageOverrideReady","value": "1419"}
,{"name": "VREvent_Compositor_RequestDisconnectReconnect","value": "1420"}
,{"name": "VREvent_TrackedCamera_StartVideoStream","value": "1500"} ,{"name": "VREvent_TrackedCamera_StartVideoStream","value": "1500"}
,{"name": "VREvent_TrackedCamera_StopVideoStream","value": "1501"} ,{"name": "VREvent_TrackedCamera_StopVideoStream","value": "1501"}
,{"name": "VREvent_TrackedCamera_PauseVideoStream","value": "1502"} ,{"name": "VREvent_TrackedCamera_PauseVideoStream","value": "1502"}
@@ -532,6 +565,8 @@
,{"name": "k_EButton_IndexController_A","value": "2"} ,{"name": "k_EButton_IndexController_A","value": "2"}
,{"name": "k_EButton_IndexController_B","value": "1"} ,{"name": "k_EButton_IndexController_B","value": "1"}
,{"name": "k_EButton_IndexController_JoyStick","value": "35"} ,{"name": "k_EButton_IndexController_JoyStick","value": "35"}
,{"name": "k_EButton_Reserved0","value": "50"}
,{"name": "k_EButton_Reserved1","value": "51"}
,{"name": "k_EButton_Max","value": "64"} ,{"name": "k_EButton_Max","value": "64"}
]} ]}
, {"enumname": "vr::EVRMouseButton","values": [ , {"enumname": "vr::EVRMouseButton","values": [
@@ -651,6 +686,7 @@
,{"name": "VROverlayError_TextureAlreadyLocked","value": "31"} ,{"name": "VROverlayError_TextureAlreadyLocked","value": "31"}
,{"name": "VROverlayError_TextureLockCapacityReached","value": "32"} ,{"name": "VROverlayError_TextureLockCapacityReached","value": "32"}
,{"name": "VROverlayError_TextureNotLocked","value": "33"} ,{"name": "VROverlayError_TextureNotLocked","value": "33"}
,{"name": "VROverlayError_TimedOut","value": "34"}
]} ]}
, {"enumname": "vr::EVRApplicationType","values": [ , {"enumname": "vr::EVRApplicationType","values": [
{"name": "VRApplication_Other","value": "0"} {"name": "VRApplication_Other","value": "0"}
@@ -662,7 +698,12 @@
,{"name": "VRApplication_SteamWatchdog","value": "6"} ,{"name": "VRApplication_SteamWatchdog","value": "6"}
,{"name": "VRApplication_Bootstrapper","value": "7"} ,{"name": "VRApplication_Bootstrapper","value": "7"}
,{"name": "VRApplication_WebHelper","value": "8"} ,{"name": "VRApplication_WebHelper","value": "8"}
,{"name": "VRApplication_Max","value": "9"} ,{"name": "VRApplication_OpenXRInstance","value": "9"}
,{"name": "VRApplication_OpenXRScene","value": "10"}
,{"name": "VRApplication_OpenXROverlay","value": "11"}
,{"name": "VRApplication_Prism","value": "12"}
,{"name": "VRApplication_RoomView","value": "13"}
,{"name": "VRApplication_Max","value": "14"}
]} ]}
, {"enumname": "vr::EVRFirmwareError","values": [ , {"enumname": "vr::EVRFirmwareError","values": [
{"name": "VRFirmwareError_None","value": "0"} {"name": "VRFirmwareError_None","value": "0"}
@@ -737,6 +778,27 @@
,{"name": "VRInitError_Init_FailedForVrMonitor","value": "144"} ,{"name": "VRInitError_Init_FailedForVrMonitor","value": "144"}
,{"name": "VRInitError_Init_PropertyManagerInitFailed","value": "145"} ,{"name": "VRInitError_Init_PropertyManagerInitFailed","value": "145"}
,{"name": "VRInitError_Init_WebServerFailed","value": "146"} ,{"name": "VRInitError_Init_WebServerFailed","value": "146"}
,{"name": "VRInitError_Init_IllegalTypeTransition","value": "147"}
,{"name": "VRInitError_Init_MismatchedRuntimes","value": "148"}
,{"name": "VRInitError_Init_InvalidProcessId","value": "149"}
,{"name": "VRInitError_Init_VRServiceStartupFailed","value": "150"}
,{"name": "VRInitError_Init_PrismNeedsNewDrivers","value": "151"}
,{"name": "VRInitError_Init_PrismStartupTimedOut","value": "152"}
,{"name": "VRInitError_Init_CouldNotStartPrism","value": "153"}
,{"name": "VRInitError_Init_PrismClientInitFailed","value": "154"}
,{"name": "VRInitError_Init_PrismClientStartFailed","value": "155"}
,{"name": "VRInitError_Init_PrismExitedUnexpectedly","value": "156"}
,{"name": "VRInitError_Init_BadLuid","value": "157"}
,{"name": "VRInitError_Init_NoServerForAppContainer","value": "158"}
,{"name": "VRInitError_Init_DuplicateBootstrapper","value": "159"}
,{"name": "VRInitError_Init_VRDashboardServicePending","value": "160"}
,{"name": "VRInitError_Init_VRDashboardServiceTimeout","value": "161"}
,{"name": "VRInitError_Init_VRDashboardServiceStopped","value": "162"}
,{"name": "VRInitError_Init_VRDashboardAlreadyStarted","value": "163"}
,{"name": "VRInitError_Init_VRDashboardCopyFailed","value": "164"}
,{"name": "VRInitError_Init_VRDashboardTokenFailure","value": "165"}
,{"name": "VRInitError_Init_VRDashboardEnvironmentFailure","value": "166"}
,{"name": "VRInitError_Init_VRDashboardPathFailure","value": "167"}
,{"name": "VRInitError_Driver_Failed","value": "200"} ,{"name": "VRInitError_Driver_Failed","value": "200"}
,{"name": "VRInitError_Driver_Unknown","value": "201"} ,{"name": "VRInitError_Driver_Unknown","value": "201"}
,{"name": "VRInitError_Driver_HmdUnknown","value": "202"} ,{"name": "VRInitError_Driver_HmdUnknown","value": "202"}
@@ -750,6 +812,8 @@
,{"name": "VRInitError_Driver_HmdDriverIdOutOfBounds","value": "211"} ,{"name": "VRInitError_Driver_HmdDriverIdOutOfBounds","value": "211"}
,{"name": "VRInitError_Driver_HmdDisplayMirrored","value": "212"} ,{"name": "VRInitError_Driver_HmdDisplayMirrored","value": "212"}
,{"name": "VRInitError_Driver_HmdDisplayNotFoundLaptop","value": "213"} ,{"name": "VRInitError_Driver_HmdDisplayNotFoundLaptop","value": "213"}
,{"name": "VRInitError_Driver_PeerDriverNotInstalled","value": "214"}
,{"name": "VRInitError_Driver_WirelessHmdNotConnected","value": "215"}
,{"name": "VRInitError_IPC_ServerInitFailed","value": "300"} ,{"name": "VRInitError_IPC_ServerInitFailed","value": "300"}
,{"name": "VRInitError_IPC_ConnectFailed","value": "301"} ,{"name": "VRInitError_IPC_ConnectFailed","value": "301"}
,{"name": "VRInitError_IPC_SharedStateInitFailed","value": "302"} ,{"name": "VRInitError_IPC_SharedStateInitFailed","value": "302"}
@@ -852,8 +916,14 @@
,{"name": "VRInitError_Compositor_CreateOverlayInvalidCall","value": "488"} ,{"name": "VRInitError_Compositor_CreateOverlayInvalidCall","value": "488"}
,{"name": "VRInitError_Compositor_CreateOverlayAlreadyInitialized","value": "489"} ,{"name": "VRInitError_Compositor_CreateOverlayAlreadyInitialized","value": "489"}
,{"name": "VRInitError_Compositor_FailedToCreateMailbox","value": "490"} ,{"name": "VRInitError_Compositor_FailedToCreateMailbox","value": "490"}
,{"name": "VRInitError_Compositor_WindowInterfaceIsNull","value": "491"}
,{"name": "VRInitError_Compositor_SystemLayerCreateInstance","value": "492"}
,{"name": "VRInitError_Compositor_SystemLayerCreateSession","value": "493"}
,{"name": "VRInitError_Compositor_CreateInverseDistortUVs","value": "494"}
,{"name": "VRInitError_Compositor_CreateBackbufferDepth","value": "495"}
,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"} ,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"}
,{"name": "VRInitError_VendorSpecific_WindowsNotInDevMode","value": "1001"} ,{"name": "VRInitError_VendorSpecific_WindowsNotInDevMode","value": "1001"}
,{"name": "VRInitError_VendorSpecific_OculusLinkNotEnabled","value": "1002"}
,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"} ,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"}
,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"} ,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"}
,{"name": "VRInitError_VendorSpecific_HmdFound_NoStoredConfig","value": "1103"} ,{"name": "VRInitError_VendorSpecific_HmdFound_NoStoredConfig","value": "1103"}
@@ -868,6 +938,7 @@
,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataError","value": "1112"} ,{"name": "VRInitError_VendorSpecific_HmdFound_UserDataError","value": "1112"}
,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck","value": "1113"} ,{"name": "VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck","value": "1113"}
,{"name": "VRInitError_VendorSpecific_OculusRuntimeBadInstall","value": "1114"} ,{"name": "VRInitError_VendorSpecific_OculusRuntimeBadInstall","value": "1114"}
,{"name": "VRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1","value": "1115"}
,{"name": "VRInitError_Steam_SteamInstallationNotFound","value": "2000"} ,{"name": "VRInitError_Steam_SteamInstallationNotFound","value": "2000"}
,{"name": "VRInitError_LastError","value": "2001"} ,{"name": "VRInitError_LastError","value": "2001"}
]} ]}
@@ -959,6 +1030,7 @@
,{"name": "VRApplicationError_PropertyNotSet","value": "201"} ,{"name": "VRApplicationError_PropertyNotSet","value": "201"}
,{"name": "VRApplicationError_UnknownProperty","value": "202"} ,{"name": "VRApplicationError_UnknownProperty","value": "202"}
,{"name": "VRApplicationError_InvalidParameter","value": "203"} ,{"name": "VRApplicationError_InvalidParameter","value": "203"}
,{"name": "VRApplicationError_NotImplemented","value": "300"}
]} ]}
, {"enumname": "vr::EVRApplicationProperty","values": [ , {"enumname": "vr::EVRApplicationProperty","values": [
{"name": "VRApplicationProperty_Name_String","value": "0"} {"name": "VRApplicationProperty_Name_String","value": "0"}
@@ -1034,12 +1106,13 @@
{"name": "VROverlayTransform_Invalid","value": "-1"} {"name": "VROverlayTransform_Invalid","value": "-1"}
,{"name": "VROverlayTransform_Absolute","value": "0"} ,{"name": "VROverlayTransform_Absolute","value": "0"}
,{"name": "VROverlayTransform_TrackedDeviceRelative","value": "1"} ,{"name": "VROverlayTransform_TrackedDeviceRelative","value": "1"}
,{"name": "VROverlayTransform_SystemOverlay","value": "2"}
,{"name": "VROverlayTransform_TrackedComponent","value": "3"} ,{"name": "VROverlayTransform_TrackedComponent","value": "3"}
,{"name": "VROverlayTransform_Cursor","value": "4"} ,{"name": "VROverlayTransform_Cursor","value": "4"}
,{"name": "VROverlayTransform_DashboardTab","value": "5"} ,{"name": "VROverlayTransform_DashboardTab","value": "5"}
,{"name": "VROverlayTransform_DashboardThumb","value": "6"} ,{"name": "VROverlayTransform_DashboardThumb","value": "6"}
,{"name": "VROverlayTransform_Mountable","value": "7"} ,{"name": "VROverlayTransform_Mountable","value": "7"}
,{"name": "VROverlayTransform_Projection","value": "8"}
,{"name": "VROverlayTransform_Subview","value": "9"}
]} ]}
, {"enumname": "vr::VROverlayFlags","values": [ , {"enumname": "vr::VROverlayFlags","values": [
{"name": "VROverlayFlags_NoDashboardTab","value": "8"} {"name": "VROverlayFlags_NoDashboardTab","value": "8"}
@@ -1059,6 +1132,8 @@
,{"name": "VROverlayFlags_HideLaserIntersection","value": "524288"} ,{"name": "VROverlayFlags_HideLaserIntersection","value": "524288"}
,{"name": "VROverlayFlags_WantsModalBehavior","value": "1048576"} ,{"name": "VROverlayFlags_WantsModalBehavior","value": "1048576"}
,{"name": "VROverlayFlags_IsPremultiplied","value": "2097152"} ,{"name": "VROverlayFlags_IsPremultiplied","value": "2097152"}
,{"name": "VROverlayFlags_IgnoreTextureAlpha","value": "4194304"}
,{"name": "VROverlayFlags_Reserved","value": "67108864"}
]} ]}
, {"enumname": "vr::VRMessageOverlayResponse","values": [ , {"enumname": "vr::VRMessageOverlayResponse","values": [
{"name": "VRMessageOverlayResponse_ButtonPress_0","value": "0"} {"name": "VRMessageOverlayResponse_ButtonPress_0","value": "0"}
@@ -1117,6 +1192,7 @@
,{"name": "VRRenderModelTextureFormat_BC4","value": "2"} ,{"name": "VRRenderModelTextureFormat_BC4","value": "2"}
,{"name": "VRRenderModelTextureFormat_BC7","value": "3"} ,{"name": "VRRenderModelTextureFormat_BC7","value": "3"}
,{"name": "VRRenderModelTextureFormat_BC7_SRGB","value": "4"} ,{"name": "VRRenderModelTextureFormat_BC7_SRGB","value": "4"}
,{"name": "VRRenderModelTextureFormat_RGBA16_FLOAT","value": "5"}
]} ]}
, {"enumname": "vr::EVRNotificationType","values": [ , {"enumname": "vr::EVRNotificationType","values": [
{"name": "EVRNotificationType_Transient","value": "0"} {"name": "EVRNotificationType_Transient","value": "0"}
@@ -1226,6 +1302,9 @@
,{"name": "BlockQueueRead_New","value": "1"} ,{"name": "BlockQueueRead_New","value": "1"}
,{"name": "BlockQueueRead_Next","value": "2"} ,{"name": "BlockQueueRead_Next","value": "2"}
]} ]}
, {"enumname": "vr::EBlockQueueCreationFlag","values": [
{"name": "BlockQueueFlag_OwnerIsReader","value": "1"}
]}
], ],
"consts":[{ "consts":[{
"constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"} "constname": "k_nDriverNone","consttype": "const uint32_t", "constval": "4294967295"}
@@ -1312,7 +1391,7 @@
,{ ,{
"constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"} "constname": "k_unScreenshotHandleInvalid","consttype": "const uint32_t", "constval": "0"}
,{ ,{
"constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_021"} "constname": "IVRSystem_Version","consttype": "const char *const", "constval": "IVRSystem_022"}
,{ ,{
"constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"} "constname": "IVRExtendedDisplay_Version","consttype": "const char *const", "constval": "IVRExtendedDisplay_001"}
,{ ,{
@@ -1326,11 +1405,11 @@
,{ ,{
"constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_007"} "constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_007"}
,{ ,{
"constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"} "constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_004"}
,{ ,{
"constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_006"} "constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_006"}
,{ ,{
"constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_026"} "constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_027"}
,{ ,{
"constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"} "constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"}
,{ ,{
@@ -1340,7 +1419,7 @@
,{ ,{
"constname": "k_unMaxOverlayIntersectionMaskPrimitivesCount","consttype": "const uint32_t", "constval": "32"} "constname": "k_unMaxOverlayIntersectionMaskPrimitivesCount","consttype": "const uint32_t", "constval": "32"}
,{ ,{
"constname": "IVROverlay_Version","consttype": "const char *const", "constval": "IVROverlay_024"} "constname": "IVROverlay_Version","consttype": "const char *const", "constval": "IVROverlay_027"}
,{ ,{
"constname": "IVROverlayView_Version","consttype": "const char *const", "constval": "IVROverlayView_003"} "constname": "IVROverlayView_Version","consttype": "const char *const", "constval": "IVROverlayView_003"}
,{ ,{
@@ -1409,6 +1488,8 @@
"constname": "k_pch_SteamVR_TrackingLossColor_String","consttype": "const char *const", "constval": "trackingLossColor"} "constname": "k_pch_SteamVR_TrackingLossColor_String","consttype": "const char *const", "constval": "trackingLossColor"}
,{ ,{
"constname": "k_pch_SteamVR_ShowStage_Bool","consttype": "const char *const", "constval": "showStage"} "constname": "k_pch_SteamVR_ShowStage_Bool","consttype": "const char *const", "constval": "showStage"}
,{
"constname": "k_pch_SteamVR_DrawTrackingReferences_Bool","consttype": "const char *const", "constval": "drawTrackingReferences"}
,{ ,{
"constname": "k_pch_SteamVR_ActivateMultipleDrivers_Bool","consttype": "const char *const", "constval": "activateMultipleDrivers"} "constname": "k_pch_SteamVR_ActivateMultipleDrivers_Bool","consttype": "const char *const", "constval": "activateMultipleDrivers"}
,{ ,{
@@ -1429,6 +1510,14 @@
"constname": "k_pch_SteamVR_MotionSmoothing_Bool","consttype": "const char *const", "constval": "motionSmoothing"} "constname": "k_pch_SteamVR_MotionSmoothing_Bool","consttype": "const char *const", "constval": "motionSmoothing"}
,{ ,{
"constname": "k_pch_SteamVR_MotionSmoothingOverride_Int32","consttype": "const char *const", "constval": "motionSmoothingOverride"} "constname": "k_pch_SteamVR_MotionSmoothingOverride_Int32","consttype": "const char *const", "constval": "motionSmoothingOverride"}
,{
"constname": "k_pch_SteamVR_FramesToThrottle_Int32","consttype": "const char *const", "constval": "framesToThrottle"}
,{
"constname": "k_pch_SteamVR_AdditionalFramesToPredict_Int32","consttype": "const char *const", "constval": "additionalFramesToPredict"}
,{
"constname": "k_pch_SteamVR_WorldScale_Float","consttype": "const char *const", "constval": "worldScale"}
,{
"constname": "k_pch_SteamVR_FovScale_Int32","consttype": "const char *const", "constval": "fovScale"}
,{ ,{
"constname": "k_pch_SteamVR_DisableAsyncReprojection_Bool","consttype": "const char *const", "constval": "disableAsync"} "constname": "k_pch_SteamVR_DisableAsyncReprojection_Bool","consttype": "const char *const", "constval": "disableAsync"}
,{ ,{
@@ -1481,8 +1570,6 @@
"constname": "k_pch_SteamVR_DebugInputBinding","consttype": "const char *const", "constval": "debugInputBinding"} "constname": "k_pch_SteamVR_DebugInputBinding","consttype": "const char *const", "constval": "debugInputBinding"}
,{ ,{
"constname": "k_pch_SteamVR_DoNotFadeToGrid","consttype": "const char *const", "constval": "doNotFadeToGrid"} "constname": "k_pch_SteamVR_DoNotFadeToGrid","consttype": "const char *const", "constval": "doNotFadeToGrid"}
,{
"constname": "k_pch_SteamVR_RenderCameraMode","consttype": "const char *const", "constval": "renderCameraMode"}
,{ ,{
"constname": "k_pch_SteamVR_EnableSharedResourceJournaling","consttype": "const char *const", "constval": "enableSharedResourceJournaling"} "constname": "k_pch_SteamVR_EnableSharedResourceJournaling","consttype": "const char *const", "constval": "enableSharedResourceJournaling"}
,{ ,{
@@ -1513,6 +1600,12 @@
"constname": "k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool","consttype": "const char *const", "constval": "blockOculusSDKOnOpenVRLaunchOption"} "constname": "k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool","consttype": "const char *const", "constval": "blockOculusSDKOnOpenVRLaunchOption"}
,{ ,{
"constname": "k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool","consttype": "const char *const", "constval": "blockOculusSDKOnAllLaunches"} "constname": "k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool","consttype": "const char *const", "constval": "blockOculusSDKOnAllLaunches"}
,{
"constname": "k_pch_SteamVR_HDCPLegacyCompatibility_Bool","consttype": "const char *const", "constval": "hdcp14legacyCompatibility"}
,{
"constname": "k_pch_SteamVR_DisplayPortTrainingMode_Int","consttype": "const char *const", "constval": "displayPortTrainingMode"}
,{
"constname": "k_pch_SteamVR_UsePrism_Bool","consttype": "const char *const", "constval": "usePrism"}
,{ ,{
"constname": "k_pch_DirectMode_Section","consttype": "const char *const", "constval": "direct_mode"} "constname": "k_pch_DirectMode_Section","consttype": "const char *const", "constval": "direct_mode"}
,{ ,{
@@ -1615,6 +1708,8 @@
"constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"} "constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"}
,{ ,{
"constname": "k_pch_Perf_GPUProfiling_Bool","consttype": "const char *const", "constval": "GPUProfiling"} "constname": "k_pch_Perf_GPUProfiling_Bool","consttype": "const char *const", "constval": "GPUProfiling"}
,{
"constname": "k_pch_Perf_GpuBusMonitoring_Bool","consttype": "const char *const", "constval": "gpuBusMonitoring"}
,{ ,{
"constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"} "constname": "k_pch_CollisionBounds_Section","consttype": "const char *const", "constval": "collisionBounds"}
,{ ,{
@@ -1644,11 +1739,11 @@
,{ ,{
"constname": "k_pch_Camera_EnableCamera_Bool","consttype": "const char *const", "constval": "enableCamera"} "constname": "k_pch_Camera_EnableCamera_Bool","consttype": "const char *const", "constval": "enableCamera"}
,{ ,{
"constname": "k_pch_Camera_EnableCameraInDashboard_Bool","consttype": "const char *const", "constval": "enableCameraInDashboard"} "constname": "k_pch_Camera_ShowOnController_Bool","consttype": "const char *const", "constval": "showOnController"}
,{ ,{
"constname": "k_pch_Camera_EnableCameraForCollisionBounds_Bool","consttype": "const char *const", "constval": "enableCameraForCollisionBounds"} "constname": "k_pch_Camera_EnableCameraForCollisionBounds_Bool","consttype": "const char *const", "constval": "enableCameraForCollisionBounds"}
,{ ,{
"constname": "k_pch_Camera_EnableCameraForRoomView_Bool","consttype": "const char *const", "constval": "enableCameraForRoomView"} "constname": "k_pch_Camera_RoomView_Int32","consttype": "const char *const", "constval": "roomView"}
,{ ,{
"constname": "k_pch_Camera_BoundsColorGammaR_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaR"} "constname": "k_pch_Camera_BoundsColorGammaR_Int32","consttype": "const char *const", "constval": "cameraBoundsColorGammaR"}
,{ ,{
@@ -1660,7 +1755,7 @@
,{ ,{
"constname": "k_pch_Camera_BoundsStrength_Int32","consttype": "const char *const", "constval": "cameraBoundsStrength"} "constname": "k_pch_Camera_BoundsStrength_Int32","consttype": "const char *const", "constval": "cameraBoundsStrength"}
,{ ,{
"constname": "k_pch_Camera_RoomViewMode_Int32","consttype": "const char *const", "constval": "cameraRoomViewMode"} "constname": "k_pch_Camera_RoomViewStyle_Int32","consttype": "const char *const", "constval": "roomViewStyle"}
,{ ,{
"constname": "k_pch_audio_Section","consttype": "const char *const", "constval": "audio"} "constname": "k_pch_audio_Section","consttype": "const char *const", "constval": "audio"}
,{ ,{
@@ -1695,6 +1790,10 @@
"constname": "k_pch_audio_LastHmdPlaybackDeviceId_String","consttype": "const char *const", "constval": "lastHmdPlaybackDeviceId"} "constname": "k_pch_audio_LastHmdPlaybackDeviceId_String","consttype": "const char *const", "constval": "lastHmdPlaybackDeviceId"}
,{ ,{
"constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"} "constname": "k_pch_audio_VIVEHDMIGain","consttype": "const char *const", "constval": "viveHDMIGain"}
,{
"constname": "k_pch_audio_DualSpeakerAndJackOutput_Bool","consttype": "const char *const", "constval": "dualSpeakerAndJackOutput"}
,{
"constname": "k_pch_audio_MuteMicMonitor_Bool","consttype": "const char *const", "constval": "muteMicMonitor"}
,{ ,{
"constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"} "constname": "k_pch_Power_Section","consttype": "const char *const", "constval": "power"}
,{ ,{
@@ -1721,6 +1820,12 @@
"constname": "k_pch_Dashboard_DesktopScale","consttype": "const char *const", "constval": "desktopScale"} "constname": "k_pch_Dashboard_DesktopScale","consttype": "const char *const", "constval": "desktopScale"}
,{ ,{
"constname": "k_pch_Dashboard_DashboardScale","consttype": "const char *const", "constval": "dashboardScale"} "constname": "k_pch_Dashboard_DashboardScale","consttype": "const char *const", "constval": "dashboardScale"}
,{
"constname": "k_pch_Dashboard_UseStandaloneSystemLayer","consttype": "const char *const", "constval": "standaloneSystemLayer"}
,{
"constname": "k_pch_Dashboard_StickyDashboard","consttype": "const char *const", "constval": "stickyDashboard"}
,{
"constname": "k_pch_Dashboard_AllowSteamOverlays_Bool","consttype": "const char *const", "constval": "allowSteamOverlays"}
,{ ,{
"constname": "k_pch_modelskin_Section","consttype": "const char *const", "constval": "modelskins"} "constname": "k_pch_modelskin_Section","consttype": "const char *const", "constval": "modelskins"}
,{ ,{
@@ -1745,6 +1850,8 @@
"constname": "k_pch_App_BindingLegacyAPISuffix_String","consttype": "const char *const", "constval": "_legacy"} "constname": "k_pch_App_BindingLegacyAPISuffix_String","consttype": "const char *const", "constval": "_legacy"}
,{ ,{
"constname": "k_pch_App_BindingSteamVRInputAPISuffix_String","consttype": "const char *const", "constval": "_steamvrinput"} "constname": "k_pch_App_BindingSteamVRInputAPISuffix_String","consttype": "const char *const", "constval": "_steamvrinput"}
,{
"constname": "k_pch_App_BindingOpenXRAPISuffix_String","consttype": "const char *const", "constval": "_openxr"}
,{ ,{
"constname": "k_pch_App_BindingCurrentURLSuffix_String","consttype": "const char *const", "constval": "CurrentURL"} "constname": "k_pch_App_BindingCurrentURLSuffix_String","consttype": "const char *const", "constval": "CurrentURL"}
,{ ,{
@@ -1843,6 +1950,8 @@
"constname": "k_pchPathPoseRaw","consttype": "const char *", "constval": "/pose/raw"} "constname": "k_pchPathPoseRaw","consttype": "const char *", "constval": "/pose/raw"}
,{ ,{
"constname": "k_pchPathPoseTip","consttype": "const char *", "constval": "/pose/tip"} "constname": "k_pchPathPoseTip","consttype": "const char *", "constval": "/pose/tip"}
,{
"constname": "k_pchPathPoseGrip","consttype": "const char *", "constval": "/pose/grip"}
,{ ,{
"constname": "k_pchPathSystemButtonClick","consttype": "const char *", "constval": "/input/system/click"} "constname": "k_pchPathSystemButtonClick","consttype": "const char *", "constval": "/input/system/click"}
,{ ,{
@@ -1877,6 +1986,14 @@
"constname": "k_pchPathUserKneeLeft","consttype": "const char *", "constval": "/user/knee/left"} "constname": "k_pchPathUserKneeLeft","consttype": "const char *", "constval": "/user/knee/left"}
,{ ,{
"constname": "k_pchPathUserKneeRight","consttype": "const char *", "constval": "/user/knee/right"} "constname": "k_pchPathUserKneeRight","consttype": "const char *", "constval": "/user/knee/right"}
,{
"constname": "k_pchPathUserWristLeft","consttype": "const char *", "constval": "/user/wrist/left"}
,{
"constname": "k_pchPathUserWristRight","consttype": "const char *", "constval": "/user/wrist/right"}
,{
"constname": "k_pchPathUserAnkleLeft","consttype": "const char *", "constval": "/user/ankle/left"}
,{
"constname": "k_pchPathUserAnkleRight","consttype": "const char *", "constval": "/user/ankle/right"}
,{ ,{
"constname": "k_pchPathUserWaist","consttype": "const char *", "constval": "/user/waist"} "constname": "k_pchPathUserWaist","consttype": "const char *", "constval": "/user/waist"}
,{ ,{
@@ -1892,7 +2009,7 @@
,{ ,{
"constname": "IVRPaths_Version","consttype": "const char *const", "constval": "IVRPaths_001"} "constname": "IVRPaths_Version","consttype": "const char *const", "constval": "IVRPaths_001"}
,{ ,{
"constname": "IVRBlockQueue_Version","consttype": "const char *", "constval": "IVRBlockQueue_004"} "constname": "IVRBlockQueue_Version","consttype": "const char *", "constval": "IVRBlockQueue_005"}
], ],
"structs":[{"struct": "vr::HmdMatrix34_t","fields": [ "structs":[{"struct": "vr::HmdMatrix34_t","fields": [
{ "fieldname": "m", "fieldtype": "float [3][4]"}]} { "fieldname": "m", "fieldtype": "float [3][4]"}]}
@@ -1928,6 +2045,9 @@
,{"struct": "vr::HmdRect2_t","fields": [ ,{"struct": "vr::HmdRect2_t","fields": [
{ "fieldname": "vTopLeft", "fieldtype": "struct vr::HmdVector2_t"}, { "fieldname": "vTopLeft", "fieldtype": "struct vr::HmdVector2_t"},
{ "fieldname": "vBottomRight", "fieldtype": "struct vr::HmdVector2_t"}]} { "fieldname": "vBottomRight", "fieldtype": "struct vr::HmdVector2_t"}]}
,{"struct": "vr::VRBoneTransform_t","fields": [
{ "fieldname": "position", "fieldtype": "struct vr::HmdVector4_t"},
{ "fieldname": "orientation", "fieldtype": "struct vr::HmdQuaternionf_t"}]}
,{"struct": "vr::DistortionCoordinates_t","fields": [ ,{"struct": "vr::DistortionCoordinates_t","fields": [
{ "fieldname": "rfRed", "fieldtype": "float [2]"}, { "fieldname": "rfRed", "fieldtype": "float [2]"},
{ "fieldname": "rfGreen", "fieldtype": "float [2]"}, { "fieldname": "rfGreen", "fieldtype": "float [2]"},
@@ -1936,13 +2056,6 @@
{ "fieldname": "handle", "fieldtype": "void *"}, { "fieldname": "handle", "fieldtype": "void *"},
{ "fieldname": "eType", "fieldtype": "enum vr::ETextureType"}, { "fieldname": "eType", "fieldtype": "enum vr::ETextureType"},
{ "fieldname": "eColorSpace", "fieldtype": "enum vr::EColorSpace"}]} { "fieldname": "eColorSpace", "fieldtype": "enum vr::EColorSpace"}]}
,{"struct": "vr::TrackedDevicePose_t","fields": [
{ "fieldname": "mDeviceToAbsoluteTracking", "fieldtype": "struct vr::HmdMatrix34_t"},
{ "fieldname": "vVelocity", "fieldtype": "struct vr::HmdVector3_t"},
{ "fieldname": "vAngularVelocity", "fieldtype": "struct vr::HmdVector3_t"},
{ "fieldname": "eTrackingResult", "fieldtype": "enum vr::ETrackingResult"},
{ "fieldname": "bPoseIsValid", "fieldtype": "_Bool"},
{ "fieldname": "bDeviceIsConnected", "fieldtype": "_Bool"}]}
,{"struct": "vr::VRTextureBounds_t","fields": [ ,{"struct": "vr::VRTextureBounds_t","fields": [
{ "fieldname": "uMin", "fieldtype": "float"}, { "fieldname": "uMin", "fieldtype": "float"},
{ "fieldname": "vMin", "fieldtype": "float"}, { "fieldname": "vMin", "fieldtype": "float"},
@@ -1958,6 +2071,13 @@
{ "fieldname": "depth", "fieldtype": "struct vr::VRTextureDepthInfo_t"}]} { "fieldname": "depth", "fieldtype": "struct vr::VRTextureDepthInfo_t"}]}
,{"struct": "vr::VRTextureWithPoseAndDepth_t","fields": [ ,{"struct": "vr::VRTextureWithPoseAndDepth_t","fields": [
{ "fieldname": "depth", "fieldtype": "struct vr::VRTextureDepthInfo_t"}]} { "fieldname": "depth", "fieldtype": "struct vr::VRTextureDepthInfo_t"}]}
,{"struct": "vr::TrackedDevicePose_t","fields": [
{ "fieldname": "mDeviceToAbsoluteTracking", "fieldtype": "struct vr::HmdMatrix34_t"},
{ "fieldname": "vVelocity", "fieldtype": "struct vr::HmdVector3_t"},
{ "fieldname": "vAngularVelocity", "fieldtype": "struct vr::HmdVector3_t"},
{ "fieldname": "eTrackingResult", "fieldtype": "enum vr::ETrackingResult"},
{ "fieldname": "bPoseIsValid", "fieldtype": "_Bool"},
{ "fieldname": "bDeviceIsConnected", "fieldtype": "_Bool"}]}
,{"struct": "vr::VRVulkanTextureData_t","fields": [ ,{"struct": "vr::VRVulkanTextureData_t","fields": [
{ "fieldname": "m_nImage", "fieldtype": "uint64_t"}, { "fieldname": "m_nImage", "fieldtype": "uint64_t"},
{ "fieldname": "m_pDevice", "fieldtype": "struct VkDevice_T *"}, { "fieldname": "m_pDevice", "fieldtype": "struct VkDevice_T *"},
@@ -2004,7 +2124,8 @@
{ "fieldname": "bConnectionLost", "fieldtype": "_Bool"}]} { "fieldname": "bConnectionLost", "fieldtype": "_Bool"}]}
,{"struct": "vr::VREvent_Overlay_t","fields": [ ,{"struct": "vr::VREvent_Overlay_t","fields": [
{ "fieldname": "overlayHandle", "fieldtype": "uint64_t"}, { "fieldname": "overlayHandle", "fieldtype": "uint64_t"},
{ "fieldname": "devicePath", "fieldtype": "uint64_t"}]} { "fieldname": "devicePath", "fieldtype": "uint64_t"},
{ "fieldname": "memoryBlockId", "fieldtype": "uint64_t"}]}
,{"struct": "vr::VREvent_Status_t","fields": [ ,{"struct": "vr::VREvent_Status_t","fields": [
{ "fieldname": "statusState", "fieldtype": "uint32_t"}]} { "fieldname": "statusState", "fieldtype": "uint32_t"}]}
,{"struct": "vr::VREvent_Keyboard_t","fields": [ ,{"struct": "vr::VREvent_Keyboard_t","fields": [
@@ -2125,9 +2246,6 @@
{ "fieldname": "ulButtonPressed", "fieldtype": "uint64_t"}, { "fieldname": "ulButtonPressed", "fieldtype": "uint64_t"},
{ "fieldname": "ulButtonTouched", "fieldtype": "uint64_t"}, { "fieldname": "ulButtonTouched", "fieldtype": "uint64_t"},
{ "fieldname": "rAxis", "fieldtype": "struct vr::VRControllerAxis_t [5]"}]} { "fieldname": "rAxis", "fieldtype": "struct vr::VRControllerAxis_t [5]"}]}
,{"struct": "vr::VRBoneTransform_t","fields": [
{ "fieldname": "position", "fieldtype": "struct vr::HmdVector4_t"},
{ "fieldname": "orientation", "fieldtype": "struct vr::HmdQuaternionf_t"}]}
,{"struct": "vr::CameraVideoStreamFrameHeader_t","fields": [ ,{"struct": "vr::CameraVideoStreamFrameHeader_t","fields": [
{ "fieldname": "eFrameType", "fieldtype": "enum vr::EVRTrackedCameraFrameType"}, { "fieldname": "eFrameType", "fieldtype": "enum vr::EVRTrackedCameraFrameType"},
{ "fieldname": "nWidth", "fieldtype": "uint32_t"}, { "fieldname": "nWidth", "fieldtype": "uint32_t"},
@@ -2195,7 +2313,14 @@
{ "fieldname": "m_nNumTimedOut", "fieldtype": "uint32_t"}, { "fieldname": "m_nNumTimedOut", "fieldtype": "uint32_t"},
{ "fieldname": "m_nNumFramePresentsTimedOut", "fieldtype": "uint32_t"}, { "fieldname": "m_nNumFramePresentsTimedOut", "fieldtype": "uint32_t"},
{ "fieldname": "m_nNumDroppedFramesTimedOut", "fieldtype": "uint32_t"}, { "fieldname": "m_nNumDroppedFramesTimedOut", "fieldtype": "uint32_t"},
{ "fieldname": "m_nNumReprojectedFramesTimedOut", "fieldtype": "uint32_t"}]} { "fieldname": "m_nNumReprojectedFramesTimedOut", "fieldtype": "uint32_t"},
{ "fieldname": "m_nNumFrameSubmits", "fieldtype": "uint32_t"},
{ "fieldname": "m_flSumCompositorCPUTimeMS", "fieldtype": "vrshared_double"},
{ "fieldname": "m_flSumCompositorGPUTimeMS", "fieldtype": "vrshared_double"},
{ "fieldname": "m_flSumTargetFrameTimes", "fieldtype": "vrshared_double"},
{ "fieldname": "m_flSumApplicationCPUTimeMS", "fieldtype": "vrshared_double"},
{ "fieldname": "m_flSumApplicationGPUTimeMS", "fieldtype": "vrshared_double"},
{ "fieldname": "m_nNumFramesWithDepth", "fieldtype": "uint32_t"}]}
,{"struct": "vr::Compositor_StageRenderSettings","fields": [ ,{"struct": "vr::Compositor_StageRenderSettings","fields": [
{ "fieldname": "m_PrimaryColor", "fieldtype": "struct vr::HmdColor_t"}, { "fieldname": "m_PrimaryColor", "fieldtype": "struct vr::HmdColor_t"},
{ "fieldname": "m_SecondaryColor", "fieldtype": "struct vr::HmdColor_t"}, { "fieldname": "m_SecondaryColor", "fieldtype": "struct vr::HmdColor_t"},
@@ -2229,6 +2354,11 @@
,{"struct": "vr::VROverlayIntersectionMaskPrimitive_t","fields": [ ,{"struct": "vr::VROverlayIntersectionMaskPrimitive_t","fields": [
{ "fieldname": "m_nPrimitiveType", "fieldtype": "enum vr::EVROverlayIntersectionMaskPrimitiveType"}, { "fieldname": "m_nPrimitiveType", "fieldtype": "enum vr::EVROverlayIntersectionMaskPrimitiveType"},
{ "fieldname": "m_Primitive", "fieldtype": "VROverlayIntersectionMaskPrimitive_Data_t"}]} { "fieldname": "m_Primitive", "fieldtype": "VROverlayIntersectionMaskPrimitive_Data_t"}]}
,{"struct": "vr::VROverlayProjection_t","fields": [
{ "fieldname": "fLeft", "fieldtype": "float"},
{ "fieldname": "fRight", "fieldtype": "float"},
{ "fieldname": "fTop", "fieldtype": "float"},
{ "fieldname": "fBottom", "fieldtype": "float"}]}
,{"struct": "vr::VROverlayView_t","fields": [ ,{"struct": "vr::VROverlayView_t","fields": [
{ "fieldname": "overlayHandle", "fieldtype": "VROverlayHandle_t"}, { "fieldname": "overlayHandle", "fieldtype": "VROverlayHandle_t"},
{ "fieldname": "texture", "fieldtype": "struct vr::Texture_t"}, { "fieldname": "texture", "fieldtype": "struct vr::Texture_t"},
@@ -2250,7 +2380,8 @@
{ "fieldname": "unWidth", "fieldtype": "uint16_t"}, { "fieldname": "unWidth", "fieldtype": "uint16_t"},
{ "fieldname": "unHeight", "fieldtype": "uint16_t"}, { "fieldname": "unHeight", "fieldtype": "uint16_t"},
{ "fieldname": "rubTextureMapData", "fieldtype": "const uint8_t *"}, { "fieldname": "rubTextureMapData", "fieldtype": "const uint8_t *"},
{ "fieldname": "format", "fieldtype": "enum vr::EVRRenderModelTextureFormat"}]} { "fieldname": "format", "fieldtype": "enum vr::EVRRenderModelTextureFormat"},
{ "fieldname": "unMipLevels", "fieldtype": "uint16_t"}]}
,{"struct": "vr::RenderModel_t","fields": [ ,{"struct": "vr::RenderModel_t","fields": [
{ "fieldname": "rVertexData", "fieldtype": "const struct vr::RenderModel_Vertex_t *"}, { "fieldname": "rVertexData", "fieldtype": "const struct vr::RenderModel_Vertex_t *"},
{ "fieldname": "unVertexCount", "fieldtype": "uint32_t"}, { "fieldname": "unVertexCount", "fieldtype": "uint32_t"},
@@ -2472,11 +2603,6 @@
{ "paramname": "unTrackedDevicePoseArrayCount" ,"paramtype": "uint32_t"} { "paramname": "unTrackedDevicePoseArrayCount" ,"paramtype": "uint32_t"}
] ]
} }
,{
"classname": "vr::IVRSystem",
"methodname": "ResetSeatedZeroPose",
"returntype": "void"
}
,{ ,{
"classname": "vr::IVRSystem", "classname": "vr::IVRSystem",
"methodname": "GetSeatedZeroPoseToStandingAbsoluteTrackingPose", "methodname": "GetSeatedZeroPoseToStandingAbsoluteTrackingPose",
@@ -3259,6 +3385,14 @@
{ "paramname": "bForce" ,"paramtype": "bool"} { "paramname": "bForce" ,"paramtype": "bool"}
] ]
} }
,{
"classname": "vr::IVRChaperone",
"methodname": "ResetZeroPose",
"returntype": "void",
"params": [
{ "paramname": "eTrackingUniverseOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"}
]
}
,{ ,{
"classname": "vr::IVRChaperoneSetup", "classname": "vr::IVRChaperoneSetup",
"methodname": "CommitWorkingCopy", "methodname": "CommitWorkingCopy",
@@ -3540,7 +3674,7 @@
"returntype": "void", "returntype": "void",
"params": [ "params": [
{ "paramname": "fSeconds" ,"paramtype": "float"}, { "paramname": "fSeconds" ,"paramtype": "float"},
{ "paramname": "bFadeIn" ,"paramtype": "bool"} { "paramname": "bFadeGridIn" ,"paramtype": "bool"}
] ]
} }
,{ ,{
@@ -4023,6 +4157,24 @@
{ "paramname": "pfCurvature" ,"paramtype": "float *"} { "paramname": "pfCurvature" ,"paramtype": "float *"}
] ]
} }
,{
"classname": "vr::IVROverlay",
"methodname": "SetOverlayPreCurvePitch",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "fRadians" ,"paramtype": "float"}
]
}
,{
"classname": "vr::IVROverlay",
"methodname": "GetOverlayPreCurvePitch",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "pfRadians" ,"paramtype": "float *"}
]
}
,{ ,{
"classname": "vr::IVROverlay", "classname": "vr::IVROverlay",
"methodname": "SetOverlayTextureColorSpace", "methodname": "SetOverlayTextureColorSpace",
@@ -4129,26 +4281,6 @@
{ "paramname": "unComponentNameSize" ,"paramtype": "uint32_t"} { "paramname": "unComponentNameSize" ,"paramtype": "uint32_t"}
] ]
} }
,{
"classname": "vr::IVROverlay",
"methodname": "GetOverlayTransformOverlayRelative",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t *"},
{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"}
]
}
,{
"classname": "vr::IVROverlay",
"methodname": "SetOverlayTransformOverlayRelative",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "ulOverlayHandleParent" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "pmatParentOverlayToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"}
]
}
,{ ,{
"classname": "vr::IVROverlay", "classname": "vr::IVROverlay",
"methodname": "SetOverlayTransformCursor", "methodname": "SetOverlayTransformCursor",
@@ -4167,6 +4299,18 @@
{ "paramname": "pvHotspot" ,"paramtype": "struct vr::HmdVector2_t *"} { "paramname": "pvHotspot" ,"paramtype": "struct vr::HmdVector2_t *"}
] ]
} }
,{
"classname": "vr::IVROverlay",
"methodname": "SetOverlayTransformProjection",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "ulOverlayHandle" ,"paramtype": "vr::VROverlayHandle_t"},
{ "paramname": "eTrackingOrigin" ,"paramtype": "vr::ETrackingUniverseOrigin"},
{ "paramname": "pmatTrackingOriginToOverlayTransform" ,"paramtype": "const struct vr::HmdMatrix34_t *"},
{ "paramname": "pProjection" ,"paramtype": "const struct vr::VROverlayProjection_t *"},
{ "paramname": "eEye" ,"paramtype": "vr::EVREye"}
]
}
,{ ,{
"classname": "vr::IVROverlay", "classname": "vr::IVROverlay",
"methodname": "ShowOverlay", "methodname": "ShowOverlay",
@@ -4202,6 +4346,14 @@
{ "paramname": "pmatTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"} { "paramname": "pmatTransform" ,"paramtype": "struct vr::HmdMatrix34_t *"}
] ]
} }
,{
"classname": "vr::IVROverlay",
"methodname": "WaitFrameSync",
"returntype": "vr::EVROverlayError",
"params": [
{ "paramname": "nTimeoutMs" ,"paramtype": "uint32_t"}
]
}
,{ ,{
"classname": "vr::IVROverlay", "classname": "vr::IVROverlay",
"methodname": "PollNextOverlayEvent", "methodname": "PollNextOverlayEvent",
@@ -5609,7 +5761,8 @@
{ "paramname": "pchPath" ,"paramtype": "const char *"}, { "paramname": "pchPath" ,"paramtype": "const char *"},
{ "paramname": "unBlockDataSize" ,"paramtype": "uint32_t"}, { "paramname": "unBlockDataSize" ,"paramtype": "uint32_t"},
{ "paramname": "unBlockHeaderSize" ,"paramtype": "uint32_t"}, { "paramname": "unBlockHeaderSize" ,"paramtype": "uint32_t"},
{ "paramname": "unBlockCount" ,"paramtype": "uint32_t"} { "paramname": "unBlockCount" ,"paramtype": "uint32_t"},
{ "paramname": "unFlags" ,"paramtype": "uint32_t"}
] ]
} }
,{ ,{
+171 -34
View File
@@ -24,7 +24,7 @@
#endif #endif
// OPENVR API export macro // OPENVR API export macro
#if defined( _WIN32 ) && !defined( _X360 ) #if defined( _WIN32 )
#if defined( OPENVR_API_EXPORTS ) #if defined( OPENVR_API_EXPORTS )
#define S_API EXTERN_C __declspec( dllexport ) #define S_API EXTERN_C __declspec( dllexport )
#elif defined( OPENVR_API_NODLL ) #elif defined( OPENVR_API_NODLL )
@@ -61,6 +61,16 @@ typedef uint64_t VRActionSetHandle_t;
typedef uint64_t VRInputValueHandle_t; typedef uint64_t VRInputValueHandle_t;
typedef uint64_t PathHandle_t; typedef uint64_t PathHandle_t;
// 64-bit types that are part of public structures
// that are replicated in shared memory.
#if defined(__linux__) || defined(__APPLE__)
typedef uint64_t vrshared_uint64_t __attribute__ ((aligned(8)));
typedef double vrshared_double __attribute__ ((aligned(8)));
#else
typedef uint64_t vrshared_uint64_t;
typedef double vrshared_double;
#endif
// OpenVR Constants // OpenVR Constants
@@ -106,21 +116,21 @@ static const unsigned long k_unControllerStateAxisCount = 5;
static const unsigned long long k_ulOverlayHandleInvalid = 0; static const unsigned long long k_ulOverlayHandleInvalid = 0;
static const unsigned long k_unMaxDistortionFunctionParameters = 8; static const unsigned long k_unMaxDistortionFunctionParameters = 8;
static const unsigned long k_unScreenshotHandleInvalid = 0; static const unsigned long k_unScreenshotHandleInvalid = 0;
static const char * IVRSystem_Version = "IVRSystem_021"; static const char * IVRSystem_Version = "IVRSystem_022";
static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001"; static const char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001";
static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_006"; static const char * IVRTrackedCamera_Version = "IVRTrackedCamera_006";
static const unsigned long k_unMaxApplicationKeyLength = 128; static const unsigned long k_unMaxApplicationKeyLength = 128;
static const char * k_pch_MimeType_HomeApp = "vr/home"; static const char * k_pch_MimeType_HomeApp = "vr/home";
static const char * k_pch_MimeType_GameTheater = "vr/game_theater"; static const char * k_pch_MimeType_GameTheater = "vr/game_theater";
static const char * IVRApplications_Version = "IVRApplications_007"; static const char * IVRApplications_Version = "IVRApplications_007";
static const char * IVRChaperone_Version = "IVRChaperone_003"; static const char * IVRChaperone_Version = "IVRChaperone_004";
static const char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_006"; static const char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_006";
static const char * IVRCompositor_Version = "IVRCompositor_026"; static const char * IVRCompositor_Version = "IVRCompositor_027";
static const unsigned long k_unVROverlayMaxKeyLength = 128; static const unsigned long k_unVROverlayMaxKeyLength = 128;
static const unsigned long k_unVROverlayMaxNameLength = 128; static const unsigned long k_unVROverlayMaxNameLength = 128;
static const unsigned long k_unMaxOverlayCount = 128; static const unsigned long k_unMaxOverlayCount = 128;
static const unsigned long k_unMaxOverlayIntersectionMaskPrimitivesCount = 32; static const unsigned long k_unMaxOverlayIntersectionMaskPrimitivesCount = 32;
static const char * IVROverlay_Version = "IVROverlay_024"; static const char * IVROverlay_Version = "IVROverlay_027";
static const char * IVROverlayView_Version = "IVROverlayView_003"; static const char * IVROverlayView_Version = "IVROverlayView_003";
static const unsigned long k_unHeadsetViewMaxWidth = 3840; static const unsigned long k_unHeadsetViewMaxWidth = 3840;
static const unsigned long k_unHeadsetViewMaxHeight = 2160; static const unsigned long k_unHeadsetViewMaxHeight = 2160;
@@ -155,6 +165,7 @@ static const char * k_pch_SteamVR_GridColor_String = "gridColor";
static const char * k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; static const char * k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
static const char * k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor"; static const char * k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
static const char * k_pch_SteamVR_ShowStage_Bool = "showStage"; static const char * k_pch_SteamVR_ShowStage_Bool = "showStage";
static const char * k_pch_SteamVR_DrawTrackingReferences_Bool = "drawTrackingReferences";
static const char * k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; static const char * k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; static const char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
@@ -165,6 +176,10 @@ static const char * k_pch_SteamVR_SupersampleScale_Float = "supersampleScale";
static const char * k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution"; static const char * k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
static const char * k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing"; static const char * k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
static const char * k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride"; static const char * k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
static const char * k_pch_SteamVR_FramesToThrottle_Int32 = "framesToThrottle";
static const char * k_pch_SteamVR_AdditionalFramesToPredict_Int32 = "additionalFramesToPredict";
static const char * k_pch_SteamVR_WorldScale_Float = "worldScale";
static const char * k_pch_SteamVR_FovScale_Int32 = "fovScale";
static const char * k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync"; static const char * k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
static const char * k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; static const char * k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
static const char * k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView"; static const char * k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
@@ -191,7 +206,6 @@ static const char * k_pch_SteamVR_HaveStartedTutorialForNativeChaperoneDriver_Bo
static const char * k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor"; static const char * k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor";
static const char * k_pch_SteamVR_DebugInputBinding = "debugInputBinding"; static const char * k_pch_SteamVR_DebugInputBinding = "debugInputBinding";
static const char * k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid"; static const char * k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid";
static const char * k_pch_SteamVR_RenderCameraMode = "renderCameraMode";
static const char * k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling"; static const char * k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling";
static const char * k_pch_SteamVR_EnableSafeMode = "enableSafeMode"; static const char * k_pch_SteamVR_EnableSafeMode = "enableSafeMode";
static const char * k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate"; static const char * k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate";
@@ -207,6 +221,9 @@ static const char * k_pch_SteamVR_AllowGlobalActionSetPriority = "globalActionSe
static const char * k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2"; static const char * k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2";
static const char * k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption"; static const char * k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption";
static const char * k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches"; static const char * k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches";
static const char * k_pch_SteamVR_HDCPLegacyCompatibility_Bool = "hdcp14legacyCompatibility";
static const char * k_pch_SteamVR_DisplayPortTrainingMode_Int = "displayPortTrainingMode";
static const char * k_pch_SteamVR_UsePrism_Bool = "usePrism";
static const char * k_pch_DirectMode_Section = "direct_mode"; static const char * k_pch_DirectMode_Section = "direct_mode";
static const char * k_pch_DirectMode_Enable_Bool = "enable"; static const char * k_pch_DirectMode_Enable_Bool = "enable";
static const char * k_pch_DirectMode_Count_Int32 = "count"; static const char * k_pch_DirectMode_Count_Int32 = "count";
@@ -258,6 +275,7 @@ static const char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
static const char * k_pch_Perf_TestData_Float = "perfTestData"; static const char * k_pch_Perf_TestData_Float = "perfTestData";
static const char * k_pch_Perf_GPUProfiling_Bool = "GPUProfiling"; static const char * k_pch_Perf_GPUProfiling_Bool = "GPUProfiling";
static const char * k_pch_Perf_GpuBusMonitoring_Bool = "gpuBusMonitoring";
static const char * k_pch_CollisionBounds_Section = "collisionBounds"; static const char * k_pch_CollisionBounds_Section = "collisionBounds";
static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle"; static const char * k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle";
static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn"; static const char * k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn";
@@ -272,15 +290,15 @@ static const char * k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsCo
static const char * k_pch_CollisionBounds_EnableDriverImport = "enableDriverBoundsImport"; static const char * k_pch_CollisionBounds_EnableDriverImport = "enableDriverBoundsImport";
static const char * k_pch_Camera_Section = "camera"; static const char * k_pch_Camera_Section = "camera";
static const char * k_pch_Camera_EnableCamera_Bool = "enableCamera"; static const char * k_pch_Camera_EnableCamera_Bool = "enableCamera";
static const char * k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; static const char * k_pch_Camera_ShowOnController_Bool = "showOnController";
static const char * k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; static const char * k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
static const char * k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; static const char * k_pch_Camera_RoomView_Int32 = "roomView";
static const char * k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; static const char * k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
static const char * k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; static const char * k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
static const char * k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; static const char * k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
static const char * k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; static const char * k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
static const char * k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; static const char * k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength";
static const char * k_pch_Camera_RoomViewMode_Int32 = "cameraRoomViewMode"; static const char * k_pch_Camera_RoomViewStyle_Int32 = "roomViewStyle";
static const char * k_pch_audio_Section = "audio"; static const char * k_pch_audio_Section = "audio";
static const char * k_pch_audio_SetOsDefaultPlaybackDevice_Bool = "setOsDefaultPlaybackDevice"; static const char * k_pch_audio_SetOsDefaultPlaybackDevice_Bool = "setOsDefaultPlaybackDevice";
static const char * k_pch_audio_EnablePlaybackDeviceOverride_Bool = "enablePlaybackDeviceOverride"; static const char * k_pch_audio_EnablePlaybackDeviceOverride_Bool = "enablePlaybackDeviceOverride";
@@ -298,6 +316,8 @@ static const char * k_pch_audio_ActiveMirrorDevice_String = "activePlaybackMirro
static const char * k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume"; static const char * k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
static const char * k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId"; static const char * k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; static const char * k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
static const char * k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
static const char * k_pch_audio_MuteMicMonitor_Bool = "muteMicMonitor";
static const char * k_pch_Power_Section = "power"; static const char * k_pch_Power_Section = "power";
static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit"; static const char * k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout"; static const char * k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
@@ -311,6 +331,9 @@ static const char * k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode";
static const char * k_pch_Dashboard_Position = "position"; static const char * k_pch_Dashboard_Position = "position";
static const char * k_pch_Dashboard_DesktopScale = "desktopScale"; static const char * k_pch_Dashboard_DesktopScale = "desktopScale";
static const char * k_pch_Dashboard_DashboardScale = "dashboardScale"; static const char * k_pch_Dashboard_DashboardScale = "dashboardScale";
static const char * k_pch_Dashboard_UseStandaloneSystemLayer = "standaloneSystemLayer";
static const char * k_pch_Dashboard_StickyDashboard = "stickyDashboard";
static const char * k_pch_Dashboard_AllowSteamOverlays_Bool = "allowSteamOverlays";
static const char * k_pch_modelskin_Section = "modelskins"; static const char * k_pch_modelskin_Section = "modelskins";
static const char * k_pch_Driver_Enable_Bool = "enable"; static const char * k_pch_Driver_Enable_Bool = "enable";
static const char * k_pch_Driver_BlockedBySafemode_Bool = "blocked_by_safe_mode"; static const char * k_pch_Driver_BlockedBySafemode_Bool = "blocked_by_safe_mode";
@@ -323,6 +346,7 @@ static const char * k_pch_TrackingOverride_Section = "TrackingOverrides";
static const char * k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL"; static const char * k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL";
static const char * k_pch_App_BindingLegacyAPISuffix_String = "_legacy"; static const char * k_pch_App_BindingLegacyAPISuffix_String = "_legacy";
static const char * k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput"; static const char * k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput";
static const char * k_pch_App_BindingOpenXRAPISuffix_String = "_openxr";
static const char * k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL"; static const char * k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL";
static const char * k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL"; static const char * k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL";
static const char * k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave"; static const char * k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave";
@@ -372,6 +396,7 @@ static const char * k_pchPathBoundTrackerAliasPath = "/bound_tracker_path";
static const char * k_pchPathBoundTrackerRole = "/bound_tracker_role"; static const char * k_pchPathBoundTrackerRole = "/bound_tracker_role";
static const char * k_pchPathPoseRaw = "/pose/raw"; static const char * k_pchPathPoseRaw = "/pose/raw";
static const char * k_pchPathPoseTip = "/pose/tip"; static const char * k_pchPathPoseTip = "/pose/tip";
static const char * k_pchPathPoseGrip = "/pose/grip";
static const char * k_pchPathSystemButtonClick = "/input/system/click"; static const char * k_pchPathSystemButtonClick = "/input/system/click";
static const char * k_pchPathProximity = "/proximity"; static const char * k_pchPathProximity = "/proximity";
static const char * k_pchPathControllerTypePrefix = "/controller_type/"; static const char * k_pchPathControllerTypePrefix = "/controller_type/";
@@ -389,6 +414,10 @@ static const char * k_pchPathUserElbowLeft = "/user/elbow/left";
static const char * k_pchPathUserElbowRight = "/user/elbow/right"; static const char * k_pchPathUserElbowRight = "/user/elbow/right";
static const char * k_pchPathUserKneeLeft = "/user/knee/left"; static const char * k_pchPathUserKneeLeft = "/user/knee/left";
static const char * k_pchPathUserKneeRight = "/user/knee/right"; static const char * k_pchPathUserKneeRight = "/user/knee/right";
static const char * k_pchPathUserWristLeft = "/user/wrist/left";
static const char * k_pchPathUserWristRight = "/user/wrist/right";
static const char * k_pchPathUserAnkleLeft = "/user/ankle/left";
static const char * k_pchPathUserAnkleRight = "/user/ankle/right";
static const char * k_pchPathUserWaist = "/user/waist"; static const char * k_pchPathUserWaist = "/user/waist";
static const char * k_pchPathUserChest = "/user/chest"; static const char * k_pchPathUserChest = "/user/chest";
static const char * k_pchPathUserCamera = "/user/camera"; static const char * k_pchPathUserCamera = "/user/camera";
@@ -396,7 +425,7 @@ static const char * k_pchPathUserKeyboard = "/user/keyboard";
static const char * k_pchPathClientAppKey = "/client_info/app_key"; static const char * k_pchPathClientAppKey = "/client_info/app_key";
static const unsigned long long k_ulInvalidPathHandle = 0; static const unsigned long long k_ulInvalidPathHandle = 0;
static const char * IVRPaths_Version = "IVRPaths_001"; static const char * IVRPaths_Version = "IVRPaths_001";
static const char * IVRBlockQueue_Version = "IVRBlockQueue_004"; static const char * IVRBlockQueue_Version = "IVRBlockQueue_005";
// OpenVR Enums // OpenVR Enums
@@ -527,6 +556,8 @@ typedef enum ETrackedDeviceProperty
ETrackedDeviceProperty_Prop_ManufacturerSerialNumber_String = 1049, ETrackedDeviceProperty_Prop_ManufacturerSerialNumber_String = 1049,
ETrackedDeviceProperty_Prop_ComputedSerialNumber_String = 1050, ETrackedDeviceProperty_Prop_ComputedSerialNumber_String = 1050,
ETrackedDeviceProperty_Prop_EstimatedDeviceFirstUseTime_Int32 = 1051, ETrackedDeviceProperty_Prop_EstimatedDeviceFirstUseTime_Int32 = 1051,
ETrackedDeviceProperty_Prop_DevicePowerUsage_Float = 1052,
ETrackedDeviceProperty_Prop_IgnoreMotionForStandby_Bool = 1053,
ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000, ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000,
ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001, ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001,
ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002, ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002,
@@ -603,6 +634,7 @@ typedef enum ETrackedDeviceProperty
ETrackedDeviceProperty_Prop_DriverProvidedChaperoneVisibility_Bool = 2076, ETrackedDeviceProperty_Prop_DriverProvidedChaperoneVisibility_Bool = 2076,
ETrackedDeviceProperty_Prop_HmdColumnCorrectionSettingPrefix_String = 2077, ETrackedDeviceProperty_Prop_HmdColumnCorrectionSettingPrefix_String = 2077,
ETrackedDeviceProperty_Prop_CameraSupportsCompatibilityModes_Bool = 2078, ETrackedDeviceProperty_Prop_CameraSupportsCompatibilityModes_Bool = 2078,
ETrackedDeviceProperty_Prop_SupportsRoomViewDepthProjection_Bool = 2079,
ETrackedDeviceProperty_Prop_DisplayAvailableFrameRates_Float_Array = 2080, ETrackedDeviceProperty_Prop_DisplayAvailableFrameRates_Float_Array = 2080,
ETrackedDeviceProperty_Prop_DisplaySupportsMultipleFramerates_Bool = 2081, ETrackedDeviceProperty_Prop_DisplaySupportsMultipleFramerates_Bool = 2081,
ETrackedDeviceProperty_Prop_DisplayColorMultLeft_Vector3 = 2082, ETrackedDeviceProperty_Prop_DisplayColorMultLeft_Vector3 = 2082,
@@ -611,9 +643,24 @@ typedef enum ETrackedDeviceProperty
ETrackedDeviceProperty_Prop_DisplaySupportsAnalogGain_Bool = 2085, ETrackedDeviceProperty_Prop_DisplaySupportsAnalogGain_Bool = 2085,
ETrackedDeviceProperty_Prop_DisplayMinAnalogGain_Float = 2086, ETrackedDeviceProperty_Prop_DisplayMinAnalogGain_Float = 2086,
ETrackedDeviceProperty_Prop_DisplayMaxAnalogGain_Float = 2087, ETrackedDeviceProperty_Prop_DisplayMaxAnalogGain_Float = 2087,
ETrackedDeviceProperty_Prop_CameraExposureTime_Float = 2088,
ETrackedDeviceProperty_Prop_CameraGlobalGain_Float = 2089,
ETrackedDeviceProperty_Prop_DashboardScale_Float = 2091, ETrackedDeviceProperty_Prop_DashboardScale_Float = 2091,
ETrackedDeviceProperty_Prop_PeerButtonInfo_String = 2092,
ETrackedDeviceProperty_Prop_Hmd_SupportsHDR10_Bool = 2093,
ETrackedDeviceProperty_Prop_Hmd_EnableParallelRenderCameras_Bool = 2094,
ETrackedDeviceProperty_Prop_DriverProvidedChaperoneJson_String = 2095,
ETrackedDeviceProperty_Prop_IpdUIRangeMinMeters_Float = 2100, ETrackedDeviceProperty_Prop_IpdUIRangeMinMeters_Float = 2100,
ETrackedDeviceProperty_Prop_IpdUIRangeMaxMeters_Float = 2101, ETrackedDeviceProperty_Prop_IpdUIRangeMaxMeters_Float = 2101,
ETrackedDeviceProperty_Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102,
ETrackedDeviceProperty_Prop_Hmd_SupportsMicMonitoring_Bool = 2103,
ETrackedDeviceProperty_Prop_Hmd_SupportsDisplayPortTrainingMode_Bool = 2104,
ETrackedDeviceProperty_Prop_Hmd_SupportsRoomViewDirect_Bool = 2105,
ETrackedDeviceProperty_Prop_Hmd_SupportsAppThrottling_Bool = 2106,
ETrackedDeviceProperty_Prop_Hmd_SupportsGpuBusMonitoring_Bool = 2107,
ETrackedDeviceProperty_Prop_DSCVersion_Int32 = 2110,
ETrackedDeviceProperty_Prop_DSCSliceCount_Int32 = 2111,
ETrackedDeviceProperty_Prop_DSCBPPx16_Int32 = 2112,
ETrackedDeviceProperty_Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200, ETrackedDeviceProperty_Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
ETrackedDeviceProperty_Prop_DriverRequestedMuraFeather_InnerLeft_Int32 = 2201, ETrackedDeviceProperty_Prop_DriverRequestedMuraFeather_InnerLeft_Int32 = 2201,
ETrackedDeviceProperty_Prop_DriverRequestedMuraFeather_InnerRight_Int32 = 2202, ETrackedDeviceProperty_Prop_DriverRequestedMuraFeather_InnerRight_Int32 = 2202,
@@ -626,6 +673,7 @@ typedef enum ETrackedDeviceProperty
ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceId_String = 2300, ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
ETrackedDeviceProperty_Prop_Audio_DefaultRecordingDeviceId_String = 2301, ETrackedDeviceProperty_Prop_Audio_DefaultRecordingDeviceId_String = 2301,
ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302, ETrackedDeviceProperty_Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
ETrackedDeviceProperty_Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000,
ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001,
ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002,
@@ -710,6 +758,9 @@ typedef enum EVRSubmitFlags
EVRSubmitFlags_Submit_TextureWithDepth = 16, EVRSubmitFlags_Submit_TextureWithDepth = 16,
EVRSubmitFlags_Submit_FrameDiscontinuty = 32, EVRSubmitFlags_Submit_FrameDiscontinuty = 32,
EVRSubmitFlags_Submit_VulkanTextureWithArrayData = 64, EVRSubmitFlags_Submit_VulkanTextureWithArrayData = 64,
EVRSubmitFlags_Submit_GlArrayTexture = 128,
EVRSubmitFlags_Submit_Reserved2 = 32768,
EVRSubmitFlags_Submit_Reserved3 = 65536,
} EVRSubmitFlags; } EVRSubmitFlags;
typedef enum EVRState typedef enum EVRState
@@ -762,13 +813,13 @@ typedef enum EVREventType
EVREventType_VREvent_InputFocusCaptured = 400, EVREventType_VREvent_InputFocusCaptured = 400,
EVREventType_VREvent_InputFocusReleased = 401, EVREventType_VREvent_InputFocusReleased = 401,
EVREventType_VREvent_SceneApplicationChanged = 404, EVREventType_VREvent_SceneApplicationChanged = 404,
EVREventType_VREvent_SceneFocusChanged = 405,
EVREventType_VREvent_InputFocusChanged = 406, EVREventType_VREvent_InputFocusChanged = 406,
EVREventType_VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, EVREventType_VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408,
EVREventType_VREvent_ActionBindingReloaded = 409, EVREventType_VREvent_ActionBindingReloaded = 409,
EVREventType_VREvent_HideRenderModels = 410, EVREventType_VREvent_HideRenderModels = 410,
EVREventType_VREvent_ShowRenderModels = 411, EVREventType_VREvent_ShowRenderModels = 411,
EVREventType_VREvent_SceneApplicationStateChanged = 412, EVREventType_VREvent_SceneApplicationStateChanged = 412,
EVREventType_VREvent_SceneAppPipeDisconnected = 413,
EVREventType_VREvent_ConsoleOpened = 420, EVREventType_VREvent_ConsoleOpened = 420,
EVREventType_VREvent_ConsoleClosed = 421, EVREventType_VREvent_ConsoleClosed = 421,
EVREventType_VREvent_OverlayShown = 500, EVREventType_VREvent_OverlayShown = 500,
@@ -797,6 +848,11 @@ typedef enum EVREventType
EVREventType_VREvent_RoomViewHidden = 527, EVREventType_VREvent_RoomViewHidden = 527,
EVREventType_VREvent_ShowUI = 528, EVREventType_VREvent_ShowUI = 528,
EVREventType_VREvent_ShowDevTools = 529, EVREventType_VREvent_ShowDevTools = 529,
EVREventType_VREvent_DesktopViewUpdating = 530,
EVREventType_VREvent_DesktopViewReady = 531,
EVREventType_VREvent_StartDashboard = 532,
EVREventType_VREvent_ElevatePrism = 533,
EVREventType_VREvent_OverlayClosed = 534,
EVREventType_VREvent_Notification_Shown = 600, EVREventType_VREvent_Notification_Shown = 600,
EVREventType_VREvent_Notification_Hidden = 601, EVREventType_VREvent_Notification_Hidden = 601,
EVREventType_VREvent_Notification_BeginInteraction = 602, EVREventType_VREvent_Notification_BeginInteraction = 602,
@@ -806,6 +862,7 @@ typedef enum EVREventType
EVREventType_VREvent_QuitAcknowledged = 703, EVREventType_VREvent_QuitAcknowledged = 703,
EVREventType_VREvent_DriverRequestedQuit = 704, EVREventType_VREvent_DriverRequestedQuit = 704,
EVREventType_VREvent_RestartRequested = 705, EVREventType_VREvent_RestartRequested = 705,
EVREventType_VREvent_InvalidateSwapTextureSets = 706,
EVREventType_VREvent_ChaperoneDataHasChanged = 800, EVREventType_VREvent_ChaperoneDataHasChanged = 800,
EVREventType_VREvent_ChaperoneUniverseHasChanged = 801, EVREventType_VREvent_ChaperoneUniverseHasChanged = 801,
EVREventType_VREvent_ChaperoneTempDataHasChanged = 802, EVREventType_VREvent_ChaperoneTempDataHasChanged = 802,
@@ -814,6 +871,7 @@ typedef enum EVREventType
EVREventType_VREvent_ChaperoneFlushCache = 805, EVREventType_VREvent_ChaperoneFlushCache = 805,
EVREventType_VREvent_ChaperoneRoomSetupStarting = 806, EVREventType_VREvent_ChaperoneRoomSetupStarting = 806,
EVREventType_VREvent_ChaperoneRoomSetupFinished = 807, EVREventType_VREvent_ChaperoneRoomSetupFinished = 807,
EVREventType_VREvent_StandingZeroPoseReset = 808,
EVREventType_VREvent_AudioSettingsHaveChanged = 820, EVREventType_VREvent_AudioSettingsHaveChanged = 820,
EVREventType_VREvent_BackgroundSettingHasChanged = 850, EVREventType_VREvent_BackgroundSettingHasChanged = 850,
EVREventType_VREvent_CameraSettingsHaveChanged = 851, EVREventType_VREvent_CameraSettingsHaveChanged = 851,
@@ -859,6 +917,7 @@ typedef enum EVREventType
EVREventType_VREvent_Compositor_OutOfVideoMemory = 1417, EVREventType_VREvent_Compositor_OutOfVideoMemory = 1417,
EVREventType_VREvent_Compositor_DisplayModeNotSupported = 1418, EVREventType_VREvent_Compositor_DisplayModeNotSupported = 1418,
EVREventType_VREvent_Compositor_StageOverrideReady = 1419, EVREventType_VREvent_Compositor_StageOverrideReady = 1419,
EVREventType_VREvent_Compositor_RequestDisconnectReconnect = 1420,
EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500, EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500,
EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501, EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501,
EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502, EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502,
@@ -921,6 +980,8 @@ typedef enum EVRButtonId
EVRButtonId_k_EButton_IndexController_A = 2, EVRButtonId_k_EButton_IndexController_A = 2,
EVRButtonId_k_EButton_IndexController_B = 1, EVRButtonId_k_EButton_IndexController_B = 1,
EVRButtonId_k_EButton_IndexController_JoyStick = 35, EVRButtonId_k_EButton_IndexController_JoyStick = 35,
EVRButtonId_k_EButton_Reserved0 = 50,
EVRButtonId_k_EButton_Reserved1 = 51,
EVRButtonId_k_EButton_Max = 64, EVRButtonId_k_EButton_Max = 64,
} EVRButtonId; } EVRButtonId;
@@ -1062,6 +1123,7 @@ typedef enum EVROverlayError
EVROverlayError_VROverlayError_TextureAlreadyLocked = 31, EVROverlayError_VROverlayError_TextureAlreadyLocked = 31,
EVROverlayError_VROverlayError_TextureLockCapacityReached = 32, EVROverlayError_VROverlayError_TextureLockCapacityReached = 32,
EVROverlayError_VROverlayError_TextureNotLocked = 33, EVROverlayError_VROverlayError_TextureNotLocked = 33,
EVROverlayError_VROverlayError_TimedOut = 34,
} EVROverlayError; } EVROverlayError;
typedef enum EVRApplicationType typedef enum EVRApplicationType
@@ -1075,7 +1137,12 @@ typedef enum EVRApplicationType
EVRApplicationType_VRApplication_SteamWatchdog = 6, EVRApplicationType_VRApplication_SteamWatchdog = 6,
EVRApplicationType_VRApplication_Bootstrapper = 7, EVRApplicationType_VRApplication_Bootstrapper = 7,
EVRApplicationType_VRApplication_WebHelper = 8, EVRApplicationType_VRApplication_WebHelper = 8,
EVRApplicationType_VRApplication_Max = 9, EVRApplicationType_VRApplication_OpenXRInstance = 9,
EVRApplicationType_VRApplication_OpenXRScene = 10,
EVRApplicationType_VRApplication_OpenXROverlay = 11,
EVRApplicationType_VRApplication_Prism = 12,
EVRApplicationType_VRApplication_RoomView = 13,
EVRApplicationType_VRApplication_Max = 14,
} EVRApplicationType; } EVRApplicationType;
typedef enum EVRFirmwareError typedef enum EVRFirmwareError
@@ -1160,6 +1227,27 @@ typedef enum EVRInitError
EVRInitError_VRInitError_Init_FailedForVrMonitor = 144, EVRInitError_VRInitError_Init_FailedForVrMonitor = 144,
EVRInitError_VRInitError_Init_PropertyManagerInitFailed = 145, EVRInitError_VRInitError_Init_PropertyManagerInitFailed = 145,
EVRInitError_VRInitError_Init_WebServerFailed = 146, EVRInitError_VRInitError_Init_WebServerFailed = 146,
EVRInitError_VRInitError_Init_IllegalTypeTransition = 147,
EVRInitError_VRInitError_Init_MismatchedRuntimes = 148,
EVRInitError_VRInitError_Init_InvalidProcessId = 149,
EVRInitError_VRInitError_Init_VRServiceStartupFailed = 150,
EVRInitError_VRInitError_Init_PrismNeedsNewDrivers = 151,
EVRInitError_VRInitError_Init_PrismStartupTimedOut = 152,
EVRInitError_VRInitError_Init_CouldNotStartPrism = 153,
EVRInitError_VRInitError_Init_PrismClientInitFailed = 154,
EVRInitError_VRInitError_Init_PrismClientStartFailed = 155,
EVRInitError_VRInitError_Init_PrismExitedUnexpectedly = 156,
EVRInitError_VRInitError_Init_BadLuid = 157,
EVRInitError_VRInitError_Init_NoServerForAppContainer = 158,
EVRInitError_VRInitError_Init_DuplicateBootstrapper = 159,
EVRInitError_VRInitError_Init_VRDashboardServicePending = 160,
EVRInitError_VRInitError_Init_VRDashboardServiceTimeout = 161,
EVRInitError_VRInitError_Init_VRDashboardServiceStopped = 162,
EVRInitError_VRInitError_Init_VRDashboardAlreadyStarted = 163,
EVRInitError_VRInitError_Init_VRDashboardCopyFailed = 164,
EVRInitError_VRInitError_Init_VRDashboardTokenFailure = 165,
EVRInitError_VRInitError_Init_VRDashboardEnvironmentFailure = 166,
EVRInitError_VRInitError_Init_VRDashboardPathFailure = 167,
EVRInitError_VRInitError_Driver_Failed = 200, EVRInitError_VRInitError_Driver_Failed = 200,
EVRInitError_VRInitError_Driver_Unknown = 201, EVRInitError_VRInitError_Driver_Unknown = 201,
EVRInitError_VRInitError_Driver_HmdUnknown = 202, EVRInitError_VRInitError_Driver_HmdUnknown = 202,
@@ -1173,6 +1261,8 @@ typedef enum EVRInitError
EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211, EVRInitError_VRInitError_Driver_HmdDriverIdOutOfBounds = 211,
EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212, EVRInitError_VRInitError_Driver_HmdDisplayMirrored = 212,
EVRInitError_VRInitError_Driver_HmdDisplayNotFoundLaptop = 213, EVRInitError_VRInitError_Driver_HmdDisplayNotFoundLaptop = 213,
EVRInitError_VRInitError_Driver_PeerDriverNotInstalled = 214,
EVRInitError_VRInitError_Driver_WirelessHmdNotConnected = 215,
EVRInitError_VRInitError_IPC_ServerInitFailed = 300, EVRInitError_VRInitError_IPC_ServerInitFailed = 300,
EVRInitError_VRInitError_IPC_ConnectFailed = 301, EVRInitError_VRInitError_IPC_ConnectFailed = 301,
EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302, EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302,
@@ -1275,8 +1365,14 @@ typedef enum EVRInitError
EVRInitError_VRInitError_Compositor_CreateOverlayInvalidCall = 488, EVRInitError_VRInitError_Compositor_CreateOverlayInvalidCall = 488,
EVRInitError_VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489, EVRInitError_VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489,
EVRInitError_VRInitError_Compositor_FailedToCreateMailbox = 490, EVRInitError_VRInitError_Compositor_FailedToCreateMailbox = 490,
EVRInitError_VRInitError_Compositor_WindowInterfaceIsNull = 491,
EVRInitError_VRInitError_Compositor_SystemLayerCreateInstance = 492,
EVRInitError_VRInitError_Compositor_SystemLayerCreateSession = 493,
EVRInitError_VRInitError_Compositor_CreateInverseDistortUVs = 494,
EVRInitError_VRInitError_Compositor_CreateBackbufferDepth = 495,
EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
EVRInitError_VRInitError_VendorSpecific_WindowsNotInDevMode = 1001, EVRInitError_VRInitError_VendorSpecific_WindowsNotInDevMode = 1001,
EVRInitError_VRInitError_VendorSpecific_OculusLinkNotEnabled = 1002,
EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103,
@@ -1291,6 +1387,7 @@ typedef enum EVRInitError
EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112,
EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,
EVRInitError_VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114, EVRInitError_VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114,
EVRInitError_VRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1 = 1115,
EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000, EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000,
EVRInitError_VRInitError_LastError = 2001, EVRInitError_VRInitError_LastError = 2001,
} EVRInitError; } EVRInitError;
@@ -1402,6 +1499,7 @@ typedef enum EVRApplicationError
EVRApplicationError_VRApplicationError_PropertyNotSet = 201, EVRApplicationError_VRApplicationError_PropertyNotSet = 201,
EVRApplicationError_VRApplicationError_UnknownProperty = 202, EVRApplicationError_VRApplicationError_UnknownProperty = 202,
EVRApplicationError_VRApplicationError_InvalidParameter = 203, EVRApplicationError_VRApplicationError_InvalidParameter = 203,
EVRApplicationError_VRApplicationError_NotImplemented = 300,
} EVRApplicationError; } EVRApplicationError;
typedef enum EVRApplicationProperty typedef enum EVRApplicationProperty
@@ -1495,12 +1593,13 @@ typedef enum VROverlayTransformType
VROverlayTransformType_VROverlayTransform_Invalid = -1, VROverlayTransformType_VROverlayTransform_Invalid = -1,
VROverlayTransformType_VROverlayTransform_Absolute = 0, VROverlayTransformType_VROverlayTransform_Absolute = 0,
VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1, VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1,
VROverlayTransformType_VROverlayTransform_SystemOverlay = 2,
VROverlayTransformType_VROverlayTransform_TrackedComponent = 3, VROverlayTransformType_VROverlayTransform_TrackedComponent = 3,
VROverlayTransformType_VROverlayTransform_Cursor = 4, VROverlayTransformType_VROverlayTransform_Cursor = 4,
VROverlayTransformType_VROverlayTransform_DashboardTab = 5, VROverlayTransformType_VROverlayTransform_DashboardTab = 5,
VROverlayTransformType_VROverlayTransform_DashboardThumb = 6, VROverlayTransformType_VROverlayTransform_DashboardThumb = 6,
VROverlayTransformType_VROverlayTransform_Mountable = 7, VROverlayTransformType_VROverlayTransform_Mountable = 7,
VROverlayTransformType_VROverlayTransform_Projection = 8,
VROverlayTransformType_VROverlayTransform_Subview = 9,
} VROverlayTransformType; } VROverlayTransformType;
typedef enum VROverlayFlags typedef enum VROverlayFlags
@@ -1522,6 +1621,8 @@ typedef enum VROverlayFlags
VROverlayFlags_HideLaserIntersection = 524288, VROverlayFlags_HideLaserIntersection = 524288,
VROverlayFlags_WantsModalBehavior = 1048576, VROverlayFlags_WantsModalBehavior = 1048576,
VROverlayFlags_IsPremultiplied = 2097152, VROverlayFlags_IsPremultiplied = 2097152,
VROverlayFlags_IgnoreTextureAlpha = 4194304,
VROverlayFlags_Reserved = 67108864,
} VROverlayFlags; } VROverlayFlags;
typedef enum VRMessageOverlayResponse typedef enum VRMessageOverlayResponse
@@ -1598,6 +1699,7 @@ typedef enum EVRRenderModelTextureFormat
EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC4 = 2, EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC4 = 2,
EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7 = 3, EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7 = 3,
EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7_SRGB = 4, EVRRenderModelTextureFormat_VRRenderModelTextureFormat_BC7_SRGB = 4,
EVRRenderModelTextureFormat_VRRenderModelTextureFormat_RGBA16_FLOAT = 5,
} EVRRenderModelTextureFormat; } EVRRenderModelTextureFormat;
typedef enum EVRNotificationType typedef enum EVRNotificationType
@@ -1742,6 +1844,11 @@ typedef enum EBlockQueueReadType
EBlockQueueReadType_BlockQueueRead_Next = 2, EBlockQueueReadType_BlockQueueRead_Next = 2,
} EBlockQueueReadType; } EBlockQueueReadType;
typedef enum EBlockQueueCreationFlag
{
EBlockQueueCreationFlag_BlockQueueFlag_OwnerIsReader = 1,
} EBlockQueueCreationFlag;
// OpenVR typedefs // OpenVR typedefs
@@ -1749,6 +1856,7 @@ typedef uint32_t TrackedDeviceIndex_t;
typedef uint32_t VRNotificationId; typedef uint32_t VRNotificationId;
typedef uint64_t VROverlayHandle_t; typedef uint64_t VROverlayHandle_t;
typedef uint32_t PropertyTypeTag_t;
typedef uint32_t SpatialAnchorHandle_t; typedef uint32_t SpatialAnchorHandle_t;
typedef void * glSharedTextureHandle_t; typedef void * glSharedTextureHandle_t;
typedef int32_t glInt_t; typedef int32_t glInt_t;
@@ -1861,6 +1969,12 @@ typedef struct HmdRect2_t
struct HmdVector2_t vBottomRight; struct HmdVector2_t vBottomRight;
} HmdRect2_t; } HmdRect2_t;
typedef struct VRBoneTransform_t
{
struct HmdVector4_t position;
struct HmdQuaternionf_t orientation;
} VRBoneTransform_t;
typedef struct DistortionCoordinates_t typedef struct DistortionCoordinates_t
{ {
float rfRed[2]; //float[2] float rfRed[2]; //float[2]
@@ -1875,16 +1989,6 @@ typedef struct Texture_t
enum EColorSpace eColorSpace; enum EColorSpace eColorSpace;
} Texture_t; } Texture_t;
typedef struct TrackedDevicePose_t
{
struct HmdMatrix34_t mDeviceToAbsoluteTracking;
struct HmdVector3_t vVelocity;
struct HmdVector3_t vAngularVelocity;
enum ETrackingResult eTrackingResult;
bool bPoseIsValid;
bool bDeviceIsConnected;
} TrackedDevicePose_t;
typedef struct VRTextureBounds_t typedef struct VRTextureBounds_t
{ {
float uMin; float uMin;
@@ -1895,6 +1999,9 @@ typedef struct VRTextureBounds_t
typedef struct VRTextureWithPose_t typedef struct VRTextureWithPose_t
{ {
void * handle; // void *
enum ETextureType eType;
enum EColorSpace eColorSpace;
struct HmdMatrix34_t mDeviceToAbsoluteTracking; struct HmdMatrix34_t mDeviceToAbsoluteTracking;
} VRTextureWithPose_t; } VRTextureWithPose_t;
@@ -1907,14 +2014,31 @@ typedef struct VRTextureDepthInfo_t
typedef struct VRTextureWithDepth_t typedef struct VRTextureWithDepth_t
{ {
void * handle; // void *
enum ETextureType eType;
enum EColorSpace eColorSpace;
struct VRTextureDepthInfo_t depth; struct VRTextureDepthInfo_t depth;
} VRTextureWithDepth_t; } VRTextureWithDepth_t;
typedef struct VRTextureWithPoseAndDepth_t typedef struct VRTextureWithPoseAndDepth_t
{ {
void * handle; // void *
enum ETextureType eType;
enum EColorSpace eColorSpace;
struct HmdMatrix34_t mDeviceToAbsoluteTracking;
struct VRTextureDepthInfo_t depth; struct VRTextureDepthInfo_t depth;
} VRTextureWithPoseAndDepth_t; } VRTextureWithPoseAndDepth_t;
typedef struct TrackedDevicePose_t
{
struct HmdMatrix34_t mDeviceToAbsoluteTracking;
struct HmdVector3_t vVelocity;
struct HmdVector3_t vAngularVelocity;
enum ETrackingResult eTrackingResult;
bool bPoseIsValid;
bool bDeviceIsConnected;
} TrackedDevicePose_t;
typedef struct VRVulkanTextureData_t typedef struct VRVulkanTextureData_t
{ {
uint64_t m_nImage; uint64_t m_nImage;
@@ -1990,6 +2114,7 @@ typedef struct VREvent_Overlay_t
{ {
uint64_t overlayHandle; uint64_t overlayHandle;
uint64_t devicePath; uint64_t devicePath;
uint64_t memoryBlockId;
} VREvent_Overlay_t; } VREvent_Overlay_t;
typedef struct VREvent_Status_t typedef struct VREvent_Status_t
@@ -2155,12 +2280,6 @@ typedef struct VRControllerState_t
struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5] struct VRControllerAxis_t rAxis[5]; //struct vr::VRControllerAxis_t[5]
} VRControllerState_t; } VRControllerState_t;
typedef struct VRBoneTransform_t
{
struct HmdVector4_t position;
struct HmdQuaternionf_t orientation;
} VRBoneTransform_t;
typedef struct CameraVideoStreamFrameHeader_t typedef struct CameraVideoStreamFrameHeader_t
{ {
enum EVRTrackedCameraFrameType eFrameType; enum EVRTrackedCameraFrameType eFrameType;
@@ -2248,6 +2367,13 @@ typedef struct Compositor_CumulativeStats
uint32_t m_nNumFramePresentsTimedOut; uint32_t m_nNumFramePresentsTimedOut;
uint32_t m_nNumDroppedFramesTimedOut; uint32_t m_nNumDroppedFramesTimedOut;
uint32_t m_nNumReprojectedFramesTimedOut; uint32_t m_nNumReprojectedFramesTimedOut;
uint32_t m_nNumFrameSubmits;
vrshared_double m_flSumCompositorCPUTimeMS;
vrshared_double m_flSumCompositorGPUTimeMS;
vrshared_double m_flSumTargetFrameTimes;
vrshared_double m_flSumApplicationCPUTimeMS;
vrshared_double m_flSumApplicationGPUTimeMS;
uint32_t m_nNumFramesWithDepth;
} Compositor_CumulativeStats; } Compositor_CumulativeStats;
typedef struct Compositor_StageRenderSettings typedef struct Compositor_StageRenderSettings
@@ -2292,6 +2418,14 @@ typedef struct IntersectionMaskCircle_t
float m_flRadius; float m_flRadius;
} IntersectionMaskCircle_t; } IntersectionMaskCircle_t;
typedef struct VROverlayProjection_t
{
float fLeft;
float fRight;
float fTop;
float fBottom;
} VROverlayProjection_t;
typedef struct VROverlayView_t typedef struct VROverlayView_t
{ {
VROverlayHandle_t overlayHandle; VROverlayHandle_t overlayHandle;
@@ -2330,6 +2464,7 @@ typedef struct RenderModel_TextureMap_t
uint16_t unHeight; uint16_t unHeight;
uint8_t * rubTextureMapData; // const uint8_t * uint8_t * rubTextureMapData; // const uint8_t *
enum EVRRenderModelTextureFormat format; enum EVRRenderModelTextureFormat format;
uint16_t unMipLevels;
} RenderModel_TextureMap_t; } RenderModel_TextureMap_t;
#if defined(__linux__) || defined(__APPLE__) #if defined(__linux__) || defined(__APPLE__)
@@ -2592,7 +2727,6 @@ struct VR_IVRSystem_FnTable
bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)(); bool (OPENVR_FNTABLE_CALLTYPE *IsDisplayOnDesktop)();
bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop); bool (OPENVR_FNTABLE_CALLTYPE *SetDisplayVisibility)(bool bIsVisibleOnDesktop);
void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount); void (OPENVR_FNTABLE_CALLTYPE *GetDeviceToAbsoluteTrackingPose)(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, struct TrackedDevicePose_t * pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount);
void (OPENVR_FNTABLE_CALLTYPE *ResetSeatedZeroPose)();
struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)(); struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)();
struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetRawZeroPoseToStandingAbsoluteTrackingPose)(); struct HmdMatrix34_t (OPENVR_FNTABLE_CALLTYPE *GetRawZeroPoseToStandingAbsoluteTrackingPose)();
uint32_t (OPENVR_FNTABLE_CALLTYPE *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass, TrackedDeviceIndex_t * punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex); uint32_t (OPENVR_FNTABLE_CALLTYPE *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass, TrackedDeviceIndex_t * punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex);
@@ -2698,6 +2832,7 @@ struct VR_IVRChaperone_FnTable
void (OPENVR_FNTABLE_CALLTYPE *GetBoundsColor)(struct HmdColor_t * pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, struct HmdColor_t * pOutputCameraColor); void (OPENVR_FNTABLE_CALLTYPE *GetBoundsColor)(struct HmdColor_t * pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, struct HmdColor_t * pOutputCameraColor);
bool (OPENVR_FNTABLE_CALLTYPE *AreBoundsVisible)(); bool (OPENVR_FNTABLE_CALLTYPE *AreBoundsVisible)();
void (OPENVR_FNTABLE_CALLTYPE *ForceBoundsVisible)(bool bForce); void (OPENVR_FNTABLE_CALLTYPE *ForceBoundsVisible)(bool bForce);
void (OPENVR_FNTABLE_CALLTYPE *ResetZeroPose)(ETrackingUniverseOrigin eTrackingUniverseOrigin);
}; };
struct VR_IVRChaperoneSetup_FnTable struct VR_IVRChaperoneSetup_FnTable
@@ -2740,7 +2875,7 @@ struct VR_IVRCompositor_FnTable
void (OPENVR_FNTABLE_CALLTYPE *GetCumulativeStats)(struct Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes); void (OPENVR_FNTABLE_CALLTYPE *GetCumulativeStats)(struct Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes);
void (OPENVR_FNTABLE_CALLTYPE *FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground); void (OPENVR_FNTABLE_CALLTYPE *FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground);
struct HmdColor_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentFadeColor)(bool bBackground); struct HmdColor_t (OPENVR_FNTABLE_CALLTYPE *GetCurrentFadeColor)(bool bBackground);
void (OPENVR_FNTABLE_CALLTYPE *FadeGrid)(float fSeconds, bool bFadeIn); void (OPENVR_FNTABLE_CALLTYPE *FadeGrid)(float fSeconds, bool bFadeGridIn);
float (OPENVR_FNTABLE_CALLTYPE *GetCurrentGridAlpha)(); float (OPENVR_FNTABLE_CALLTYPE *GetCurrentGridAlpha)();
EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *SetSkyboxOverride)(struct Texture_t * pTextures, uint32_t unTextureCount); EVRCompositorError (OPENVR_FNTABLE_CALLTYPE *SetSkyboxOverride)(struct Texture_t * pTextures, uint32_t unTextureCount);
void (OPENVR_FNTABLE_CALLTYPE *ClearSkyboxOverride)(); void (OPENVR_FNTABLE_CALLTYPE *ClearSkyboxOverride)();
@@ -2806,6 +2941,8 @@ struct VR_IVROverlay_FnTable
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfWidthInMeters); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle, float * pfWidthInMeters);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayCurvature)(VROverlayHandle_t ulOverlayHandle, float fCurvature); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayCurvature)(VROverlayHandle_t ulOverlayHandle, float fCurvature);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayCurvature)(VROverlayHandle_t ulOverlayHandle, float * pfCurvature); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayCurvature)(VROverlayHandle_t ulOverlayHandle, float * pfCurvature);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayPreCurvePitch)(VROverlayHandle_t ulOverlayHandle, float fRadians);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayPreCurvePitch)(VROverlayHandle_t ulOverlayHandle, float * pfRadians);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace * peTextureColorSpace); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle, EColorSpace * peTextureColorSpace);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle, struct VRTextureBounds_t * pOverlayTextureBounds);
@@ -2817,14 +2954,14 @@ struct VR_IVROverlay_FnTable
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punTrackedDevice, struct HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, char * pchComponentName); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, char * pchComponentName);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punDeviceIndex, char * pchComponentName, uint32_t unComponentNameSize); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t * punDeviceIndex, char * pchComponentName, uint32_t unComponentNameSize);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t * ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformOverlayRelative)(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, struct HmdMatrix34_t * pmatParentOverlayToOverlayTransform);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformCursor)(VROverlayHandle_t ulCursorOverlayHandle, struct HmdVector2_t * pvHotspot); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformCursor)(VROverlayHandle_t ulCursorOverlayHandle, struct HmdVector2_t * pvHotspot);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformCursor)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvHotspot); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayTransformCursor)(VROverlayHandle_t ulOverlayHandle, struct HmdVector2_t * pvHotspot);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayTransformProjection)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdMatrix34_t * pmatTrackingOriginToOverlayTransform, struct VROverlayProjection_t * pProjection, EVREye eEye);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowOverlay)(VROverlayHandle_t ulOverlayHandle); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *ShowOverlay)(VROverlayHandle_t ulOverlayHandle);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *HideOverlay)(VROverlayHandle_t ulOverlayHandle); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *HideOverlay)(VROverlayHandle_t ulOverlayHandle);
bool (OPENVR_FNTABLE_CALLTYPE *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle); bool (OPENVR_FNTABLE_CALLTYPE *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetTransformForOverlayCoordinates)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdVector2_t coordinatesInOverlay, struct HmdMatrix34_t * pmatTransform); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetTransformForOverlayCoordinates)(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, struct HmdVector2_t coordinatesInOverlay, struct HmdMatrix34_t * pmatTransform);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *WaitFrameSync)(uint32_t nTimeoutMs);
bool (OPENVR_FNTABLE_CALLTYPE *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle, struct VREvent_t * pEvent, uint32_t uncbVREvent); bool (OPENVR_FNTABLE_CALLTYPE *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle, struct VREvent_t * pEvent, uint32_t uncbVREvent);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod * peInputMethod); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod * peInputMethod);
EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod); EVROverlayError (OPENVR_FNTABLE_CALLTYPE *SetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod);
@@ -3031,7 +3168,7 @@ struct VR_IVRPaths_FnTable
struct VR_IVRBlockQueue_FnTable struct VR_IVRBlockQueue_FnTable
{ {
EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Create)(PropertyContainerHandle_t * pulQueueHandle, char * pchPath, uint32_t unBlockDataSize, uint32_t unBlockHeaderSize, uint32_t unBlockCount); EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Create)(PropertyContainerHandle_t * pulQueueHandle, char * pchPath, uint32_t unBlockDataSize, uint32_t unBlockHeaderSize, uint32_t unBlockCount, uint32_t unFlags);
EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Connect)(PropertyContainerHandle_t * pulQueueHandle, char * pchPath); EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Connect)(PropertyContainerHandle_t * pulQueueHandle, char * pchPath);
EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Destroy)(PropertyContainerHandle_t ulQueueHandle); EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *Destroy)(PropertyContainerHandle_t ulQueueHandle);
EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *AcquireWriteOnlyBlock)(PropertyContainerHandle_t ulQueueHandle, PropertyContainerHandle_t * pulBlockHandle, void ** ppvBuffer); EBlockQueueError (OPENVR_FNTABLE_CALLTYPE *AcquireWriteOnlyBlock)(PropertyContainerHandle_t ulQueueHandle, PropertyContainerHandle_t * pulBlockHandle, void ** ppvBuffer);
+289 -96
View File
@@ -12,38 +12,24 @@
// version.h // version.h
namespace vr namespace vr
{ {
static const uint32_t k_nSteamVRVersionMajor = 1; static const uint32_t k_nSteamVRVersionMajor = 1;
static const uint32_t k_nSteamVRVersionMinor = 12; static const uint32_t k_nSteamVRVersionMinor = 26;
static const uint32_t k_nSteamVRVersionBuild = 5; static const uint32_t k_nSteamVRVersionBuild = 7;
} // namespace vr } // namespace vr
// vrtypes.h // public_vrtypes.h
#ifndef _INCLUDE_VRTYPES_H
#define _INCLUDE_VRTYPES_H
// Forward declarations to avoid requiring vulkan.h #ifndef _INCLUDE_CORE_VRTYPES_PUBLIC_H
struct VkDevice_T; #define _INCLUDE_CORE_VRTYPES_PUBLIC_H
struct VkPhysicalDevice_T;
struct VkInstance_T;
struct VkQueue_T;
// Forward declarations to avoid requiring d3d12.h
struct ID3D12Resource;
struct ID3D12CommandQueue;
namespace vr namespace vr
{ {
#pragma pack( push, 8 ) #pragma pack( push, 8 )
/** A handle for a spatial anchor. This handle is only valid during the session it was created in. typedef uint32_t PropertyTypeTag_t;
* Anchors that live beyond one session should be saved by their string descriptors. */
typedef uint32_t SpatialAnchorHandle_t;
typedef void* glSharedTextureHandle_t;
typedef int32_t glInt_t;
typedef uint32_t glUInt_t;
// right-handed system // right-handed system
// +y is up // +y is up
@@ -111,6 +97,13 @@ struct HmdRect2_t
HmdVector2_t vBottomRight; HmdVector2_t vBottomRight;
}; };
/** Holds the transform for a single bone */
struct VRBoneTransform_t
{
HmdVector4_t position;
HmdQuaternionf_t orientation;
};
/** Used to return the post-distortion UVs for each color channel. /** Used to return the post-distortion UVs for each color channel.
* UVs range from 0 to 1 with 0,0 in the upper left corner of the * UVs range from 0 to 1 with 0,0 in the upper left corner of the
* source render target. The 0,0 to 1,1 range covers a single eye. */ * source render target. The 0,0 to 1,1 range covers a single eye. */
@@ -137,9 +130,9 @@ enum ETextureType
TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure
TextureType_DXGISharedHandle = 5, // Handle is a HANDLE DXGI share handle, only supported for Overlay render targets. TextureType_DXGISharedHandle = 5, // Handle is a HANDLE DXGI share handle, only supported for Overlay render targets.
// this texture is used directly by our renderer, so only perform atomic (copyresource or resolve) on it // this texture is used directly by our renderer, so only perform atomic (copyresource or resolve) on it
TextureType_Metal = 6, // Handle is a MTLTexture conforming to the MTLSharedTexture protocol. Textures submitted to IVRCompositor::Submit which TextureType_Metal = 6, // Handle is a MTLTexture conforming to the MTLSharedTexture protocol. Textures submitted to IVRCompositor::Submit which
// are of type MTLTextureType2DArray assume layer 0 is the left eye texture (vr::EVREye::Eye_left), layer 1 is the right // are of type MTLTextureType2DArray assume layer 0 is the left eye texture (vr::EVREye::Eye_left), layer 1 is the right
// eye texture (vr::EVREye::Eye_Right) // eye texture (vr::EVREye::Eye_Right)
}; };
enum EColorSpace enum EColorSpace
@@ -156,6 +149,81 @@ struct Texture_t
EColorSpace eColorSpace; EColorSpace eColorSpace;
}; };
/** Allows the application to control what part of the provided texture will be used in the
* frame buffer. */
struct VRTextureBounds_t
{
float uMin, vMin;
float uMax, vMax;
};
/** Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses). */
struct VRTextureWithPose_t : public Texture_t
{
HmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.
};
struct VRTextureDepthInfo_t
{
void* handle; // See ETextureType definition above
HmdMatrix44_t mProjection;
HmdVector2_t vRange; // 0..1
};
struct VRTextureWithDepth_t : public Texture_t
{
VRTextureDepthInfo_t depth;
};
struct VRTextureWithPoseAndDepth_t : public VRTextureWithPose_t
{
VRTextureDepthInfo_t depth;
};
// 64-bit types that are part of public structures
// that are replicated in shared memory.
#if defined(__linux__) || defined(__APPLE__)
typedef uint64_t vrshared_uint64_t __attribute__ ((aligned(8)));
typedef double vrshared_double __attribute__ ((aligned(8)));
#else
typedef uint64_t vrshared_uint64_t;
typedef double vrshared_double;
#endif
#pragma pack( pop )
} // namespace vr
#endif
// vrtypes.h
#ifndef _INCLUDE_VRTYPES_H
#define _INCLUDE_VRTYPES_H
// Forward declarations to avoid requiring vulkan.h
struct VkDevice_T;
struct VkPhysicalDevice_T;
struct VkInstance_T;
struct VkQueue_T;
// Forward declarations to avoid requiring d3d12.h
struct ID3D12Resource;
struct ID3D12CommandQueue;
namespace vr
{
#pragma pack( push, 8 )
/** A handle for a spatial anchor. This handle is only valid during the session it was created in.
* Anchors that live beyond one session should be saved by their string descriptors. */
typedef uint32_t SpatialAnchorHandle_t;
typedef void* glSharedTextureHandle_t;
typedef int32_t glInt_t;
typedef uint32_t glUInt_t;
// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource). // Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource).
typedef uint64_t SharedTextureHandle_t; typedef uint64_t SharedTextureHandle_t;
#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0) #define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0)
@@ -362,6 +430,8 @@ enum ETrackedDeviceProperty
Prop_ManufacturerSerialNumber_String = 1049, Prop_ManufacturerSerialNumber_String = 1049,
Prop_ComputedSerialNumber_String = 1050, Prop_ComputedSerialNumber_String = 1050,
Prop_EstimatedDeviceFirstUseTime_Int32 = 1051, Prop_EstimatedDeviceFirstUseTime_Int32 = 1051,
Prop_DevicePowerUsage_Float = 1052,
Prop_IgnoreMotionForStandby_Bool = 1053,
// Properties that are unique to TrackedDeviceClass_HMD // Properties that are unique to TrackedDeviceClass_HMD
Prop_ReportsTimeSinceVSync_Bool = 2000, Prop_ReportsTimeSinceVSync_Bool = 2000,
@@ -441,7 +511,7 @@ enum ETrackedDeviceProperty
Prop_DriverProvidedChaperoneVisibility_Bool = 2076, Prop_DriverProvidedChaperoneVisibility_Bool = 2076,
Prop_HmdColumnCorrectionSettingPrefix_String = 2077, Prop_HmdColumnCorrectionSettingPrefix_String = 2077,
Prop_CameraSupportsCompatibilityModes_Bool = 2078, Prop_CameraSupportsCompatibilityModes_Bool = 2078,
Prop_SupportsRoomViewDepthProjection_Bool = 2079,
Prop_DisplayAvailableFrameRates_Float_Array = 2080, // populated by compositor from actual EDID list when available from GPU driver Prop_DisplayAvailableFrameRates_Float_Array = 2080, // populated by compositor from actual EDID list when available from GPU driver
Prop_DisplaySupportsMultipleFramerates_Bool = 2081, // if this is true but Prop_DisplayAvailableFrameRates_Float_Array is empty, explain to user Prop_DisplaySupportsMultipleFramerates_Bool = 2081, // if this is true but Prop_DisplayAvailableFrameRates_Float_Array is empty, explain to user
Prop_DisplayColorMultLeft_Vector3 = 2082, Prop_DisplayColorMultLeft_Vector3 = 2082,
@@ -450,11 +520,27 @@ enum ETrackedDeviceProperty
Prop_DisplaySupportsAnalogGain_Bool = 2085, Prop_DisplaySupportsAnalogGain_Bool = 2085,
Prop_DisplayMinAnalogGain_Float = 2086, Prop_DisplayMinAnalogGain_Float = 2086,
Prop_DisplayMaxAnalogGain_Float = 2087, Prop_DisplayMaxAnalogGain_Float = 2087,
Prop_CameraExposureTime_Float = 2088,
Prop_CameraGlobalGain_Float = 2089,
// Prop_DashboardLayoutPathName_String = 2090, // DELETED // Prop_DashboardLayoutPathName_String = 2090, // DELETED
Prop_DashboardScale_Float = 2091, Prop_DashboardScale_Float = 2091,
Prop_PeerButtonInfo_String = 2092,
Prop_Hmd_SupportsHDR10_Bool = 2093,
Prop_Hmd_EnableParallelRenderCameras_Bool = 2094,
Prop_DriverProvidedChaperoneJson_String = 2095, // higher priority than Prop_DriverProvidedChaperonePath_String
Prop_IpdUIRangeMinMeters_Float = 2100, Prop_IpdUIRangeMinMeters_Float = 2100,
Prop_IpdUIRangeMaxMeters_Float = 2101, Prop_IpdUIRangeMaxMeters_Float = 2101,
Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102,
Prop_Hmd_SupportsMicMonitoring_Bool = 2103,
Prop_Hmd_SupportsDisplayPortTrainingMode_Bool = 2104,
Prop_Hmd_SupportsRoomViewDirect_Bool = 2105,
Prop_Hmd_SupportsAppThrottling_Bool = 2106,
Prop_Hmd_SupportsGpuBusMonitoring_Bool = 2107,
Prop_DSCVersion_Int32 = 2110,
Prop_DSCSliceCount_Int32 = 2111,
Prop_DSCBPPx16_Int32 = 2112,
// Driver requested mura correction properties // Driver requested mura correction properties
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200, Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
@@ -469,7 +555,8 @@ enum ETrackedDeviceProperty
Prop_Audio_DefaultPlaybackDeviceId_String = 2300, Prop_Audio_DefaultPlaybackDeviceId_String = 2300,
Prop_Audio_DefaultRecordingDeviceId_String = 2301, Prop_Audio_DefaultRecordingDeviceId_String = 2301,
Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302, Prop_Audio_DefaultPlaybackDeviceVolume_Float = 2302,
Prop_Audio_SupportsDualSpeakerAndJackOutput_Bool = 2303,
// Properties that are unique to TrackedDeviceClass_Controller // Properties that are unique to TrackedDeviceClass_Controller
Prop_AttachedDeviceId_String = 3000, Prop_AttachedDeviceId_String = 3000,
@@ -575,37 +662,6 @@ static const VRActionSetHandle_t k_ulInvalidActionSetHandle = 0;
static const VRInputValueHandle_t k_ulInvalidInputValueHandle = 0; static const VRInputValueHandle_t k_ulInvalidInputValueHandle = 0;
/** Allows the application to control what part of the provided texture will be used in the
* frame buffer. */
struct VRTextureBounds_t
{
float uMin, vMin;
float uMax, vMax;
};
/** Allows specifying pose used to render provided scene texture (if different from value returned by WaitGetPoses). */
struct VRTextureWithPose_t : public Texture_t
{
HmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.
};
struct VRTextureDepthInfo_t
{
void* handle; // See ETextureType definition above
HmdMatrix44_t mProjection;
HmdVector2_t vRange; // 0..1
};
struct VRTextureWithDepth_t : public Texture_t
{
VRTextureDepthInfo_t depth;
};
struct VRTextureWithPoseAndDepth_t : public VRTextureWithPose_t
{
VRTextureDepthInfo_t depth;
};
/** Allows the application to control how scene textures are used by the compositor when calling Submit. */ /** Allows the application to control how scene textures are used by the compositor when calling Submit. */
enum EVRSubmitFlags enum EVRSubmitFlags
{ {
@@ -637,6 +693,14 @@ enum EVRSubmitFlags
// Set to indicate that pTexture->handle is a contains VRVulkanTextureArrayData_t // Set to indicate that pTexture->handle is a contains VRVulkanTextureArrayData_t
Submit_VulkanTextureWithArrayData = 0x40, Submit_VulkanTextureWithArrayData = 0x40,
// If the texture pointer passed in is an OpenGL Array texture, set this flag
Submit_GlArrayTexture = 0x80,
// Do not use
Submit_Reserved2 = 0x08000,
Submit_Reserved3 = 0x10000,
}; };
/** Data required for passing Vulkan textures to IVRCompositor::Submit. /** Data required for passing Vulkan textures to IVRCompositor::Submit.
@@ -737,7 +801,7 @@ enum EVREventType
// VREvent_SceneFocusLost = 402, // data is process // VREvent_SceneFocusLost = 402, // data is process
// VREvent_SceneFocusGained = 403, // data is process // VREvent_SceneFocusGained = 403, // data is process
VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor) VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor)
VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene // VREvent_SceneFocusChanged = 405, // data is process - This is defunct and will not be called.
VREvent_InputFocusChanged = 406, // data is process VREvent_InputFocusChanged = 406, // data is process
// VREvent_SceneApplicationSecondaryRenderingStarted = 407, // VREvent_SceneApplicationSecondaryRenderingStarted = 407,
VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process VREvent_SceneApplicationUsingWrongGraphicsAdapter = 408, // data is process
@@ -748,6 +812,8 @@ enum EVREventType
VREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState(); VREvent_SceneApplicationStateChanged = 412, // No data; but query VRApplications()->GetSceneApplicationState();
VREvent_SceneAppPipeDisconnected = 413, // data is process - Called when the scene app's pipe has been closed.
VREvent_ConsoleOpened = 420, VREvent_ConsoleOpened = 420,
VREvent_ConsoleClosed = 421, VREvent_ConsoleClosed = 421,
@@ -784,6 +850,13 @@ enum EVREventType
VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled VREvent_RoomViewHidden = 527, // Sent by compositor whenever room-view is disabled
VREvent_ShowUI = 528, // data is showUi VREvent_ShowUI = 528, // data is showUi
VREvent_ShowDevTools = 529, // data is showDevTools VREvent_ShowDevTools = 529, // data is showDevTools
VREvent_DesktopViewUpdating = 530,
VREvent_DesktopViewReady = 531,
VREvent_StartDashboard = 532,
VREvent_ElevatePrism = 533,
VREvent_OverlayClosed = 534,
VREvent_Notification_Shown = 600, VREvent_Notification_Shown = 600,
VREvent_Notification_Hidden = 601, VREvent_Notification_Hidden = 601,
@@ -796,6 +869,7 @@ enum EVREventType
VREvent_QuitAcknowledged = 703, // data is process VREvent_QuitAcknowledged = 703, // data is process
VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down
VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR VREvent_RestartRequested = 705, // A driver or other component wants the user to restart SteamVR
VREvent_InvalidateSwapTextureSets = 706,
VREvent_ChaperoneDataHasChanged = 800, // this will never happen with the new chaperone system VREvent_ChaperoneDataHasChanged = 800, // this will never happen with the new chaperone system
VREvent_ChaperoneUniverseHasChanged = 801, VREvent_ChaperoneUniverseHasChanged = 801,
@@ -805,6 +879,7 @@ enum EVREventType
VREvent_ChaperoneFlushCache = 805, // Sent when the process needs to reload any cached data it retrieved from VRChaperone() VREvent_ChaperoneFlushCache = 805, // Sent when the process needs to reload any cached data it retrieved from VRChaperone()
VREvent_ChaperoneRoomSetupStarting = 806, // Triggered by CVRChaperoneClient::RoomSetupStarting VREvent_ChaperoneRoomSetupStarting = 806, // Triggered by CVRChaperoneClient::RoomSetupStarting
VREvent_ChaperoneRoomSetupFinished = 807, // Triggered by CVRChaperoneClient::CommitWorkingCopy VREvent_ChaperoneRoomSetupFinished = 807, // Triggered by CVRChaperoneClient::CommitWorkingCopy
VREvent_StandingZeroPoseReset = 808,
VREvent_AudioSettingsHaveChanged = 820, VREvent_AudioSettingsHaveChanged = 820,
@@ -865,6 +940,7 @@ enum EVREventType
VREvent_Compositor_OutOfVideoMemory = 1417, VREvent_Compositor_OutOfVideoMemory = 1417,
VREvent_Compositor_DisplayModeNotSupported = 1418, // k_pch_SteamVR_PreferredRefreshRate VREvent_Compositor_DisplayModeNotSupported = 1418, // k_pch_SteamVR_PreferredRefreshRate
VREvent_Compositor_StageOverrideReady = 1419, VREvent_Compositor_StageOverrideReady = 1419,
VREvent_Compositor_RequestDisconnectReconnect = 1420,
VREvent_TrackedCamera_StartVideoStream = 1500, VREvent_TrackedCamera_StartVideoStream = 1500,
VREvent_TrackedCamera_StopVideoStream = 1501, VREvent_TrackedCamera_StopVideoStream = 1501,
@@ -951,6 +1027,9 @@ enum EVRButtonId
k_EButton_IndexController_B = k_EButton_ApplicationMenu, k_EButton_IndexController_B = k_EButton_ApplicationMenu,
k_EButton_IndexController_JoyStick = k_EButton_Axis3, k_EButton_IndexController_JoyStick = k_EButton_Axis3,
k_EButton_Reserved0 = 50,
k_EButton_Reserved1 = 51,
k_EButton_Max = 64 k_EButton_Max = 64
}; };
@@ -1031,6 +1110,7 @@ struct VREvent_Overlay_t
{ {
uint64_t overlayHandle; uint64_t overlayHandle;
uint64_t devicePath; uint64_t devicePath;
uint64_t memoryBlockId;
}; };
@@ -1443,6 +1523,7 @@ enum EVROverlayError
VROverlayError_TextureAlreadyLocked = 31, VROverlayError_TextureAlreadyLocked = 31,
VROverlayError_TextureLockCapacityReached = 32, VROverlayError_TextureLockCapacityReached = 32,
VROverlayError_TextureNotLocked = 33, VROverlayError_TextureNotLocked = 33,
VROverlayError_TimedOut = 34,
}; };
/** enum values to pass in to VR_Init to identify whether the application will /** enum values to pass in to VR_Init to identify whether the application will
@@ -1460,11 +1541,35 @@ enum EVRApplicationType
VRApplication_SteamWatchdog = 6,// Reserved for Steam VRApplication_SteamWatchdog = 6,// Reserved for Steam
VRApplication_Bootstrapper = 7, // reserved for vrstartup VRApplication_Bootstrapper = 7, // reserved for vrstartup
VRApplication_WebHelper = 8, // reserved for vrwebhelper VRApplication_WebHelper = 8, // reserved for vrwebhelper
VRApplication_OpenXRInstance = 9, // reserved for openxr (created instance, but not session yet)
VRApplication_OpenXRScene = 10, // reserved for openxr (started session)
VRApplication_OpenXROverlay = 11, // reserved for openxr (started overlay session)
VRApplication_Prism = 12, // reserved for the vrprismhost process
VRApplication_RoomView = 13, // reserved for the RoomView process
VRApplication_Max VRApplication_Max
}; };
/** returns true if the specified application type is one of the
* OpenXR types */
inline bool IsOpenXRAppType( EVRApplicationType eType )
{
return eType == VRApplication_OpenXRInstance
|| eType == VRApplication_OpenXRScene
|| eType == VRApplication_OpenXROverlay;
}
/** returns true if the specified application type submits eye buffers */
inline bool BAppTypeSubmitsEyeBuffers( EVRApplicationType eType )
{
return eType == VRApplication_Scene
|| eType == VRApplication_OpenXRScene
|| eType == VRApplication_RoomView;
}
/** error codes for firmware */ /** error codes for firmware */
enum EVRFirmwareError enum EVRFirmwareError
{ {
@@ -1519,14 +1624,6 @@ enum EVRSkeletalTrackingLevel
}; };
/** Holds the transform for a single bone */
struct VRBoneTransform_t
{
HmdVector4_t position;
HmdQuaternionf_t orientation;
};
/** Type used for referring to bones by their index */ /** Type used for referring to bones by their index */
typedef int32_t BoneIndex_t; typedef int32_t BoneIndex_t;
const BoneIndex_t k_unInvalidBoneIndex = -1; const BoneIndex_t k_unInvalidBoneIndex = -1;
@@ -1587,6 +1684,27 @@ enum EVRInitError
VRInitError_Init_FailedForVrMonitor = 144, VRInitError_Init_FailedForVrMonitor = 144,
VRInitError_Init_PropertyManagerInitFailed = 145, VRInitError_Init_PropertyManagerInitFailed = 145,
VRInitError_Init_WebServerFailed = 146, VRInitError_Init_WebServerFailed = 146,
VRInitError_Init_IllegalTypeTransition = 147,
VRInitError_Init_MismatchedRuntimes = 148,
VRInitError_Init_InvalidProcessId = 149,
VRInitError_Init_VRServiceStartupFailed = 150,
VRInitError_Init_PrismNeedsNewDrivers = 151,
VRInitError_Init_PrismStartupTimedOut = 152,
VRInitError_Init_CouldNotStartPrism = 153,
VRInitError_Init_PrismClientInitFailed = 154,
VRInitError_Init_PrismClientStartFailed = 155,
VRInitError_Init_PrismExitedUnexpectedly = 156,
VRInitError_Init_BadLuid = 157,
VRInitError_Init_NoServerForAppContainer = 158,
VRInitError_Init_DuplicateBootstrapper = 159,
VRInitError_Init_VRDashboardServicePending = 160,
VRInitError_Init_VRDashboardServiceTimeout = 161,
VRInitError_Init_VRDashboardServiceStopped = 162,
VRInitError_Init_VRDashboardAlreadyStarted = 163,
VRInitError_Init_VRDashboardCopyFailed = 164,
VRInitError_Init_VRDashboardTokenFailure = 165,
VRInitError_Init_VRDashboardEnvironmentFailure = 166,
VRInitError_Init_VRDashboardPathFailure = 167,
VRInitError_Driver_Failed = 200, VRInitError_Driver_Failed = 200,
VRInitError_Driver_Unknown = 201, VRInitError_Driver_Unknown = 201,
@@ -1602,6 +1720,9 @@ enum EVRInitError
VRInitError_Driver_HmdDriverIdOutOfBounds = 211, VRInitError_Driver_HmdDriverIdOutOfBounds = 211,
VRInitError_Driver_HmdDisplayMirrored = 212, VRInitError_Driver_HmdDisplayMirrored = 212,
VRInitError_Driver_HmdDisplayNotFoundLaptop = 213, VRInitError_Driver_HmdDisplayNotFoundLaptop = 213,
VRInitError_Driver_PeerDriverNotInstalled = 214,
VRInitError_Driver_WirelessHmdNotConnected = 215,
// Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE // Never make error 259 because we return it from main and it would conflict with STILL_ACTIVE
VRInitError_IPC_ServerInitFailed = 300, VRInitError_IPC_ServerInitFailed = 300,
@@ -1707,9 +1828,15 @@ enum EVRInitError
VRInitError_Compositor_CreateOverlayInvalidCall = 488, VRInitError_Compositor_CreateOverlayInvalidCall = 488,
VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489, VRInitError_Compositor_CreateOverlayAlreadyInitialized = 489,
VRInitError_Compositor_FailedToCreateMailbox = 490, VRInitError_Compositor_FailedToCreateMailbox = 490,
VRInitError_Compositor_WindowInterfaceIsNull = 491,
VRInitError_Compositor_SystemLayerCreateInstance = 492,
VRInitError_Compositor_SystemLayerCreateSession = 493,
VRInitError_Compositor_CreateInverseDistortUVs = 494,
VRInitError_Compositor_CreateBackbufferDepth = 495,
VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000, VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
VRInitError_VendorSpecific_WindowsNotInDevMode = 1001, VRInitError_VendorSpecific_WindowsNotInDevMode = 1001,
VRInitError_VendorSpecific_OculusLinkNotEnabled = 1002,
VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102, VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
@@ -1725,6 +1852,7 @@ enum EVRInitError
VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, VRInitError_VendorSpecific_HmdFound_UserDataError = 1112,
VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113, VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = 1113,
VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114, VRInitError_VendorSpecific_OculusRuntimeBadInstall = 1114,
VRInitError_VendorSpecific_HmdFound_UnexpectedConfiguration_1 = 1115,
VRInitError_Steam_SteamInstallationNotFound = 2000, VRInitError_Steam_SteamInstallationNotFound = 2000,
@@ -1830,18 +1958,18 @@ const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the
const uint32_t VRCompositor_ReprojectionMotion = 0x08; // This flag indicates whether or not motion smoothing was triggered for this frame const uint32_t VRCompositor_ReprojectionMotion = 0x08; // This flag indicates whether or not motion smoothing was triggered for this frame
const uint32_t VRCompositor_PredictionMask = 0x30; // The runtime may predict more than one frame (up to four) ahead if const uint32_t VRCompositor_PredictionMask = 0xF0; // The runtime may predict more than one frame (up to four) ahead if
// it detects the application is taking too long to render. These two // it detects the application is taking too long to render. These two
// bits will contain the count of additional frames (normally zero). // bits will contain the count of additional frames (normally zero).
// Use the VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES macro to read from // Use the VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES macro to read from
// the latest frame timing entry. // the latest frame timing entry.
const uint32_t VRCompositor_ThrottleMask = 0xC0; // Number of frames the compositor is throttling the application. const uint32_t VRCompositor_ThrottleMask = 0xF00; // Number of frames the compositor is throttling the application.
// Use the VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES macro to read from // Use the VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES macro to read from
// the latest frame timing entry. // the latest frame timing entry.
#define VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_PredictionMask ) >> 4 ) #define VR_COMPOSITOR_ADDITIONAL_PREDICTED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_PredictionMask ) >> 4 )
#define VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_ThrottleMask ) >> 6 ) #define VR_COMPOSITOR_NUMBER_OF_THROTTLED_FRAMES( timing ) ( ( ( timing ).m_nReprojectionFlags & vr::VRCompositor_ThrottleMask ) >> 8 )
/** Provides a single frame's timing information to the app */ /** Provides a single frame's timing information to the app */
struct Compositor_FrameTiming struct Compositor_FrameTiming
@@ -1977,11 +2105,10 @@ struct ImuSample_t
#endif #endif
} // namespace vr } // namespace vr
#endif // _INCLUDE_VRTYPES_H #endif // _INCLUDE_VRTYPES_H
// vrannotation.h // vrannotation.h
#ifdef API_GEN #ifdef API_GEN
# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR ))) # define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR )))
#else #else
@@ -2001,6 +2128,7 @@ struct ImuSample_t
#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" ) #define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" )
// vrtrackedcameratypes.h // vrtrackedcameratypes.h
#ifndef _VRTRACKEDCAMERATYPES_H #ifndef _VRTRACKEDCAMERATYPES_H
#define _VRTRACKEDCAMERATYPES_H #define _VRTRACKEDCAMERATYPES_H
@@ -2019,6 +2147,7 @@ enum ECameraVideoStreamFormat
CVS_FORMAT_YUYV16 = 5, // 16 bits per pixel CVS_FORMAT_YUYV16 = 5, // 16 bits per pixel
CVS_FORMAT_BAYER16BG = 6, // 16 bits per pixel, 10-bit BG-format Bayer, see https://docs.opencv.org/3.1.0/de/d25/imgproc_color_conversions.html CVS_FORMAT_BAYER16BG = 6, // 16 bits per pixel, 10-bit BG-format Bayer, see https://docs.opencv.org/3.1.0/de/d25/imgproc_color_conversions.html
CVS_FORMAT_MJPEG = 7, // variable-sized MJPEG Open DML format, see https://www.loc.gov/preservation/digital/formats/fdd/fdd000063.shtml CVS_FORMAT_MJPEG = 7, // variable-sized MJPEG Open DML format, see https://www.loc.gov/preservation/digital/formats/fdd/fdd000063.shtml
CVS_FORMAT_RGBX32 = 8, // Full-sized pixels, 4BPP, LSB = RED
CVS_MAX_FORMATS CVS_MAX_FORMATS
}; };
@@ -2041,14 +2170,14 @@ enum ECameraCompatibilityMode
MAX_CAMERA_COMPAT_MODES MAX_CAMERA_COMPAT_MODES
}; };
enum ETrackedCameraRoomViewMode enum ECameraRoomViewStyle
{ {
TRACKED_CAMERA_ROOMVIEW_MODE_DEFAULT = 0, CAMERA_ROOMVIEW_STYLE_DEFAULT = 0,
TRACKED_CAMERA_ROOMVIEW_MODE_EDGE_A = 1, CAMERA_ROOMVIEW_STYLE_EDGE_A = 1,
TRACKED_CAMERA_ROOMVIEW_MODE_EDGE_B = 2, CAMERA_ROOMVIEW_STYLE_EDGE_B = 2,
TRACKED_CAMERA_ROOMVIEW_MODE_VIDEO_TRANSLUSCENT = 3, CAMERA_ROOMVIEW_STYLE_VIDEO_TRANSLUSCENT = 3,
TRACKED_CAMERA_ROOMVIEW_MODE_VIDEO_OPAQUE = 4, CAMERA_ROOMVIEW_STYLE_VIDEO_OPAQUE = 4,
TRACKED_CAMERA_ROOMVIEW_MODE_COUNT = 5, CAMERA_ROOMVIEW_STYLE_COUNT = 5,
}; };
#ifdef _MSC_VER #ifdef _MSC_VER
@@ -2105,7 +2234,9 @@ VR_CAMERA_DECL_ALIGN( 8 ) struct CameraVideoStreamFrame_t
} }
#endif // _VRTRACKEDCAMERATYPES_H #endif // _VRTRACKEDCAMERATYPES_H
// ivrsettings.h // ivrsettings.h
#include <string> #include <string>
namespace vr namespace vr
@@ -2244,6 +2375,7 @@ namespace vr
static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor"; static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
static const char * const k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor"; static const char * const k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage"; static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage";
static const char * const k_pch_SteamVR_DrawTrackingReferences_Bool = "drawTrackingReferences";
static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers"; static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers"; static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees"; static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
@@ -2254,6 +2386,10 @@ namespace vr
static const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution"; static const char * const k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
static const char * const k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing"; static const char * const k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride"; static const char * const k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
static const char * const k_pch_SteamVR_FramesToThrottle_Int32 = "framesToThrottle";
static const char * const k_pch_SteamVR_AdditionalFramesToPredict_Int32 = "additionalFramesToPredict";
static const char * const k_pch_SteamVR_WorldScale_Float = "worldScale";
static const char * const k_pch_SteamVR_FovScale_Int32 = "fovScale";
static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync"; static const char * const k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking"; static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView"; static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
@@ -2280,7 +2416,6 @@ namespace vr
static const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor"; static const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor";
static const char * const k_pch_SteamVR_DebugInputBinding = "debugInputBinding"; static const char * const k_pch_SteamVR_DebugInputBinding = "debugInputBinding";
static const char * const k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid"; static const char * const k_pch_SteamVR_DoNotFadeToGrid = "doNotFadeToGrid";
static const char * const k_pch_SteamVR_RenderCameraMode = "renderCameraMode";
static const char * const k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling"; static const char * const k_pch_SteamVR_EnableSharedResourceJournaling = "enableSharedResourceJournaling";
static const char * const k_pch_SteamVR_EnableSafeMode = "enableSafeMode"; static const char * const k_pch_SteamVR_EnableSafeMode = "enableSafeMode";
static const char * const k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate"; static const char * const k_pch_SteamVR_PreferredRefreshRate = "preferredRefreshRate";
@@ -2296,6 +2431,9 @@ namespace vr
static const char * const k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2"; static const char * const k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2";
static const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption"; static const char * const k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption";
static const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches"; static const char * const k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches";
static const char * const k_pch_SteamVR_HDCPLegacyCompatibility_Bool = "hdcp14legacyCompatibility";
static const char * const k_pch_SteamVR_DisplayPortTrainingMode_Int = "displayPortTrainingMode";
static const char * const k_pch_SteamVR_UsePrism_Bool = "usePrism";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// direct mode keys // direct mode keys
@@ -2371,6 +2509,7 @@ namespace vr
static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit"; static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
static const char * const k_pch_Perf_TestData_Float = "perfTestData"; static const char * const k_pch_Perf_TestData_Float = "perfTestData";
static const char * const k_pch_Perf_GPUProfiling_Bool = "GPUProfiling"; static const char * const k_pch_Perf_GPUProfiling_Bool = "GPUProfiling";
static const char * const k_pch_Perf_GpuBusMonitoring_Bool = "gpuBusMonitoring";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// collision bounds keys // collision bounds keys
@@ -2391,15 +2530,15 @@ namespace vr
// camera keys // camera keys
static const char * const k_pch_Camera_Section = "camera"; static const char * const k_pch_Camera_Section = "camera";
static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera"; static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera";
static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard"; static const char * const k_pch_Camera_ShowOnController_Bool = "showOnController";
static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds"; static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView"; static const char * const k_pch_Camera_RoomView_Int32 = "roomView";
static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR"; static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG"; static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB"; static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA"; static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength"; static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength";
static const char * const k_pch_Camera_RoomViewMode_Int32 = "cameraRoomViewMode"; static const char * const k_pch_Camera_RoomViewStyle_Int32 = "roomViewStyle";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// audio keys // audio keys
@@ -2420,6 +2559,8 @@ namespace vr
static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume"; static const char * const k_pch_audio_EnablePlaybackMirrorIndependentVolume_Bool = "enablePlaybackMirrorIndependentVolume";
static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId"; static const char * const k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain"; static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
static const char * const k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
static const char * const k_pch_audio_MuteMicMonitor_Bool = "muteMicMonitor";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// power management keys // power management keys
@@ -2439,6 +2580,9 @@ namespace vr
static const char * const k_pch_Dashboard_Position = "position"; static const char * const k_pch_Dashboard_Position = "position";
static const char * const k_pch_Dashboard_DesktopScale = "desktopScale"; static const char * const k_pch_Dashboard_DesktopScale = "desktopScale";
static const char * const k_pch_Dashboard_DashboardScale = "dashboardScale"; static const char * const k_pch_Dashboard_DashboardScale = "dashboardScale";
static const char * const k_pch_Dashboard_UseStandaloneSystemLayer = "standaloneSystemLayer";
static const char * const k_pch_Dashboard_StickyDashboard = "stickyDashboard";
static const char * const k_pch_Dashboard_AllowSteamOverlays_Bool = "allowSteamOverlays";
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// model skin keys // model skin keys
@@ -2469,7 +2613,8 @@ namespace vr
// per-app keys - the section name for these is the app key itself. Some of these are prefixed by the controller type // per-app keys - the section name for these is the app key itself. Some of these are prefixed by the controller type
static const char* const k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL"; static const char* const k_pch_App_BindingAutosaveURLSuffix_String = "AutosaveURL";
static const char* const k_pch_App_BindingLegacyAPISuffix_String = "_legacy"; static const char* const k_pch_App_BindingLegacyAPISuffix_String = "_legacy";
static const char* const k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput"; static const char *const k_pch_App_BindingSteamVRInputAPISuffix_String = "_steamvrinput";
static const char *const k_pch_App_BindingOpenXRAPISuffix_String = "_openxr";
static const char* const k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL"; static const char* const k_pch_App_BindingCurrentURLSuffix_String = "CurrentURL";
static const char* const k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL"; static const char* const k_pch_App_BindingPreviousURLSuffix_String = "PreviousURL";
static const char* const k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave"; static const char* const k_pch_App_NeedToUpdateAutosaveSuffix_Bool = "NeedToUpdateAutosave";
@@ -2508,6 +2653,7 @@ namespace vr
} // namespace vr } // namespace vr
// iservertrackeddevicedriver.h // iservertrackeddevicedriver.h
namespace vr namespace vr
{ {
@@ -2629,7 +2775,9 @@ public:
static const char *ITrackedDeviceServerDriver_Version = "ITrackedDeviceServerDriver_005"; static const char *ITrackedDeviceServerDriver_Version = "ITrackedDeviceServerDriver_005";
} }
// ivrdisplaycomponent.h // ivrdisplaycomponent.h
namespace vr namespace vr
{ {
@@ -2675,14 +2823,18 @@ namespace vr
} }
// ivrdriverdirectmodecomponent.h // ivrdriverdirectmodecomponent.h
namespace vr namespace vr
{ {
enum VRSwapTextureFlag
{
// Specify that the shared texture resource was created with the SHARED_NTHANDLE option (Windows)
VRSwapTextureFlag_Shared_NTHandle = 1 << 0,
};
// ---------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------
// Purpose: This component is used for drivers that implement direct mode entirely on their own // Purpose: This component is used for drivers that implement direct mode entirely on their own
// without allowing the VR Compositor to own the window/device. Chances are you don't // without allowing the VR Compositor to own the window/device.
// need to implement this component in your driver.
// ---------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------
class IVRDriverDirectModeComponent class IVRDriverDirectModeComponent
{ {
@@ -2692,7 +2844,6 @@ namespace vr
// Direct mode methods // Direct mode methods
// ----------------------------------- // -----------------------------------
/** Specific to Oculus compositor support, textures supplied must be created using this method. */
struct SwapTextureSetDesc_t struct SwapTextureSetDesc_t
{ {
uint32_t nWidth; uint32_t nWidth;
@@ -2700,7 +2851,15 @@ namespace vr
uint32_t nFormat; uint32_t nFormat;
uint32_t nSampleCount; uint32_t nSampleCount;
}; };
virtual void CreateSwapTextureSet( uint32_t unPid, const SwapTextureSetDesc_t *pSwapTextureSetDesc, vr::SharedTextureHandle_t( *pSharedTextureHandles )[ 3 ] ) {}
struct SwapTextureSet_t
{
vr::SharedTextureHandle_t rSharedTextureHandles[ 3 ];
uint32_t unTextureFlags;
};
/** Called to allocate textures for applications to render into. One of these per eye will be passed back to SubmitLayer each frame. */
virtual void CreateSwapTextureSet( uint32_t unPid, const SwapTextureSetDesc_t *pSwapTextureSetDesc, SwapTextureSet_t *pOutSwapTextureSet ) {}
/** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */ /** Used to textures created using CreateSwapTextureSet. Only one of the set's handles needs to be used to destroy the entire set. */
virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {} virtual void DestroySwapTextureSet( vr::SharedTextureHandle_t sharedTextureHandle ) {}
@@ -2732,18 +2891,25 @@ namespace vr
/** Submits queued layers for display. */ /** Submits queued layers for display. */
virtual void Present( vr::SharedTextureHandle_t syncTexture ) {} virtual void Present( vr::SharedTextureHandle_t syncTexture ) {}
/** Called after Present to allow driver to take more time until vsync after they've successfully acquired the sync texture in Present.*/ /** Called after Present to allow driver to take more time until vsync after they've successfully acquired the sync texture in Present.
virtual void PostPresent() {} * Set Prop_Hmd_SupportsAppThrottling_Bool to enable throttling / prediction UI in per-app video settings. */
struct Throttling_t
{
uint32_t nFramesToThrottle;
uint32_t nAdditionalFramesToPredict;
};
virtual void PostPresent( const Throttling_t *pThrottling ) {}
/** Called to get additional frame timing stats from driver. Check m_nSize for versioning (new members will be added to end only). */ /** Called to get additional frame timing stats from driver. Check m_nSize for versioning (new members will be added to end only). */
virtual void GetFrameTiming( DriverDirectMode_FrameTiming *pFrameTiming ) {} virtual void GetFrameTiming( DriverDirectMode_FrameTiming *pFrameTiming ) {}
}; };
static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_006"; static const char *IVRDriverDirectModeComponent_Version = "IVRDriverDirectModeComponent_008";
} }
// ivrcameracomponent.h // ivrcameracomponent.h
namespace vr namespace vr
{ {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@@ -2788,7 +2954,9 @@ namespace vr
static const char *IVRCameraComponent_Version = "IVRCameraComponent_003"; static const char *IVRCameraComponent_Version = "IVRCameraComponent_003";
} }
// itrackeddevicedriverprovider.h // itrackeddevicedriverprovider.h
namespace vr namespace vr
{ {
@@ -2895,7 +3063,9 @@ public:
static const char *IVRCompositorPluginProvider_Version = "IVRCompositorPluginProvider_001"; static const char *IVRCompositorPluginProvider_Version = "IVRCompositorPluginProvider_001";
} }
// ivrproperties.h // ivrproperties.h
#include <string> #include <string>
#include <vector> #include <vector>
@@ -3342,6 +3512,7 @@ inline bool CVRPropertyHelpers::IsPropertySet( PropertyContainerHandle_t ulConta
// ivrdriverinput.h // ivrdriverinput.h
namespace vr namespace vr
{ {
@@ -3393,6 +3564,7 @@ namespace vr
} // namespace vr } // namespace vr
// ivrdriverlog.h // ivrdriverlog.h
namespace vr namespace vr
{ {
@@ -3407,7 +3579,9 @@ public:
static const char *IVRDriverLog_Version = "IVRDriverLog_001"; static const char *IVRDriverLog_Version = "IVRDriverLog_001";
} }
// ivrserverdriverhost.h // ivrserverdriverhost.h
namespace vr namespace vr
{ {
@@ -3450,22 +3624,32 @@ public:
* other properties can be looked up via IVRProperties. */ * other properties can be looked up via IVRProperties. */
virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0; virtual void GetRawTrackedDevicePoses( float fPredictedSecondsFromNow, TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) = 0;
/** Notifies the server that a tracked device's display component transforms have been updated. */
virtual void TrackedDeviceDisplayTransformUpdated( uint32_t unWhichDevice, HmdMatrix34_t eyeToHeadLeft, HmdMatrix34_t eyeToHeadRight ) = 0;
/** Requests that SteamVR be restarted. The provided reason will be displayed to the user and should be in the current locale. */ /** Requests that SteamVR be restarted. The provided reason will be displayed to the user and should be in the current locale. */
virtual void RequestRestart( const char *pchLocalizedReason, const char *pchExecutableToStart, const char *pchArguments, const char *pchWorkingDirectory ) = 0; virtual void RequestRestart( const char *pchLocalizedReason, const char *pchExecutableToStart, const char *pchArguments, const char *pchWorkingDirectory ) = 0;
/** 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. /** 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.
* 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. */ * 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. */
virtual uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0; virtual uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) = 0;
/** Notifies the server that a tracked device's display component transforms have been updated.
* only permitted on devices of the HMD class. */
virtual void SetDisplayEyeToHead( uint32_t unWhichDevice, const HmdMatrix34_t & eyeToHeadLeft, const HmdMatrix34_t & eyeToHeadRight ) = 0;
/** Notifies the server that a tracked device's display projection has changed.
* only permitted on devices of the HMD class. */
virtual void SetDisplayProjectionRaw( uint32_t unWhichDevice, const HmdRect2_t & eyeLeft, const HmdRect2_t & eyeRight ) = 0;
/** Notifies the server that a tracked device's recommended render target resolution has changed.
* only permitted on devices of the HMD class. */
virtual void SetRecommendedRenderTargetSize( uint32_t unWhichDevice, uint32_t nWidth, uint32_t nHeight ) = 0;
}; };
static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_005"; static const char *IVRServerDriverHost_Version = "IVRServerDriverHost_006";
} }
// ivrcompositordriverhost.h // ivrcompositordriverhost.h
namespace vr namespace vr
{ {
@@ -3482,6 +3666,7 @@ static const char *IVRCompositorDriverHost_Version = "IVRCompositorDriverHost_00
} }
// ivrhiddenarea.h // ivrhiddenarea.h
namespace vr namespace vr
{ {
@@ -3536,7 +3721,9 @@ inline uint32_t CVRHiddenAreaHelpers::GetHiddenArea( EVREye eEye, EHiddenAreaMes
} }
} }
// ivrwatchdoghost.h // ivrwatchdoghost.h
namespace vr namespace vr
{ {
@@ -3556,6 +3743,7 @@ static const char *IVRWatchdogHost_Version = "IVRWatchdogHost_002";
// ivrvirtualdisplay.h // ivrvirtualdisplay.h
namespace vr namespace vr
{ {
struct PresentInfo_t struct PresentInfo_t
@@ -3588,6 +3776,7 @@ namespace vr
// ivrresources.h // ivrresources.h
namespace vr namespace vr
{ {
@@ -3613,7 +3802,9 @@ static const char * const IVRResources_Version = "IVRResources_001";
} }
// ivriobuffer.h // ivriobuffer.h
namespace vr namespace vr
{ {
@@ -3667,6 +3858,7 @@ static const uint64_t k_ulInvalidIOBufferHandle = 0;
} }
// ivrdrivermanager.h // ivrdrivermanager.h
namespace vr namespace vr
{ {
@@ -3690,6 +3882,7 @@ static const char * const IVRDriverManager_Version = "IVRDriverManager_001";
// ivrdriverspatialanchors.h // ivrdriverspatialanchors.h
namespace vr namespace vr
{ {
struct SpatialAnchorDriverPose_t struct SpatialAnchorDriverPose_t
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.