Function ovr_sys::vulkan::ovr_GetMirrorTextureBufferVk [] [src]

pub unsafe extern "C" fn ovr_GetMirrorTextureBufferVk(
    session: ovrSession,
    mirrorTexture: ovrMirrorTexture,
    out_Image: *mut Image
) -> ovrResult

Get a the underlying mirror Image

in session Specifies an ovrSession previously returned by ovr_Create.

in mirrorTexture Specifies an ovrMirrorTexture previously returned by ovr_CreateMirrorTextureWithOptionsVk

out out_Image Returns the Image pointer retrieved.

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

Example code:

let mut mirror_image = 0;
ovr_GetMirrorTextureBufferVk(session, mirror_texture, &mut mirror_image as *mut _);

// ...

vk.CmdBlitImage(command_buffer, mirror_image, vk::IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, present_image, vk::IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, 1, &region as *const _, vk::FILTER_LINEAR);

// ...

vk.QueuePresentKHR(queue, &present_info as *const _);