Skip to content

Struct ILLIXR::data_format::vulkan_device_context

ClassList > ILLIXR > data_format > vulkan_device_context

Vulkan device context published to the phonebook by the OpenXR session owner (oxr_interface) for use by other plugins. More...

  • #include <vulkan_context.hpp>

Public Attributes

Type Name
VkDevice device = [**VK\_NULL\_HANDLE**](namespaceILLIXR.md#function-normalize)
VkInstance instance = [**VK\_NULL\_HANDLE**](namespaceILLIXR.md#function-normalize)
VkPhysicalDevice physical_device = [**VK\_NULL\_HANDLE**](namespaceILLIXR.md#function-normalize)
VkQueue queue = [**VK\_NULL\_HANDLE**](namespaceILLIXR.md#function-normalize)
uint32_t queue_family = 0

Detailed Description

On Android + OpenXR the Vulkan device is created by the OpenXR runtime (via xrCreateVulkanDeviceKHR / XR_KHR_vulkan_enable2) and is not accessible through any other ILLIXR service. oxr_interface registers an instance of this struct after create_session() completes; any plugin that needs a VkDevice can call phonebook::lookup_impl<vulkan_device_context>() without any direct dependency on oxr_interface.

The handles are owned by oxr_interface for the lifetime of the XrSession; consumers must not destroy them.

Public Attributes Documentation

variable device

VkDevice ILLIXR::data_format::vulkan_device_context::device;

variable instance

VkInstance ILLIXR::data_format::vulkan_device_context::instance;

variable physical_device

VkPhysicalDevice ILLIXR::data_format::vulkan_device_context::physical_device;

variable queue

VkQueue ILLIXR::data_format::vulkan_device_context::queue;

variable queue_family

uint32_t ILLIXR::data_format::vulkan_device_context::queue_family;


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/include/illixr/data_format/vulkan_context.hpp