# CardboardVulkanDistortionRendererTarget


`#include <cardboard.h>`

Struct to set Vulkan distortion renderer target.

## Summary

| ### Public attributes ||
|---|---|
| `https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target#struct_cardboard_vulkan_distortion_renderer_target_1a309e7ead979cddb466dabacd770e7dfd` | `uint32_t` The index of the image in the swapchain. |
| `https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target#struct_cardboard_vulkan_distortion_renderer_target_1a14e32c24c035e566b2e8b187c5fefc91` | `uint64_t` The command buffer object. |
| `https://developers.google.com/cardboard/reference/c/struct/cardboard-vulkan-distortion-renderer-target#struct_cardboard_vulkan_distortion_renderer_target_1a5a52719d6c9055315a11769efc26ad7d` | `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 a[VkCommandBuffer value](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkCommandBuffer.html). 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](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkRenderPass.html). Maintained by the user.