109#define FIELD(IDENT) bool has_##IDENT;
113#if defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER)
115 bool emulated_R8G8B8A8_SRGB;
u_logging_level
Logging level enum.
Definition: u_logging.h:40
#define VK_CSCI_FORMATS(THING_COLOR, THING_DS, THING_D, THING_S)
Helper for all of the supported formats to check support for.
Definition: vk_helpers.h:1454
void comp_vulkan_formats_copy_to_info(const struct comp_vulkan_formats *formats, struct xrt_compositor_info *info)
Fills in a xrt_compositor_info struct with the formats listed from a comp_vulkan_formats.
Definition: comp_vulkan.c:409
bool comp_vulkan_init_bundle(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_args, struct comp_vulkan_results *vk_res)
Fully initialises a vk_bundle, by creating instance, device and queue.
Definition: comp_vulkan.c:345
void comp_vulkan_formats_check(struct vk_bundle *vk, struct comp_vulkan_formats *formats)
Fills in a comp_vulkan_formats struct with the supported formats, use comp_vulkan_formats_copy_to_inf...
Definition: comp_vulkan.c:381
void comp_vulkan_formats_log(enum u_logging_level log_level, const struct comp_vulkan_formats *formats)
Logs the formats at info level.
Definition: comp_vulkan.c:427
Arguments to Vulkan bundle initialisation, all args needs setting.
Definition: comp_vulkan.h:27
struct u_string_list * required_instance_extensions
Extensions that the instance is created with.
Definition: comp_vulkan.h:35
bool timeline_semaphore
Should we try to enable timeline semaphores if available.
Definition: comp_vulkan.h:53
int client_gpu_index
Vulkan physical device index for clients to use, -1 for auto.
Definition: comp_vulkan.h:59
bool only_compute_queue
Should we look for a queue with no graphics, only compute.
Definition: comp_vulkan.h:50
uint32_t required_instance_version
Vulkan version that is required.
Definition: comp_vulkan.h:29
struct u_string_list * optional_device_extensions
Extensions that the device is created with.
Definition: comp_vulkan.h:44
enum u_logging_level log_level
Logging level to be set on the vk_bundle.
Definition: comp_vulkan.h:47
struct u_string_list * required_device_extensions
Extensions that the device is created with.
Definition: comp_vulkan.h:41
struct u_string_list * optional_instance_extensions
Extensions that the instance is created with.
Definition: comp_vulkan.h:38
PFN_vkGetInstanceProcAddr get_instance_proc_address
Function to get all Vulkan functions from.
Definition: comp_vulkan.h:32
int selected_gpu_index
Vulkan physical device to be selected, -1 for auto.
Definition: comp_vulkan.h:56
Extra results from Vulkan bundle initialisation.
Definition: comp_vulkan.h:66
xrt_uuid_t client_gpu_deviceUUID
Selected Vulkan device UUID to suggest to clients.
Definition: comp_vulkan.h:77
xrt_uuid_t selected_gpu_deviceUUID
Selected Vulkan device UUID.
Definition: comp_vulkan.h:74
bool client_gpu_deviceLUID_valid
Whether client_gpu_deviceLUID is valid (probably only on Windows)
Definition: comp_vulkan.h:83
xrt_luid_t client_gpu_deviceLUID
The (Windows) LUID for the GPU device suggested for clients.
Definition: comp_vulkan.h:80
int selected_gpu_index
Vulkan physical device selected.
Definition: comp_vulkan.h:68
int client_gpu_index
Vulkan physical device index for clients to use.
Definition: comp_vulkan.h:71
Definition: u_string_list.cpp:19
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition: vk_helpers.h:49
Capabilities and information about the compositor and device together.
Definition: xrt_compositor.h:942
To transport LUIDs between different APIs.
Definition: xrt_defines.h:60
To transport UUIDs between different APIs.
Definition: xrt_defines.h:36
Basic logging functionality.
A collection of strings, like a list of extensions to enable.
Common Vulkan code header.
Header declaring XRT graphics interfaces.