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

Function ovr_EndFrame

Revive/REV_CAPI.cpp:906–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906OVR_PUBLIC_FUNCTION(ovrResult) ovr_EndFrame(ovrSession session, long long frameIndex, const ovrViewScaleDesc* viewScaleDesc,
907 ovrLayerHeader const * const * layerPtrList, unsigned int layerCount)
908{
909 REV_TRACE(ovr_EndFrame);
910 MICROPROFILE_META_CPU("End Frame", (int)frameIndex);
911
912 if (!session || !session->Compositor)
913 return ovrError_InvalidSession;
914
915 // Use our own intermediate compositor to convert the frame to OpenVR.
916 return session->Compositor->EndFrame(session, frameIndex, viewScaleDesc, layerPtrList, layerCount);
917}
918
919OVR_PUBLIC_FUNCTION(ovrResult) ovr_SubmitFrame2(ovrSession session, long long frameIndex, const ovrViewScaleDesc* viewScaleDesc,
920 ovrLayerHeader const * const * layerPtrList, unsigned int layerCount)

Callers

nothing calls this directly

Calls 1

EndFrameMethod · 0.80

Tested by

no test coverage detected