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

Function ovr_GetTextureSwapChainCurrentIndex

Revive/REV_CAPI.cpp:758–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756}
757
758OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetTextureSwapChainCurrentIndex(ovrSession session, ovrTextureSwapChain chain, int* out_Index)
759{
760 REV_TRACE(ovr_GetTextureSwapChainCurrentIndex);
761
762 if (!chain)
763 return ovrError_InvalidParameter;
764
765 MICROPROFILE_META_CPU("Identifier", chain->Identifier);
766 MICROPROFILE_META_CPU("Index", chain->CurrentIndex);
767 *out_Index = chain->CurrentIndex;
768 return ovrSuccess;
769}
770
771OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetTextureSwapChainDesc(ovrSession session, ovrTextureSwapChain chain, ovrTextureSwapChainDesc* out_Desc)
772{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected