Skip to content

Commit 6f671fc

Browse files
author
Alex Hopmann
committed
OpenVR SDK 0.9.17:
General: * Added events for application to temporarily hide and re-show render models (VREvent_HideRenderModels, VREvent_ShowRenderModels). * Added VREvent_KeyboardDone which is sent when DONE button clicked on keyboard. * There is a change to how the openvr.h manages talking to the openvr_api.dll. We now have inline functions that acquire the interface pointers so when you build you will get the correct interface pointer even if the underlying openvr_api.dll is newer than the one you built against. This will enable environments where multiple codebases need to coexist in the same process such as some game engines. IVRApplications: Compositor: * Added new error code for detecting non-D3D11 class hardware (VRInitError_Compositor_D3D11HardwareRequired). * New interface for individually getting last tracked device poses returned by WaitGetPoses (GetLastPoseForTrackedDeviceIndex). * New API used to determine if the current app should render using lower resources (ShouldAppRenderWithLowResources). Typically this will return true when the dashboard is showing but other scenarios could result in this behavior also. Settings: * New speaker related settings (usingSpeakers, speakersForwardYawOffsetDegrees). [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 3321024]
1 parent c174baf commit 6f671fc

19 files changed

+788
-84
lines changed

bin/linux64/libopenvr_api.so

-842 Bytes
Binary file not shown.

bin/linux64/libopenvr_api.so.dbg

-5.73 KB
Binary file not shown.

bin/osx32/libopenvr_api.dylib

12 KB
Binary file not shown.
Binary file not shown.

bin/win32/openvr_api.dll

1.31 KB
Binary file not shown.

bin/win32/openvr_api.pdb

40 KB
Binary file not shown.

bin/win64/openvr_api.dll

320 Bytes
Binary file not shown.

bin/win64/openvr_api.pdb

40 KB
Binary file not shown.

headers/openvr.h

+243-40
Large diffs are not rendered by default.

headers/openvr_api.cs

+372-35
Large diffs are not rendered by default.

headers/openvr_api.json

+127-2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@
198198
,{"name": "VREvent_SceneFocusGained","value": "403"}
199199
,{"name": "VREvent_SceneApplicationChanged","value": "404"}
200200
,{"name": "VREvent_SceneFocusChanged","value": "405"}
201+
,{"name": "VREvent_HideRenderModels","value": "410"}
202+
,{"name": "VREvent_ShowRenderModels","value": "411"}
201203
,{"name": "VREvent_OverlayShown","value": "500"}
202204
,{"name": "VREvent_OverlayHidden","value": "501"}
203205
,{"name": "VREvent_DashboardActivated","value": "502"}
@@ -231,6 +233,7 @@
231233
,{"name": "VREvent_FirmwareUpdateFinished","value": "1101"}
232234
,{"name": "VREvent_KeyboardClosed","value": "1200"}
233235
,{"name": "VREvent_KeyboardCharInput","value": "1201"}
236+
,{"name": "VREvent_KeyboardDone","value": "1202"}
234237
,{"name": "VREvent_ApplicationTransitionStarted","value": "1300"}
235238
,{"name": "VREvent_ApplicationTransitionAborted","value": "1301"}
236239
,{"name": "VREvent_ApplicationTransitionNewAppStarted","value": "1302"}
@@ -376,6 +379,8 @@
376379
,{"name": "VRInitError_IPC_CompositorInitFailed","value": "303"}
377380
,{"name": "VRInitError_IPC_MutexInitFailed","value": "304"}
378381
,{"name": "VRInitError_IPC_Failed","value": "305"}
382+
,{"name": "VRInitError_Compositor_Failed","value": "400"}
383+
,{"name": "VRInitError_Compositor_D3D11HardwareRequired","value": "401"}
379384
,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"}
380385
,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"}
381386
,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"}
@@ -457,6 +462,7 @@
457462
,{"name": "VRCompositorError_TextureIsOnWrongDevice","value": "104"}
458463
,{"name": "VRCompositorError_TextureUsesUnsupportedFormat","value": "105"}
459464
,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"}
465+
,{"name": "VRCompositorError_IndexOutOfRange","value": "107"}
460466
]}
461467
, {"enumname": "vr::VROverlayInputMethod","values": [
462468
{"name": "VROverlayInputMethod_None","value": "0"}
@@ -561,13 +567,13 @@
561567
,{
562568
"constname": "k_unMaxApplicationKeyLength","consttype": "const uint32_t", "constval": "128"}
563569
,{
564-
"constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_003"}
570+
"constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_004"}
565571
,{
566572
"constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"}
567573
,{
568574
"constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_005"}
569575
,{
570-
"constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_011"}
576+
"constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_012"}
571577
,{
572578
"constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"}
573579
,{
@@ -636,6 +642,14 @@
636642
"constname": "k_pch_SteamVR_RequestDirectModeEnabled_Bool","consttype": "const char *const", "constval": "requestDirectModeEnabled"}
637643
,{
638644
"constname": "k_pch_SteamVR_RequestDirectModeDisabled_Bool","consttype": "const char *const", "constval": "requestDirectModeDisabled"}
645+
,{
646+
"constname": "k_pch_SteamVR_RequestDirectModeEdidVid_Int32","consttype": "const char *const", "constval": "requestDirectModeEdidVid"}
647+
,{
648+
"constname": "k_pch_SteamVR_RequestDirectModeEdidPid_Int32","consttype": "const char *const", "constval": "requestDirectModeEdidPid"}
649+
,{
650+
"constname": "k_pch_SteamVR_UsingSpeakers_Bool","consttype": "const char *const", "constval": "usingSpeakers"}
651+
,{
652+
"constname": "k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float","consttype": "const char *const", "constval": "speakersForwardYawOffsetDegrees"}
639653
,{
640654
"constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"}
641655
,{
@@ -710,6 +724,8 @@
710724
"constname": "k_pch_Perf_AllowTimingStore_Bool","consttype": "const char *const", "constval": "allowTimingStore"}
711725
,{
712726
"constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"}
727+
,{
728+
"constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"}
713729
,{
714730
"constname": "k_pch_Camera_Section","consttype": "const char *const", "constval": "camera"}
715731
,{
@@ -926,6 +942,16 @@
926942
{ "fieldname": "m_matDeviceToAbsoluteTracking", "fieldtype": "vr::HmdMatrix34_t"},
927943
{ "fieldname": "m_Pad", "fieldtype": "float [4]"},
928944
{ "fieldname": "m_pImageData", "fieldtype": "void *"}]}
945+
,{"struct": "vr::COpenVRContext","fields": [
946+
{ "fieldname": "m_pVRSystem", "fieldtype": "class vr::IVRSystem *"},
947+
{ "fieldname": "m_pVRChaperone", "fieldtype": "class vr::IVRChaperone *"},
948+
{ "fieldname": "m_pVRChaperoneSetup", "fieldtype": "class vr::IVRChaperoneSetup *"},
949+
{ "fieldname": "m_pVRCompositor", "fieldtype": "class vr::IVRCompositor *"},
950+
{ "fieldname": "m_pVROverlay", "fieldtype": "class vr::IVROverlay *"},
951+
{ "fieldname": "m_pVRRenderModels", "fieldtype": "class vr::IVRRenderModels *"},
952+
{ "fieldname": "m_pVRExtendedDisplay", "fieldtype": "class vr::IVRExtendedDisplay *"},
953+
{ "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"},
954+
{ "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}]}
929955
],
930956
"methods":[{
931957
"classname": "vr::IVRSystem",
@@ -1409,6 +1435,14 @@
14091435
{ "paramname": "pchAppKey" ,"paramtype": "const char *"}
14101436
]
14111437
}
1438+
,{
1439+
"classname": "vr::IVRApplications",
1440+
"methodname": "CancelApplicationLaunch",
1441+
"returntype": "bool",
1442+
"params": [
1443+
{ "paramname": "pchAppKey" ,"paramtype": "const char *"}
1444+
]
1445+
}
14121446
,{
14131447
"classname": "vr::IVRApplications",
14141448
"methodname": "IdentifyApplication",
@@ -1762,6 +1796,16 @@
17621796
{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"}
17631797
]
17641798
}
1799+
,{
1800+
"classname": "vr::IVRCompositor",
1801+
"methodname": "GetLastPoseForTrackedDeviceIndex",
1802+
"returntype": "vr::EVRCompositorError",
1803+
"params": [
1804+
{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
1805+
{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"},
1806+
{ "paramname": "pOutputGamePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}
1807+
]
1808+
}
17651809
,{
17661810
"classname": "vr::IVRCompositor",
17671811
"methodname": "Submit",
@@ -1888,6 +1932,11 @@
18881932
"methodname": "CompositorDumpImages",
18891933
"returntype": "void"
18901934
}
1935+
,{
1936+
"classname": "vr::IVRCompositor",
1937+
"methodname": "ShouldAppRenderWithLowResources",
1938+
"returntype": "bool"
1939+
}
18911940
,{
18921941
"classname": "vr::IVROverlay",
18931942
"methodname": "FindOverlay",
@@ -2733,6 +2782,16 @@
27332782
{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"}
27342783
]
27352784
}
2785+
,{
2786+
"classname": "vr::IVRSettings",
2787+
"methodname": "RemoveKeyInSection",
2788+
"returntype": "void",
2789+
"params": [
2790+
{ "paramname": "pchSection" ,"paramtype": "const char *"},
2791+
{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"},
2792+
{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"}
2793+
]
2794+
}
27362795
,{
27372796
"classname": "vr::IVRTrackedCamera",
27382797
"methodname": "HasCamera",
@@ -2881,5 +2940,71 @@
28812940
{ "paramname": "pProjection" ,"paramtype": "vr::HmdMatrix44_t *"}
28822941
]
28832942
}
2943+
,{
2944+
"classname": "vr::IVRTrackedCamera",
2945+
"methodname": "GetRecommendedCameraUndistortion",
2946+
"returntype": "bool",
2947+
"params": [
2948+
{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
2949+
{ "paramname": "pUndistortionWidthPixels" ,"paramtype": "uint32_t *"},
2950+
{ "paramname": "pUndistortionHeightPixels" ,"paramtype": "uint32_t *"}
2951+
]
2952+
}
2953+
,{
2954+
"classname": "vr::IVRTrackedCamera",
2955+
"methodname": "SetCameraUndistortion",
2956+
"returntype": "bool",
2957+
"params": [
2958+
{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
2959+
{ "paramname": "nUndistortionWidthPixels" ,"paramtype": "uint32_t"},
2960+
{ "paramname": "nUndistortionHeightPixels" ,"paramtype": "uint32_t"}
2961+
]
2962+
}
2963+
,{
2964+
"classname": "vr::IVRTrackedCamera",
2965+
"methodname": "RequestVideoServicesForTool",
2966+
"returntype": "void"
2967+
}
2968+
,{
2969+
"classname": "vr::IVRTrackedCamera",
2970+
"methodname": "ReleaseVideoServicesForTool",
2971+
"returntype": "void"
2972+
}
2973+
,{
2974+
"classname": "vr::IVRTrackedCamera",
2975+
"methodname": "GetVideoStreamFrameSharedTextureGL",
2976+
"returntype": "bool",
2977+
"params": [
2978+
{ "paramname": "bUndistorted" ,"paramtype": "bool"},
2979+
{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"},
2980+
{ "paramname": "pglSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t *"}
2981+
]
2982+
}
2983+
,{
2984+
"classname": "vr::IVRTrackedCamera",
2985+
"methodname": "ReleaseVideoStreamFrameSharedTextureGL",
2986+
"returntype": "bool",
2987+
"params": [
2988+
{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"},
2989+
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"}
2990+
]
2991+
}
2992+
,{
2993+
"classname": "vr::IVRTrackedCamera",
2994+
"methodname": "LockSharedTextureGL",
2995+
"returntype": "void",
2996+
"params": [
2997+
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"},
2998+
{ "paramname": "pFrameImage" ,"paramtype": "vr::CameraVideoStreamFrame_t *"}
2999+
]
3000+
}
3001+
,{
3002+
"classname": "vr::IVRTrackedCamera",
3003+
"methodname": "UnlockSharedTextureGL",
3004+
"returntype": "void",
3005+
"params": [
3006+
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"}
3007+
]
3008+
}
28843009
]
28853010
}

headers/openvr_capi.h

+31-3
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ unsigned long k_ulOverlayHandleInvalid = 0;
112112
char * IVRSystem_Version = "IVRSystem_011";
113113
char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001";
114114
unsigned int k_unMaxApplicationKeyLength = 128;
115-
char * IVRApplications_Version = "IVRApplications_003";
115+
char * IVRApplications_Version = "IVRApplications_004";
116116
char * IVRChaperone_Version = "IVRChaperone_003";
117117
char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_005";
118-
char * IVRCompositor_Version = "IVRCompositor_011";
118+
char * IVRCompositor_Version = "IVRCompositor_012";
119119
unsigned int k_unVROverlayMaxKeyLength = 128;
120120
unsigned int k_unVROverlayMaxNameLength = 128;
121121
unsigned int k_unMaxOverlayCount = 32;
@@ -150,6 +150,10 @@ char * k_pch_SteamVR_StandbyNoAppTimeout_Float = "standbyNoAppTimeout";
150150
char * k_pch_SteamVR_AutomaticDirectModeEnabled_Bool = "automaticDirectModeEnabled";
151151
char * k_pch_SteamVR_RequestDirectModeEnabled_Bool = "requestDirectModeEnabled";
152152
char * k_pch_SteamVR_RequestDirectModeDisabled_Bool = "requestDirectModeDisabled";
153+
char * k_pch_SteamVR_RequestDirectModeEdidVid_Int32 = "requestDirectModeEdidVid";
154+
char * k_pch_SteamVR_RequestDirectModeEdidPid_Int32 = "requestDirectModeEdidPid";
155+
char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
156+
char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
153157
char * k_pch_Lighthouse_Section = "driver_lighthouse";
154158
char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu";
155159
char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation";
@@ -187,6 +191,7 @@ char * k_pch_Perf_NotifyInHMD_Bool = "warnInHMD";
187191
char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce";
188192
char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
189193
char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
194+
char * k_pch_Perf_TestData_Float = "perfTestData";
190195
char * k_pch_Camera_Section = "camera";
191196
char * IVRSettings_Version = "IVRSettings_001";
192197
char * IVRTrackedCamera_Version = "IVRTrackedCamera_001";
@@ -390,6 +395,8 @@ typedef enum EVREventType
390395
EVREventType_VREvent_SceneFocusGained = 403,
391396
EVREventType_VREvent_SceneApplicationChanged = 404,
392397
EVREventType_VREvent_SceneFocusChanged = 405,
398+
EVREventType_VREvent_HideRenderModels = 410,
399+
EVREventType_VREvent_ShowRenderModels = 411,
393400
EVREventType_VREvent_OverlayShown = 500,
394401
EVREventType_VREvent_OverlayHidden = 501,
395402
EVREventType_VREvent_DashboardActivated = 502,
@@ -423,6 +430,7 @@ typedef enum EVREventType
423430
EVREventType_VREvent_FirmwareUpdateFinished = 1101,
424431
EVREventType_VREvent_KeyboardClosed = 1200,
425432
EVREventType_VREvent_KeyboardCharInput = 1201,
433+
EVREventType_VREvent_KeyboardDone = 1202,
426434
EVREventType_VREvent_ApplicationTransitionStarted = 1300,
427435
EVREventType_VREvent_ApplicationTransitionAborted = 1301,
428436
EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302,
@@ -590,6 +598,8 @@ typedef enum EVRInitError
590598
EVRInitError_VRInitError_IPC_CompositorInitFailed = 303,
591599
EVRInitError_VRInitError_IPC_MutexInitFailed = 304,
592600
EVRInitError_VRInitError_IPC_Failed = 305,
601+
EVRInitError_VRInitError_Compositor_Failed = 400,
602+
EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401,
593603
EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
594604
EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
595605
EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
@@ -683,6 +693,7 @@ typedef enum EVRCompositorError
683693
EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104,
684694
EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105,
685695
EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106,
696+
EVRCompositorError_VRCompositorError_IndexOutOfRange = 107,
686697
} EVRCompositorError;
687698

688699
typedef enum VROverlayInputMethod
@@ -1022,6 +1033,19 @@ typedef struct CameraVideoStreamFrame_t
10221033
void * m_pImageData; // void *
10231034
} CameraVideoStreamFrame_t;
10241035

1036+
typedef struct COpenVRContext
1037+
{
1038+
class IVRSystem * m_pVRSystem; // class vr::IVRSystem *
1039+
class IVRChaperone * m_pVRChaperone; // class vr::IVRChaperone *
1040+
class IVRChaperoneSetup * m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup *
1041+
class IVRCompositor * m_pVRCompositor; // class vr::IVRCompositor *
1042+
class IVROverlay * m_pVROverlay; // class vr::IVROverlay *
1043+
class IVRRenderModels * m_pVRRenderModels; // class vr::IVRRenderModels *
1044+
class IVRExtendedDisplay * m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay *
1045+
class IVRSettings * m_pVRSettings; // class vr::IVRSettings *
1046+
class IVRApplications * m_pVRApplications; // class vr::IVRApplications *
1047+
} COpenVRContext;
1048+
10251049

10261050

10271051

@@ -1082,6 +1106,7 @@ S_API EVRApplicationError VR_IVRApplications_GetApplicationKeyByIndex(intptr_t i
10821106
S_API EVRApplicationError VR_IVRApplications_GetApplicationKeyByProcessId(intptr_t instancePtr, uint32_t unProcessId, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen);
10831107
S_API EVRApplicationError VR_IVRApplications_LaunchApplication(intptr_t instancePtr, const char * pchAppKey);
10841108
S_API EVRApplicationError VR_IVRApplications_LaunchDashboardOverlay(intptr_t instancePtr, const char * pchAppKey);
1109+
S_API bool VR_IVRApplications_CancelApplicationLaunch(intptr_t instancePtr, const char * pchAppKey);
10851110
S_API EVRApplicationError VR_IVRApplications_IdentifyApplication(intptr_t instancePtr, uint32_t unProcessId, const char * pchAppKey);
10861111
S_API uint32_t VR_IVRApplications_GetApplicationProcessId(intptr_t instancePtr, const char * pchAppKey);
10871112
S_API char * VR_IVRApplications_GetApplicationsErrorNameFromEnum(intptr_t instancePtr, EVRApplicationError error);
@@ -1125,6 +1150,7 @@ S_API void VR_IVRCompositor_SetTrackingSpace(intptr_t instancePtr, ETrackingUniv
11251150
S_API ETrackingUniverseOrigin VR_IVRCompositor_GetTrackingSpace(intptr_t instancePtr);
11261151
S_API EVRCompositorError VR_IVRCompositor_WaitGetPoses(intptr_t instancePtr, struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
11271152
S_API EVRCompositorError VR_IVRCompositor_GetLastPoses(intptr_t instancePtr, struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
1153+
S_API EVRCompositorError VR_IVRCompositor_GetLastPoseForTrackedDeviceIndex(intptr_t instancePtr, TrackedDeviceIndex_t unDeviceIndex, struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pOutputGamePose);
11281154
S_API EVRCompositorError VR_IVRCompositor_Submit(intptr_t instancePtr, EVREye eEye, const struct Texture_t * pTexture, const struct VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags);
11291155
S_API void VR_IVRCompositor_ClearLastSubmittedFrame(intptr_t instancePtr);
11301156
S_API void VR_IVRCompositor_PostPresentHandoff(intptr_t instancePtr);
@@ -1145,6 +1171,7 @@ S_API void VR_IVRCompositor_ShowMirrorWindow(intptr_t instancePtr);
11451171
S_API void VR_IVRCompositor_HideMirrorWindow(intptr_t instancePtr);
11461172
S_API bool VR_IVRCompositor_IsMirrorWindowVisible(intptr_t instancePtr);
11471173
S_API void VR_IVRCompositor_CompositorDumpImages(intptr_t instancePtr);
1174+
S_API bool VR_IVRCompositor_ShouldAppRenderWithLowResources(intptr_t instancePtr);
11481175
S_API EVROverlayError VR_IVROverlay_FindOverlay(intptr_t instancePtr, const char * pchOverlayKey, VROverlayHandle_t * pOverlayHandle);
11491176
S_API EVROverlayError VR_IVROverlay_CreateOverlay(intptr_t instancePtr, const char * pchOverlayKey, const char * pchOverlayFriendlyName, VROverlayHandle_t * pOverlayHandle);
11501177
S_API EVROverlayError VR_IVROverlay_DestroyOverlay(intptr_t instancePtr, VROverlayHandle_t ulOverlayHandle);
@@ -1235,6 +1262,7 @@ S_API void VR_IVRSettings_SetFloat(intptr_t instancePtr, const char * pchSection
12351262
S_API void VR_IVRSettings_GetString(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, char * pchValue, uint32_t unValueLen, const char * pchDefaultValue, EVRSettingsError * peError);
12361263
S_API void VR_IVRSettings_SetString(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, const char * pchValue, EVRSettingsError * peError);
12371264
S_API void VR_IVRSettings_RemoveSection(intptr_t instancePtr, const char * pchSection, EVRSettingsError * peError);
1265+
S_API void VR_IVRSettings_RemoveKeyInSection(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, EVRSettingsError * peError);
12381266
S_API bool VR_IVRTrackedCamera_HasCamera(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex);
12391267
S_API bool VR_IVRTrackedCamera_GetCameraFirmwareDescription(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex, char * pBuffer, uint32_t nBufferLen);
12401268
S_API bool VR_IVRTrackedCamera_GetCameraFrameDimensions(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat, uint32_t * pWidth, uint32_t * pHeight);
@@ -1257,7 +1285,7 @@ S_API void VR_IVRTrackedCamera_RequestVideoServicesForTool(intptr_t instancePtr)
12571285
S_API void VR_IVRTrackedCamera_ReleaseVideoServicesForTool(intptr_t instancePtr);
12581286
S_API bool VR_IVRTrackedCamera_GetVideoStreamFrameSharedTextureGL(intptr_t instancePtr, bool bUndistorted, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle);
12591287
S_API bool VR_IVRTrackedCamera_ReleaseVideoStreamFrameSharedTextureGL(intptr_t instancePtr, glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle);
1260-
S_API void VR_IVRTrackedCamera_LockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle);
1288+
S_API void VR_IVRTrackedCamera_LockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle, CameraVideoStreamFrame_t * pFrameImage);
12611289
S_API void VR_IVRTrackedCamera_UnlockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle);
12621290

12631291
// Global entry points

0 commit comments

Comments
 (0)