mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-02 12:44:25 +01:00
vrclient: Support intermediate version 1.0.3a
Used by The Lab.
This commit is contained in:
parent
55b80e0c68
commit
f260a2cb30
15 changed files with 4894 additions and 2 deletions
|
|
@ -8181,6 +8181,248 @@ EVROverlayError __thiscall IVROverlay_013_SetOverlayIntersectionMask(void *_this
|
|||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_SetTrackingSpace(void *_this, ETrackingUniverseOrigin eOrigin)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(eOrigin);
|
||||
}
|
||||
|
||||
ETrackingUniverseOrigin __thiscall IVRCompositor_017_GetTrackingSpace(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_WaitGetPoses(void *_this, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pRenderPoseArray);
|
||||
push_uint32_parameter(unRenderPoseArrayCount);
|
||||
push_ptr_parameter(pGamePoseArray);
|
||||
push_uint32_parameter(unGamePoseArrayCount);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetLastPoses(void *_this, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pRenderPoseArray);
|
||||
push_uint32_parameter(unRenderPoseArrayCount);
|
||||
push_ptr_parameter(pGamePoseArray);
|
||||
push_uint32_parameter(unGamePoseArrayCount);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetLastPoseForTrackedDeviceIndex(void *_this, TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t * pOutputPose, TrackedDevicePose_t * pOutputGamePose)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(unDeviceIndex);
|
||||
push_ptr_parameter(pOutputPose);
|
||||
push_ptr_parameter(pOutputGamePose);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_Submit(void *_this, EVREye eEye, Texture_t * pTexture, VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(eEye);
|
||||
push_ptr_parameter(pTexture);
|
||||
push_ptr_parameter(pBounds);
|
||||
push_uint32_parameter(nSubmitFlags);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_ClearLastSubmittedFrame(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_PostPresentHandoff(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_GetFrameTiming(void *_this, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pTiming);
|
||||
push_uint32_parameter(unFramesAgo);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetFrameTimings(void *_this, Compositor_FrameTiming * pTiming, uint32_t nFrames)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pTiming);
|
||||
push_uint32_parameter(nFrames);
|
||||
return 0;
|
||||
}
|
||||
|
||||
float __thiscall IVRCompositor_017_GetFrameTimeRemaining(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_GetCumulativeStats(void *_this, Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pStats);
|
||||
push_uint32_parameter(nStatsSizeInBytes);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_FadeToColor(void *_this, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_float_parameter(fSeconds);
|
||||
push_float_parameter(fRed);
|
||||
push_float_parameter(fGreen);
|
||||
push_float_parameter(fBlue);
|
||||
push_float_parameter(fAlpha);
|
||||
push_bool_parameter(bBackground);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_FadeGrid(void *_this, float fSeconds, bool bFadeIn)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_float_parameter(fSeconds);
|
||||
push_bool_parameter(bFadeIn);
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_SetSkyboxOverride(void *_this, Texture_t * pTextures, uint32_t unTextureCount)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(pTextures);
|
||||
push_uint32_parameter(unTextureCount);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_ClearSkyboxOverride(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorBringToFront(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorGoToBack(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorQuit(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_IsFullscreen(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetCurrentSceneFocusProcess(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetLastFrameRenderer(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_CanRenderScene(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_ShowMirrorWindow(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_HideMirrorWindow(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_IsMirrorWindowVisible(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorDumpImages(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_ShouldAppRenderWithLowResources(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_ForceInterleavedReprojectionOn(void *_this, bool bOverride)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_bool_parameter(bOverride);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_ForceReconnectProcess(void *_this)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_SuspendRendering(void *_this, bool bSuspend)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_bool_parameter(bSuspend);
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetMirrorTextureD3D11(void *_this, EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(eEye);
|
||||
push_ptr_parameter(pD3D11DeviceOrResource);
|
||||
push_ptr_parameter(ppD3D11ShaderResourceView);
|
||||
return 0;
|
||||
}
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetMirrorTextureGL(void *_this, EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(eEye);
|
||||
push_ptr_parameter(pglTextureId);
|
||||
push_ptr_parameter(pglSharedTextureHandle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool __thiscall IVRCompositor_017_ReleaseSharedGLTexture(void *_this, glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_uint32_parameter(glTextureId);
|
||||
push_ptr_parameter(glSharedTextureHandle);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_LockGLSharedTextureForAccess(void *_this, glSharedTextureHandle_t glSharedTextureHandle)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(glSharedTextureHandle);
|
||||
}
|
||||
|
||||
void __thiscall IVRCompositor_017_UnlockGLSharedTextureForAccess(void *_this, glSharedTextureHandle_t glSharedTextureHandle)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
push_ptr_parameter(glSharedTextureHandle);
|
||||
}
|
||||
|
||||
void __thiscall IVRSystem_012_GetRecommendedRenderTargetSize(void *_this, uint32_t * pnWidth, uint32_t * pnHeight)
|
||||
{
|
||||
push_ptr_parameter(_this);
|
||||
|
|
|
|||
|
|
@ -2131,6 +2131,80 @@ void __thiscall IVROverlay_013_SetKeyboardPositionForOverlay(void *_this, VROver
|
|||
|
||||
EVROverlayError __thiscall IVROverlay_013_SetOverlayIntersectionMask(void *_this, VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t * pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize);
|
||||
|
||||
void test_capi_thunks_IVRCompositor_017(void);
|
||||
|
||||
void __thiscall IVRCompositor_017_SetTrackingSpace(void *_this, ETrackingUniverseOrigin eOrigin);
|
||||
|
||||
ETrackingUniverseOrigin __thiscall IVRCompositor_017_GetTrackingSpace(void *_this);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_WaitGetPoses(void *_this, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetLastPoses(void *_this, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetLastPoseForTrackedDeviceIndex(void *_this, TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t * pOutputPose, TrackedDevicePose_t * pOutputGamePose);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_Submit(void *_this, EVREye eEye, Texture_t * pTexture, VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags);
|
||||
|
||||
void __thiscall IVRCompositor_017_ClearLastSubmittedFrame(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_PostPresentHandoff(void *_this);
|
||||
|
||||
bool __thiscall IVRCompositor_017_GetFrameTiming(void *_this, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo);
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetFrameTimings(void *_this, Compositor_FrameTiming * pTiming, uint32_t nFrames);
|
||||
|
||||
float __thiscall IVRCompositor_017_GetFrameTimeRemaining(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_GetCumulativeStats(void *_this, Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes);
|
||||
|
||||
void __thiscall IVRCompositor_017_FadeToColor(void *_this, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground);
|
||||
|
||||
void __thiscall IVRCompositor_017_FadeGrid(void *_this, float fSeconds, bool bFadeIn);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_SetSkyboxOverride(void *_this, Texture_t * pTextures, uint32_t unTextureCount);
|
||||
|
||||
void __thiscall IVRCompositor_017_ClearSkyboxOverride(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorBringToFront(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorGoToBack(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorQuit(void *_this);
|
||||
|
||||
bool __thiscall IVRCompositor_017_IsFullscreen(void *_this);
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetCurrentSceneFocusProcess(void *_this);
|
||||
|
||||
uint32_t __thiscall IVRCompositor_017_GetLastFrameRenderer(void *_this);
|
||||
|
||||
bool __thiscall IVRCompositor_017_CanRenderScene(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_ShowMirrorWindow(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_HideMirrorWindow(void *_this);
|
||||
|
||||
bool __thiscall IVRCompositor_017_IsMirrorWindowVisible(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_CompositorDumpImages(void *_this);
|
||||
|
||||
bool __thiscall IVRCompositor_017_ShouldAppRenderWithLowResources(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_ForceInterleavedReprojectionOn(void *_this, bool bOverride);
|
||||
|
||||
void __thiscall IVRCompositor_017_ForceReconnectProcess(void *_this);
|
||||
|
||||
void __thiscall IVRCompositor_017_SuspendRendering(void *_this, bool bSuspend);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetMirrorTextureD3D11(void *_this, EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView);
|
||||
|
||||
EVRCompositorError __thiscall IVRCompositor_017_GetMirrorTextureGL(void *_this, EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle);
|
||||
|
||||
bool __thiscall IVRCompositor_017_ReleaseSharedGLTexture(void *_this, glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle);
|
||||
|
||||
void __thiscall IVRCompositor_017_LockGLSharedTextureForAccess(void *_this, glSharedTextureHandle_t glSharedTextureHandle);
|
||||
|
||||
void __thiscall IVRCompositor_017_UnlockGLSharedTextureForAccess(void *_this, glSharedTextureHandle_t glSharedTextureHandle);
|
||||
|
||||
void test_capi_thunks_IVRSystem_012(void);
|
||||
|
||||
void __thiscall IVRSystem_012_GetRecommendedRenderTargetSize(void *_this, uint32_t * pnWidth, uint32_t * pnHeight);
|
||||
|
|
|
|||
|
|
@ -9605,6 +9605,308 @@ void test_capi_thunks_IVROverlay_013(void)
|
|||
VirtualFree(t, 0, MEM_RELEASE);
|
||||
}
|
||||
|
||||
void test_capi_thunks_IVRCompositor_017(void)
|
||||
{
|
||||
struct thunk *t = alloc_thunks(1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_SetTrackingSpace, 1, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_SetTrackingSpace)(ETrackingUniverseOrigin eOrigin) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_SetTrackingSpace(1);
|
||||
check_ptr_parameter("IVRCompositor_017_SetTrackingSpace", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_SetTrackingSpace", 1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetTrackingSpace, 0, FALSE, FALSE);
|
||||
ETrackingUniverseOrigin (__stdcall *capi_IVRCompositor_017_GetTrackingSpace)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetTrackingSpace();
|
||||
check_ptr_parameter("IVRCompositor_017_GetTrackingSpace", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_WaitGetPoses, 4, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_WaitGetPoses)(TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_WaitGetPoses((void *)1, 2, (void *)3, 4);
|
||||
check_ptr_parameter("IVRCompositor_017_WaitGetPoses", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_WaitGetPoses", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_WaitGetPoses", 2);
|
||||
check_ptr_parameter("IVRCompositor_017_WaitGetPoses", (void *)3);
|
||||
check_uint32_parameter("IVRCompositor_017_WaitGetPoses", 4);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetLastPoses, 4, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_GetLastPoses)(TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetLastPoses((void *)1, 2, (void *)3, 4);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoses", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoses", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_GetLastPoses", 2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoses", (void *)3);
|
||||
check_uint32_parameter("IVRCompositor_017_GetLastPoses", 4);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetLastPoseForTrackedDeviceIndex, 3, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_GetLastPoseForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t * pOutputPose, TrackedDevicePose_t * pOutputGamePose) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetLastPoseForTrackedDeviceIndex(1, (void *)2, (void *)3);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoseForTrackedDeviceIndex", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_GetLastPoseForTrackedDeviceIndex", 1);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoseForTrackedDeviceIndex", (void *)2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastPoseForTrackedDeviceIndex", (void *)3);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_Submit, 4, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_Submit)(EVREye eEye, Texture_t * pTexture, VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_Submit(1, (void *)2, (void *)3, 4);
|
||||
check_ptr_parameter("IVRCompositor_017_Submit", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_Submit", 1);
|
||||
check_ptr_parameter("IVRCompositor_017_Submit", (void *)2);
|
||||
check_ptr_parameter("IVRCompositor_017_Submit", (void *)3);
|
||||
check_uint32_parameter("IVRCompositor_017_Submit", 4);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ClearLastSubmittedFrame, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_ClearLastSubmittedFrame)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ClearLastSubmittedFrame();
|
||||
check_ptr_parameter("IVRCompositor_017_ClearLastSubmittedFrame", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_PostPresentHandoff, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_PostPresentHandoff)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_PostPresentHandoff();
|
||||
check_ptr_parameter("IVRCompositor_017_PostPresentHandoff", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetFrameTiming, 2, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_GetFrameTiming)(Compositor_FrameTiming * pTiming, uint32_t unFramesAgo) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetFrameTiming((void *)1, 2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetFrameTiming", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_GetFrameTiming", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_GetFrameTiming", 2);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetFrameTimings, 2, FALSE, FALSE);
|
||||
uint32_t (__stdcall *capi_IVRCompositor_017_GetFrameTimings)(Compositor_FrameTiming * pTiming, uint32_t nFrames) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetFrameTimings((void *)1, 2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetFrameTimings", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_GetFrameTimings", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_GetFrameTimings", 2);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetFrameTimeRemaining, 0, FALSE, FALSE);
|
||||
float (__stdcall *capi_IVRCompositor_017_GetFrameTimeRemaining)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetFrameTimeRemaining();
|
||||
check_ptr_parameter("IVRCompositor_017_GetFrameTimeRemaining", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetCumulativeStats, 2, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_GetCumulativeStats)(Compositor_CumulativeStats * pStats, uint32_t nStatsSizeInBytes) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetCumulativeStats((void *)1, 2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetCumulativeStats", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_GetCumulativeStats", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_GetCumulativeStats", 2);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_FadeToColor, 6, TRUE, TRUE);
|
||||
void (__stdcall *capi_IVRCompositor_017_FadeToColor)(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_FadeToColor(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 1);
|
||||
check_ptr_parameter("IVRCompositor_017_FadeToColor", this_ptr_value);
|
||||
check_float_parameter("IVRCompositor_017_FadeToColor", 1.0f);
|
||||
check_float_parameter("IVRCompositor_017_FadeToColor", 2.0f);
|
||||
check_float_parameter("IVRCompositor_017_FadeToColor", 3.0f);
|
||||
check_float_parameter("IVRCompositor_017_FadeToColor", 4.0f);
|
||||
check_float_parameter("IVRCompositor_017_FadeToColor", 5.0f);
|
||||
check_bool_parameter("IVRCompositor_017_FadeToColor", 1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_FadeGrid, 2, TRUE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_FadeGrid)(float fSeconds, bool bFadeIn) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_FadeGrid(1.0f, 1);
|
||||
check_ptr_parameter("IVRCompositor_017_FadeGrid", this_ptr_value);
|
||||
check_float_parameter("IVRCompositor_017_FadeGrid", 1.0f);
|
||||
check_bool_parameter("IVRCompositor_017_FadeGrid", 1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_SetSkyboxOverride, 2, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_SetSkyboxOverride)(Texture_t * pTextures, uint32_t unTextureCount) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_SetSkyboxOverride((void *)1, 2);
|
||||
check_ptr_parameter("IVRCompositor_017_SetSkyboxOverride", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_SetSkyboxOverride", (void *)1);
|
||||
check_uint32_parameter("IVRCompositor_017_SetSkyboxOverride", 2);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ClearSkyboxOverride, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_ClearSkyboxOverride)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ClearSkyboxOverride();
|
||||
check_ptr_parameter("IVRCompositor_017_ClearSkyboxOverride", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_CompositorBringToFront, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_CompositorBringToFront)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_CompositorBringToFront();
|
||||
check_ptr_parameter("IVRCompositor_017_CompositorBringToFront", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_CompositorGoToBack, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_CompositorGoToBack)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_CompositorGoToBack();
|
||||
check_ptr_parameter("IVRCompositor_017_CompositorGoToBack", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_CompositorQuit, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_CompositorQuit)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_CompositorQuit();
|
||||
check_ptr_parameter("IVRCompositor_017_CompositorQuit", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_IsFullscreen, 0, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_IsFullscreen)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_IsFullscreen();
|
||||
check_ptr_parameter("IVRCompositor_017_IsFullscreen", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetCurrentSceneFocusProcess, 0, FALSE, FALSE);
|
||||
uint32_t (__stdcall *capi_IVRCompositor_017_GetCurrentSceneFocusProcess)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetCurrentSceneFocusProcess();
|
||||
check_ptr_parameter("IVRCompositor_017_GetCurrentSceneFocusProcess", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetLastFrameRenderer, 0, FALSE, FALSE);
|
||||
uint32_t (__stdcall *capi_IVRCompositor_017_GetLastFrameRenderer)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetLastFrameRenderer();
|
||||
check_ptr_parameter("IVRCompositor_017_GetLastFrameRenderer", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_CanRenderScene, 0, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_CanRenderScene)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_CanRenderScene();
|
||||
check_ptr_parameter("IVRCompositor_017_CanRenderScene", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ShowMirrorWindow, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_ShowMirrorWindow)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ShowMirrorWindow();
|
||||
check_ptr_parameter("IVRCompositor_017_ShowMirrorWindow", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_HideMirrorWindow, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_HideMirrorWindow)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_HideMirrorWindow();
|
||||
check_ptr_parameter("IVRCompositor_017_HideMirrorWindow", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_IsMirrorWindowVisible, 0, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_IsMirrorWindowVisible)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_IsMirrorWindowVisible();
|
||||
check_ptr_parameter("IVRCompositor_017_IsMirrorWindowVisible", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_CompositorDumpImages, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_CompositorDumpImages)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_CompositorDumpImages();
|
||||
check_ptr_parameter("IVRCompositor_017_CompositorDumpImages", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ShouldAppRenderWithLowResources, 0, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_ShouldAppRenderWithLowResources)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ShouldAppRenderWithLowResources();
|
||||
check_ptr_parameter("IVRCompositor_017_ShouldAppRenderWithLowResources", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ForceInterleavedReprojectionOn, 1, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_ForceInterleavedReprojectionOn)(bool bOverride) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ForceInterleavedReprojectionOn(1);
|
||||
check_ptr_parameter("IVRCompositor_017_ForceInterleavedReprojectionOn", this_ptr_value);
|
||||
check_bool_parameter("IVRCompositor_017_ForceInterleavedReprojectionOn", 1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ForceReconnectProcess, 0, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_ForceReconnectProcess)() = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ForceReconnectProcess();
|
||||
check_ptr_parameter("IVRCompositor_017_ForceReconnectProcess", this_ptr_value);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_SuspendRendering, 1, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_SuspendRendering)(bool bSuspend) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_SuspendRendering(1);
|
||||
check_ptr_parameter("IVRCompositor_017_SuspendRendering", this_ptr_value);
|
||||
check_bool_parameter("IVRCompositor_017_SuspendRendering", 1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetMirrorTextureD3D11, 3, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_GetMirrorTextureD3D11)(EVREye eEye, void * pD3D11DeviceOrResource, void ** ppD3D11ShaderResourceView) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetMirrorTextureD3D11(1, (void *)2, (void *)3);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureD3D11", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_GetMirrorTextureD3D11", 1);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureD3D11", (void *)2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureD3D11", (void *)3);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_GetMirrorTextureGL, 3, FALSE, FALSE);
|
||||
EVRCompositorError (__stdcall *capi_IVRCompositor_017_GetMirrorTextureGL)(EVREye eEye, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_GetMirrorTextureGL(1, (void *)2, (void *)3);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureGL", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_GetMirrorTextureGL", 1);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureGL", (void *)2);
|
||||
check_ptr_parameter("IVRCompositor_017_GetMirrorTextureGL", (void *)3);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_ReleaseSharedGLTexture, 2, FALSE, FALSE);
|
||||
bool (__stdcall *capi_IVRCompositor_017_ReleaseSharedGLTexture)(glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_ReleaseSharedGLTexture(1, (void *)2);
|
||||
check_ptr_parameter("IVRCompositor_017_ReleaseSharedGLTexture", this_ptr_value);
|
||||
check_uint32_parameter("IVRCompositor_017_ReleaseSharedGLTexture", 1);
|
||||
check_ptr_parameter("IVRCompositor_017_ReleaseSharedGLTexture", (void *)2);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_LockGLSharedTextureForAccess, 1, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_LockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_LockGLSharedTextureForAccess((void *)1);
|
||||
check_ptr_parameter("IVRCompositor_017_LockGLSharedTextureForAccess", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_LockGLSharedTextureForAccess", (void *)1);
|
||||
|
||||
init_thunk(t, this_ptr_value, IVRCompositor_017_UnlockGLSharedTextureForAccess, 1, FALSE, FALSE);
|
||||
void (__stdcall *capi_IVRCompositor_017_UnlockGLSharedTextureForAccess)(glSharedTextureHandle_t glSharedTextureHandle) = (void *)t;
|
||||
|
||||
clear_parameters();
|
||||
capi_IVRCompositor_017_UnlockGLSharedTextureForAccess((void *)1);
|
||||
check_ptr_parameter("IVRCompositor_017_UnlockGLSharedTextureForAccess", this_ptr_value);
|
||||
check_ptr_parameter("IVRCompositor_017_UnlockGLSharedTextureForAccess", (void *)1);
|
||||
VirtualFree(t, 0, MEM_RELEASE);
|
||||
}
|
||||
|
||||
void test_capi_thunks_IVRSystem_012(void)
|
||||
{
|
||||
struct thunk *t = alloc_thunks(1);
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ int main(void)
|
|||
test_capi_thunks_IVRSystem_014();
|
||||
test_capi_thunks_IVRCompositor_018();
|
||||
test_capi_thunks_IVROverlay_013();
|
||||
test_capi_thunks_IVRCompositor_017();
|
||||
test_capi_thunks_IVRSystem_012();
|
||||
test_capi_thunks_IVRCompositor_016();
|
||||
test_capi_thunks_IVRSettings_001();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue