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

Function ovr_SubmitFrame

Revive/REV_CAPI.cpp:948–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946} ovrViewScaleDesc1;
947
948OVR_PUBLIC_FUNCTION(ovrResult) ovr_SubmitFrame(ovrSession session, long long frameIndex, const ovrViewScaleDesc1* viewScaleDesc,
949 ovrLayerHeader const * const * layerPtrList, unsigned int layerCount)
950{
951 if (viewScaleDesc)
952 {
953 ovrViewScaleDesc viewScale;
954 viewScale.HmdToEyePose[ovrEye_Left] = OVR::Posef(session->RenderDesc[ovrEye_Left].HmdToEyePose.Orientation, viewScaleDesc->HmdToEyeOffset[ovrEye_Left]);
955 viewScale.HmdToEyePose[ovrEye_Right] = OVR::Posef(session->RenderDesc[ovrEye_Right].HmdToEyePose.Orientation, viewScaleDesc->HmdToEyeOffset[ovrEye_Right]);
956 viewScale.HmdSpaceToWorldScaleInMeters = viewScaleDesc->HmdSpaceToWorldScaleInMeters;
957 return ovr_SubmitFrame2(session, frameIndex, &viewScale, layerPtrList, layerCount);
958 }
959 return ovr_SubmitFrame2(session, frameIndex, nullptr, layerPtrList, layerCount);
960}
961
962typedef struct OVR_ALIGNAS(4) ovrPerfStatsPerCompositorFrame1_
963{

Callers

nothing calls this directly

Calls 2

PosefClass · 0.70
ovr_SubmitFrame2Function · 0.70

Tested by

no test coverage detected