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

Function ovr_GetTextureSwapChainCurrentIndex

ReviveXR/REV_CAPI.cpp:767–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetTextureSwapChainCurrentIndex(ovrSession session, ovrTextureSwapChain chain, int* out_Index)
768{
769 REV_TRACE(ovr_GetTextureSwapChainCurrentIndex);
770
771 if (!chain)
772 return ovrError_InvalidParameter;
773
774 MICROPROFILE_META_CPU("Identifier", PtrToInt(chain->Swapchain));
775 MICROPROFILE_META_CPU("Index", chain->CurrentIndex);
776 *out_Index = chain->CurrentIndex;
777 return ovrSuccess;
778}
779
780OVR_PUBLIC_FUNCTION(ovrResult) ovr_GetTextureSwapChainDesc(ovrSession session, ovrTextureSwapChain chain, ovrTextureSwapChainDesc* out_Desc)
781{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected