| 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) |
| 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 | |
| 919 | OVR_PUBLIC_FUNCTION(ovrResult) ovr_SubmitFrame2(ovrSession session, long long frameIndex, const ovrViewScaleDesc* viewScaleDesc, |
| 920 | ovrLayerHeader const * const * layerPtrList, unsigned int layerCount) |