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

Function ovr_BeginFrame

ReviveXR/REV_CAPI.cpp:913–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913OVR_PUBLIC_FUNCTION(ovrResult) ovr_BeginFrame(ovrSession session, long long frameIndex)
914{
915 REV_TRACE(ovr_BeginFrame);
916 MICROPROFILE_META_CPU("Begin Frame", (int)frameIndex);
917
918 if (!session)
919 return ovrError_InvalidSession;
920
921 SessionStatusBits status = session->SessionStatus;
922 if (!status.IsVisible)
923 return ovrSuccess_NotVisible;
924
925 assert(frameIndex == (*session->CurrentFrame).frameIndex);
926
927 XrFrameBeginInfo beginInfo = XR_TYPE(FRAME_BEGIN_INFO);
928 CHK_XR(xrBeginFrame(session->Session, &beginInfo));
929 return ovrSuccess;
930}
931
932union XrCompositionLayerUnion
933{

Callers 2

BeginSessionMethod · 0.70
ovr_SubmitFrame2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected