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

Function ovr_CommitTextureSwapChain

ReviveXR/REV_CAPI.cpp:792–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792OVR_PUBLIC_FUNCTION(ovrResult) ovr_CommitTextureSwapChain(ovrSession session, ovrTextureSwapChain chain)
793{
794 REV_TRACE(ovr_CommitTextureSwapChain);
795
796 if (!session)
797 return ovrError_InvalidSession;
798
799 if (!chain)
800 return ovrError_InvalidParameter;
801
802 MICROPROFILE_META_CPU("Identifier", PtrToInt(chain->Swapchain));
803 MICROPROFILE_META_CPU("CurrentIndex", chain->CurrentIndex);
804
805 CHK_OVR(chain->Commit(session));
806
807 return ovrSuccess;
808}
809
810OVR_PUBLIC_FUNCTION(void) ovr_DestroyTextureSwapChain(ovrSession session, ovrTextureSwapChain chain)
811{

Callers

nothing calls this directly

Calls 1

CommitMethod · 0.45

Tested by

no test coverage detected