Skip to content

Commit 5e45960

Browse files
committed
[openvr] Public API fix for C# (unity) (vrshared_double -> double)
CLs 8290392 Merging using vr_steamvr_rel_hotfix_to_sdk_release [git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 8291348]
1 parent 751538d commit 5e45960

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

codegen/api_shared.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ def converttype(thetype):
247247
thetype = 'int'
248248
if(thetype == 'WebConsoleHandle_t'):
249249
thetype = 'ulong'
250+
if(thetype == 'vrshared_double'):
251+
thetype = 'double'
252+
if(thetype == 'vrshared_uint64_t'):
253+
thetype = 'ulong'
250254

251255
if(thetype[0:7] == 'struct '):
252256
thetype = thetype[7:]

headers/openvr_api.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6480,11 +6480,11 @@ public void Unpack(ref VRControllerState_t unpacked)
64806480
public uint m_nNumDroppedFramesTimedOut;
64816481
public uint m_nNumReprojectedFramesTimedOut;
64826482
public uint m_nNumFrameSubmits;
6483-
public vrshared_double m_flSumCompositorCPUTimeMS;
6484-
public vrshared_double m_flSumCompositorGPUTimeMS;
6485-
public vrshared_double m_flSumTargetFrameTimes;
6486-
public vrshared_double m_flSumApplicationCPUTimeMS;
6487-
public vrshared_double m_flSumApplicationGPUTimeMS;
6483+
public double m_flSumCompositorCPUTimeMS;
6484+
public double m_flSumCompositorGPUTimeMS;
6485+
public double m_flSumTargetFrameTimes;
6486+
public double m_flSumApplicationCPUTimeMS;
6487+
public double m_flSumApplicationGPUTimeMS;
64886488
public uint m_nNumFramesWithDepth;
64896489
}
64906490
[StructLayout(LayoutKind.Sequential)] public struct Compositor_StageRenderSettings

0 commit comments

Comments
 (0)