Function ovr_sys::ovr_GetTextureSwapChainLength
source · pub unsafe extern "C" fn ovr_GetTextureSwapChainLength(
session: ovrSession,
chain: ovrTextureSwapChain,
out_Length: *mut c_int
) -> ovrResult
Expand description
TextureSwapChain creation is rendering API-specific.
ovr_CreateTextureSwapChainDX
, ovr_CreateTextureSwapChainGL
and ovr_CreateTextureSwapChainVk
can be found in the
rendering API-specific headers, such as OVR_CAPI_D3D.h and OVR_CAPI_GL
.h
Gets the number of buffers in an ovrTextureSwapChain
.
in session
Specifies an ovrSession
previously returned by ovr_Create
.
in chain
Specifies the ovrTextureSwapChain
for which the length should be retrieved.
out out_Length
Returns the number of buffers in the specified chain.
Returns an ovrResult
for which OVR_SUCCESS(result)
is false upon error.
see ovr_CreateTextureSwapChainDX
, ovr_CreateTextureSwapChainGL
, ovr_CreateTextureSwapChainVk