Skip to content

Commit 4c85abc

Browse files
committed
# OpenVR SDK 1.16.8
IVRCompositor: * Added support for OpenGL array textures via the Submit_GLArrayTexture flag. IVROverlay: * Added support for overlays that support projections via SetOverlayTransformProjection [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 6385862]
1 parent e3d3756 commit 4c85abc

34 files changed

+881
-368
lines changed

bin/linux32/libopenvr_api.so

982 KB
Binary file not shown.

bin/linux32/libopenvr_api.so.dbg

3.38 MB
Binary file not shown.

bin/linux64/libopenvr_api.so

20.3 KB
Binary file not shown.

bin/linux64/libopenvr_api.so.dbg

510 KB
Binary file not shown.

bin/win32/openvr_api.dll

-760 Bytes
Binary file not shown.

bin/win32/openvr_api.dll.sig

0 Bytes
Binary file not shown.

bin/win32/openvr_api.pdb

40 KB
Binary file not shown.

bin/win64/openvr_api.dll

-760 Bytes
Binary file not shown.

bin/win64/openvr_api.dll.sig

0 Bytes
Binary file not shown.

bin/win64/openvr_api.pdb

24 KB
Binary file not shown.

headers/openvr.h

+305-207
Large diffs are not rendered by default.

headers/openvr_api.cs

+60-12
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public struct IVRCompositor
731731
internal _GetCurrentFadeColor GetCurrentFadeColor;
732732

733733
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
734-
internal delegate void _FadeGrid(float fSeconds, bool bFadeIn);
734+
internal delegate void _FadeGrid(float fSeconds, bool bFadeGridIn);
735735
[MarshalAs(UnmanagedType.FunctionPtr)]
736736
internal _FadeGrid FadeGrid;
737737

@@ -1120,6 +1120,11 @@ public struct IVROverlay
11201120
[MarshalAs(UnmanagedType.FunctionPtr)]
11211121
internal _GetOverlayTransformCursor GetOverlayTransformCursor;
11221122

1123+
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
1124+
internal delegate EVROverlayError _SetOverlayTransformProjection(ulong ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform, ref VROverlayProjection_t pProjection, EVREye eEye);
1125+
[MarshalAs(UnmanagedType.FunctionPtr)]
1126+
internal _SetOverlayTransformProjection SetOverlayTransformProjection;
1127+
11231128
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
11241129
internal delegate EVROverlayError _ShowOverlay(ulong ulOverlayHandle);
11251130
[MarshalAs(UnmanagedType.FunctionPtr)]
@@ -2899,9 +2904,9 @@ public HmdColor_t GetCurrentFadeColor(bool bBackground)
28992904
HmdColor_t result = FnTable.GetCurrentFadeColor(bBackground);
29002905
return result;
29012906
}
2902-
public void FadeGrid(float fSeconds,bool bFadeIn)
2907+
public void FadeGrid(float fSeconds,bool bFadeGridIn)
29032908
{
2904-
FnTable.FadeGrid(fSeconds,bFadeIn);
2909+
FnTable.FadeGrid(fSeconds,bFadeGridIn);
29052910
}
29062911
public float GetCurrentGridAlpha()
29072912
{
@@ -3310,6 +3315,11 @@ public EVROverlayError GetOverlayTransformCursor(ulong ulOverlayHandle,ref HmdVe
33103315
EVROverlayError result = FnTable.GetOverlayTransformCursor(ulOverlayHandle,ref pvHotspot);
33113316
return result;
33123317
}
3318+
public EVROverlayError SetOverlayTransformProjection(ulong ulOverlayHandle,ETrackingUniverseOrigin eTrackingOrigin,ref HmdMatrix34_t pmatTrackingOriginToOverlayTransform,ref VROverlayProjection_t pProjection,EVREye eEye)
3319+
{
3320+
EVROverlayError result = FnTable.SetOverlayTransformProjection(ulOverlayHandle,eTrackingOrigin,ref pmatTrackingOriginToOverlayTransform,ref pProjection,eEye);
3321+
return result;
3322+
}
33133323
public EVROverlayError ShowOverlay(ulong ulOverlayHandle)
33143324
{
33153325
EVROverlayError result = FnTable.ShowOverlay(ulOverlayHandle);
@@ -4704,9 +4714,13 @@ public enum ETrackedDeviceProperty
47044714
Prop_DisplaySupportsAnalogGain_Bool = 2085,
47054715
Prop_DisplayMinAnalogGain_Float = 2086,
47064716
Prop_DisplayMaxAnalogGain_Float = 2087,
4717+
Prop_CameraExposureTime_Float = 2088,
4718+
Prop_CameraGlobalGain_Float = 2089,
47074719
Prop_DashboardScale_Float = 2091,
47084720
Prop_IpdUIRangeMinMeters_Float = 2100,
47094721
Prop_IpdUIRangeMaxMeters_Float = 2101,
4722+
Prop_Hmd_SupportsHDCP14LegacyCompat_Bool = 2102,
4723+
Prop_Hmd_SupportsMicMonitoring_Bool = 2103,
47104724
Prop_DriverRequestedMuraCorrectionMode_Int32 = 2200,
47114725
Prop_DriverRequestedMuraFeather_InnerLeft_Int32 = 2201,
47124726
Prop_DriverRequestedMuraFeather_InnerRight_Int32 = 2202,
@@ -4801,6 +4815,8 @@ public enum EVRSubmitFlags
48014815
Submit_TextureWithDepth = 16,
48024816
Submit_FrameDiscontinuty = 32,
48034817
Submit_VulkanTextureWithArrayData = 64,
4818+
Submit_GlArrayTexture = 128,
4819+
Submit_Reserved2 = 32768,
48044820
}
48054821
public enum EVRState
48064822
{
@@ -5153,8 +5169,11 @@ public enum EVRApplicationType
51535169
VRApplication_SteamWatchdog = 6,
51545170
VRApplication_Bootstrapper = 7,
51555171
VRApplication_WebHelper = 8,
5156-
VRApplication_OpenXR = 9,
5157-
VRApplication_Max = 10,
5172+
VRApplication_OpenXRInstance = 9,
5173+
VRApplication_OpenXRScene = 10,
5174+
VRApplication_OpenXROverlay = 11,
5175+
VRApplication_Prism = 12,
5176+
VRApplication_Max = 13,
51585177
}
51595178
public enum EVRFirmwareError
51605179
{
@@ -5234,6 +5253,15 @@ public enum EVRInitError
52345253
Init_FailedForVrMonitor = 144,
52355254
Init_PropertyManagerInitFailed = 145,
52365255
Init_WebServerFailed = 146,
5256+
Init_IllegalTypeTransition = 147,
5257+
Init_MismatchedRuntimes = 148,
5258+
Init_InvalidProcessId = 149,
5259+
Init_VRServiceStartupFailed = 150,
5260+
Init_PrismNeedsNewDrivers = 151,
5261+
Init_PrismStartupTimedOut = 152,
5262+
Init_CouldNotStartPrism = 153,
5263+
Init_CreateDriverDirectDeviceFailed = 154,
5264+
Init_PrismExitedUnexpectedly = 155,
52375265
Driver_Failed = 200,
52385266
Driver_Unknown = 201,
52395267
Driver_HmdUnknown = 202,
@@ -5349,6 +5377,9 @@ public enum EVRInitError
53495377
Compositor_CreateOverlayInvalidCall = 488,
53505378
Compositor_CreateOverlayAlreadyInitialized = 489,
53515379
Compositor_FailedToCreateMailbox = 490,
5380+
Compositor_WindowInterfaceIsNull = 491,
5381+
Compositor_SystemLayerCreateInstance = 492,
5382+
Compositor_SystemLayerCreateSession = 493,
53525383
VendorSpecific_UnableToConnectToOculusRuntime = 1000,
53535384
VendorSpecific_WindowsNotInDevMode = 1001,
53545385
VendorSpecific_HmdFound_CantOpenDevice = 1101,
@@ -5466,6 +5497,7 @@ public enum EVRApplicationError
54665497
PropertyNotSet = 201,
54675498
UnknownProperty = 202,
54685499
InvalidParameter = 203,
5500+
NotImplemented = 300,
54695501
}
54705502
public enum EVRApplicationProperty
54715503
{
@@ -5556,6 +5588,7 @@ public enum VROverlayTransformType
55565588
VROverlayTransform_DashboardTab = 5,
55575589
VROverlayTransform_DashboardThumb = 6,
55585590
VROverlayTransform_Mountable = 7,
5591+
VROverlayTransform_Projection = 8,
55595592
}
55605593
public enum VROverlayFlags
55615594
{
@@ -5949,6 +5982,11 @@ private static void _copysign(ref float sizeval, float signval)
59495982
public HmdVector2_t vTopLeft;
59505983
public HmdVector2_t vBottomRight;
59515984
}
5985+
[StructLayout(LayoutKind.Sequential)] public struct VRBoneTransform_t
5986+
{
5987+
public HmdVector4_t position;
5988+
public HmdQuaternionf_t orientation;
5989+
}
59525990
[StructLayout(LayoutKind.Sequential)] public struct DistortionCoordinates_t
59535991
{
59545992
public float rfRed0; //float[2]
@@ -6079,6 +6117,7 @@ private static void _copysign(ref float sizeval, float signval)
60796117
{
60806118
public ulong overlayHandle;
60816119
public ulong devicePath;
6120+
public ulong memoryBlockId;
60826121
}
60836122
[StructLayout(LayoutKind.Sequential)] public struct VREvent_Status_t
60846123
{
@@ -6301,11 +6340,6 @@ public void Unpack(ref VRControllerState_t unpacked)
63016340
unpacked.rAxis4 = this.rAxis4;
63026341
}
63036342
}
6304-
[StructLayout(LayoutKind.Sequential)] public struct VRBoneTransform_t
6305-
{
6306-
public HmdVector4_t position;
6307-
public HmdQuaternionf_t orientation;
6308-
}
63096343
[StructLayout(LayoutKind.Sequential)] public struct CameraVideoStreamFrameHeader_t
63106344
{
63116345
public EVRTrackedCameraFrameType eFrameType;
@@ -6433,6 +6467,13 @@ public void Unpack(ref VRControllerState_t unpacked)
64336467
public EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType;
64346468
public VROverlayIntersectionMaskPrimitive_Data_t m_Primitive;
64356469
}
6470+
[StructLayout(LayoutKind.Sequential)] public struct VROverlayProjection_t
6471+
{
6472+
public float fLeft;
6473+
public float fRight;
6474+
public float fTop;
6475+
public float fBottom;
6476+
}
64366477
[StructLayout(LayoutKind.Sequential)] public struct VROverlayView_t
64376478
{
64386479
public ulong overlayHandle;
@@ -7519,12 +7560,12 @@ public static uint GetInitToken()
75197560
public const string IVRApplications_Version = "IVRApplications_007";
75207561
public const string IVRChaperone_Version = "IVRChaperone_004";
75217562
public const string IVRChaperoneSetup_Version = "IVRChaperoneSetup_006";
7522-
public const string IVRCompositor_Version = "IVRCompositor_026";
7563+
public const string IVRCompositor_Version = "IVRCompositor_027";
75237564
public const uint k_unVROverlayMaxKeyLength = 128;
75247565
public const uint k_unVROverlayMaxNameLength = 128;
75257566
public const uint k_unMaxOverlayCount = 128;
75267567
public const uint k_unMaxOverlayIntersectionMaskPrimitivesCount = 32;
7527-
public const string IVROverlay_Version = "IVROverlay_024";
7568+
public const string IVROverlay_Version = "IVROverlay_025";
75287569
public const string IVROverlayView_Version = "IVROverlayView_003";
75297570
public const uint k_unHeadsetViewMaxWidth = 3840;
75307571
public const uint k_unHeadsetViewMaxHeight = 2160;
@@ -7559,6 +7600,7 @@ public static uint GetInitToken()
75597600
public const string k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
75607601
public const string k_pch_SteamVR_TrackingLossColor_String = "trackingLossColor";
75617602
public const string k_pch_SteamVR_ShowStage_Bool = "showStage";
7603+
public const string k_pch_SteamVR_DrawTrackingReferences_Bool = "drawTrackingReferences";
75627604
public const string k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
75637605
public const string k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
75647606
public const string k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
@@ -7569,6 +7611,8 @@ public static uint GetInitToken()
75697611
public const string k_pch_SteamVR_MaxRecommendedResolution_Int32 = "maxRecommendedResolution";
75707612
public const string k_pch_SteamVR_MotionSmoothing_Bool = "motionSmoothing";
75717613
public const string k_pch_SteamVR_MotionSmoothingOverride_Int32 = "motionSmoothingOverride";
7614+
public const string k_pch_SteamVR_FramesToThrottle_Int32 = "framesToThrottle";
7615+
public const string k_pch_SteamVR_AdditionalFramesToPredict_Int32 = "additionalFramesToPredict";
75727616
public const string k_pch_SteamVR_DisableAsyncReprojection_Bool = "disableAsync";
75737617
public const string k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
75747618
public const string k_pch_SteamVR_DefaultMirrorView_Int32 = "mirrorView";
@@ -7611,6 +7655,8 @@ public static uint GetInitToken()
76117655
public const string k_pch_SteamVR_OverlayRenderQuality = "overlayRenderQuality_2";
76127656
public const string k_pch_SteamVR_BlockOculusSDKOnOpenVRLaunchOption_Bool = "blockOculusSDKOnOpenVRLaunchOption";
76137657
public const string k_pch_SteamVR_BlockOculusSDKOnAllLaunches_Bool = "blockOculusSDKOnAllLaunches";
7658+
public const string k_pch_SteamVR_HDCPLegacyCompatibility_Bool = "hdcp14legacyCompatibility";
7659+
public const string k_pch_SteamVR_UsePrism_Bool = "usePrism";
76147660
public const string k_pch_DirectMode_Section = "direct_mode";
76157661
public const string k_pch_DirectMode_Enable_Bool = "enable";
76167662
public const string k_pch_DirectMode_Count_Int32 = "count";
@@ -7703,6 +7749,7 @@ public static uint GetInitToken()
77037749
public const string k_pch_audio_LastHmdPlaybackDeviceId_String = "lastHmdPlaybackDeviceId";
77047750
public const string k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
77057751
public const string k_pch_audio_DualSpeakerAndJackOutput_Bool = "dualSpeakerAndJackOutput";
7752+
public const string k_pch_audio_MuteMicMonitor_Bool = "muteMicMonitor";
77067753
public const string k_pch_Power_Section = "power";
77077754
public const string k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
77087755
public const string k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
@@ -7716,6 +7763,7 @@ public static uint GetInitToken()
77167763
public const string k_pch_Dashboard_Position = "position";
77177764
public const string k_pch_Dashboard_DesktopScale = "desktopScale";
77187765
public const string k_pch_Dashboard_DashboardScale = "dashboardScale";
7766+
public const string k_pch_Dashboard_UseStandaloneSystemLayer = "standaloneSystemLayer";
77197767
public const string k_pch_modelskin_Section = "modelskins";
77207768
public const string k_pch_Driver_Enable_Bool = "enable";
77217769
public const string k_pch_Driver_BlockedBySafemode_Bool = "blocked_by_safe_mode";

0 commit comments

Comments
 (0)