| 892 | } |
| 893 | |
| 894 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_BeginFrame(ovrSession session, long long frameIndex) |
| 895 | { |
| 896 | REV_TRACE(ovr_BeginFrame); |
| 897 | MICROPROFILE_META_CPU("Begin Frame", (int)frameIndex); |
| 898 | |
| 899 | if (!session || !session->Compositor) |
| 900 | return ovrError_InvalidSession; |
| 901 | |
| 902 | session->Compositor->SetTimingMode(vr::VRCompositorTimingMode_Explicit_ApplicationPerformsPostPresentHandoff); |
| 903 | return session->Compositor->BeginFrame(session, frameIndex); |
| 904 | } |
| 905 | |
| 906 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_EndFrame(ovrSession session, long long frameIndex, const ovrViewScaleDesc* viewScaleDesc, |
| 907 | ovrLayerHeader const * const * layerPtrList, unsigned int layerCount) |
nothing calls this directly
no test coverage detected