Monado OpenXR Runtime
comp_window_vk_display.c File Reference

Direct mode on PLATFORM_DISPLAY_KHR code. More...

Include dependency graph for comp_window_vk_display.c:

Data Structures

struct  vk_display
 Probed display. More...
 
struct  comp_window_vk_display
 Direct mode "window" into a device, using PLATFORM_DISPLAY_KHR. More...
 

Functions

static void comp_window_vk_display_destroy (struct comp_target *ct)
 
static bool comp_window_vk_display_init (struct comp_target *ct)
 
static struct vk_displaycomp_window_vk_display_current_display (struct comp_window_vk_display *w)
 
static bool comp_window_vk_display_init_swapchain (struct comp_target *ct, uint32_t width, uint32_t height)
 
static struct vk_bundleget_vk (struct comp_target *ct)
 
static void _flush (struct comp_target *ct)
 
static void _update_window_title (struct comp_target *ct, const char *title)
 
struct comp_targetcomp_window_vk_display_create (struct comp_compositor *c)
 
static bool append_vk_display_entry (struct comp_window_vk_display *w, struct VkDisplayPropertiesKHR *disp)
 
static void print_found_displays (struct comp_compositor *c, struct VkDisplayPropertiesKHR *display_props, uint32_t display_count)
 
static bool init_swapchain (struct comp_target_swapchain *cts, VkDisplayKHR display, uint32_t width, uint32_t height)
 
static bool detect (const struct comp_target_factory *ctf, struct comp_compositor *c)
 
static bool create_target (const struct comp_target_factory *ctf, struct comp_compositor *c, struct comp_target **out_ct)
 

Variables

static const char * instance_extensions []
 
const struct comp_target_factory comp_target_factory_vk_display
 

Detailed Description

Variable Documentation

◆ comp_target_factory_vk_display

const struct comp_target_factory comp_target_factory_vk_display
Initial value:
= {
.name = "Vulkan Display Direct-Mode",
.identifier = "vk_display",
.requires_vulkan_for_create = true,
.is_deferred = false,
.required_instance_version = 0,
.required_instance_extensions = instance_extensions,
.required_instance_extension_count = ARRAY_SIZE(instance_extensions),
.optional_device_extensions = NULL,
.optional_device_extension_count = 0,
.detect = detect,
.create_target = create_target,
}
#define ARRAY_SIZE(a)
Array size helper.
Definition: xrt_compiler.h:30

◆ instance_extensions

const char* instance_extensions[]
static
Initial value:
= {
VK_KHR_DISPLAY_EXTENSION_NAME,
}