Monado OpenXR Runtime
comp_window_direct.h
Go to the documentation of this file.
1// Copyright 2019, Collabora, Ltd.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Common direct mode window code header.
6 * @author Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
7 * @author Jakob Bornecrantz <jakob@collabora.com>
8 * @ingroup comp_main
9 */
10
11#pragma once
12
13#include "main/comp_window.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19
20VkResult
22 VkDisplayKHR display,
23 uint32_t width,
24 uint32_t height);
25
26#ifdef VK_USE_PLATFORM_XLIB_XRANDR_EXT
27
28int
29comp_window_direct_connect(struct comp_target_swapchain *cts, Display **dpy);
30
31VkResult
32comp_window_direct_acquire_xlib_display(struct comp_target_swapchain *cts, Display *dpy, VkDisplayKHR display);
33
34bool
35comp_window_direct_init_swapchain(
36 struct comp_target_swapchain *cts, Display *dpy, VkDisplayKHR display, uint32_t width, uint32_t height);
37
38#endif
39
40
41#ifdef __cplusplus
42}
43#endif
Compositor window header.
VkResult comp_window_direct_create_surface(struct comp_target_swapchain *cts, VkDisplayKHR display, uint32_t width, uint32_t height)
Definition: comp_window_direct.c:173
Wraps and manage VkSwapchainKHR and VkSurfaceKHR, used by Compositor code.
Definition: comp_target_swapchain.h:37