| 911 | } |
| 912 | |
| 913 | OVR_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 | |
| 932 | union XrCompositionLayerUnion |
| 933 | { |
no outgoing calls
no test coverage detected