pub unsafe extern "C" fn ovr_GetTextureSwapChainCurrentIndex(
    session: ovrSession,
    chain: ovrTextureSwapChain,
    out_Index: *mut c_int
) -> ovrResult
Expand description

Gets the current index in an ovrTextureSwapChain.

in session Specifies an ovrSession previously returned by ovr_Create.

in chain Specifies the ovrTextureSwapChain for which the index should be retrieved.

out out_Index Returns the current (free) index in specified chain.

Returns an ovrResult for which OVR_SUCCESS(result) is false upon error.

see ovr_CreateTextureSwapChainDX, ovr_CreateTextureSwapChainGL, ovr_CreateTextureSwapChainVk