CardboardVulkanDistortionRendererTarget
#include <cardboard.h>
Struct to set Vulkan distortion renderer target.
Summary
Public attributes |
|
---|---|
swapchain_image_index
|
uint32_t
The index of the image in the swapchain.
|
vk_command_buffer
|
uint64_t
The command buffer object.
|
vk_render_pass
|
uint64_t
The render pass object that will be used to bind vertex, indices and descriptor set.
|
Public attributes
swapchain_image_index
uint32_t CardboardVulkanDistortionRendererTarget::swapchain_image_index
The index of the image in the swapchain.
This number should NOT exceed the number of images in swapchain. If this number is above the swapchain length, the distortion renderer will stop and return directly.
vk_command_buffer
uint64_t CardboardVulkanDistortionRendererTarget::vk_command_buffer
The command buffer object.
This field holds aVkCommandBuffer value. Maintained by the user and this command buffer should be started before calling the rendering function.
vk_render_pass
uint64_t CardboardVulkanDistortionRendererTarget::vk_render_pass
The render pass object that will be used to bind vertex, indices and descriptor set.
This field holds a VkRenderPass value. Maintained by the user.