MCPcopy Create free account
hub / github.com/LibreVR/Revive / ovr_BeginFrame

Function ovr_BeginFrame

Revive/REV_CAPI.cpp:894–904  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894OVR_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
906OVR_PUBLIC_FUNCTION(ovrResult) ovr_EndFrame(ovrSession session, long long frameIndex, const ovrViewScaleDesc* viewScaleDesc,
907 ovrLayerHeader const * const * layerPtrList, unsigned int layerCount)

Callers

nothing calls this directly

Calls 2

SetTimingModeMethod · 0.80
BeginFrameMethod · 0.80

Tested by

no test coverage detected