Function ovr_sys::vulkan::ovr_GetTextureSwapChainBufferVk [] [src]

pub unsafe extern "C" fn ovr_GetTextureSwapChainBufferVk(
    session: ovrSession,
    chain: ovrTextureSwapChain,
    index: c_int,
    out_Image: *mut Image
) -> ovrResult

Get a specific Image within the chain

in session Specifies an ovrSession previously returned by ovr_Create.

in chain Specifies an ovrTextureSwapChain previously returned by ovr_CreateTextureSwapChainVk

in index Specifies the index within the chain to retrieve. Must be between 0 and length (see ovr_GetTextureSwapChainLength), or may pass -1 to get the buffer at the CurrentIndex location (saving a call to GetTextureSwapChainCurrentIndex).

out out_Image Returns the Image retrieved.

Returns an ovrResult indicating success or failure. In the case of failure, use ovr_GetLastErrorInfo to get more information.