1 | /* GDK - The GIMP Drawing Kit |
2 | * |
3 | * gdkvulkancontext-x11.h: X11 specific Vulkan wrappers |
4 | * |
5 | * Copyright © 2016 Benjamin Otte |
6 | * |
7 | * This library is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU Library General Public |
9 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. |
11 | * |
12 | * This library is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Library General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU Library General Public |
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
19 | */ |
20 | |
21 | #ifndef __GDK_X11_VULKAN_CONTEXT__ |
22 | #define __GDK_X11_VULKAN_CONTEXT__ |
23 | |
24 | #include "gdkconfig.h" |
25 | |
26 | #ifdef GDK_RENDERING_VULKAN |
27 | |
28 | #define VK_USE_PLATFORM_XLIB_KHR |
29 | |
30 | #include "gdkvulkancontextprivate.h" |
31 | |
32 | G_BEGIN_DECLS |
33 | |
34 | #define GDK_TYPE_X11_VULKAN_CONTEXT (gdk_x11_vulkan_context_get_type ()) |
35 | #define GDK_X11_VULKAN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_X11_VULKAN_CONTEXT, GdkX11VulkanContext)) |
36 | #define GDK_IS_X11_VULKAN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_X11_VULKAN_CONTEXT)) |
37 | #define GDK_X11_VULKAN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_X11_VULKAN_CONTEXT, GdkX11VulkanContextClass)) |
38 | #define GDK_IS_X11_VULKAN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_X11_VULKAN_CONTEXT)) |
39 | #define GDK_X11_VULKAN_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_X11_VULKAN_CONTEXT, GdkX11VulkanContextClass)) |
40 | |
41 | typedef struct _GdkX11VulkanContext GdkX11VulkanContext; |
42 | typedef struct _GdkX11VulkanContextClass GdkX11VulkanContextClass; |
43 | |
44 | struct _GdkX11VulkanContext |
45 | { |
46 | GdkVulkanContext parent_instance; |
47 | }; |
48 | |
49 | struct _GdkX11VulkanContextClass |
50 | { |
51 | GdkVulkanContextClass parent_class; |
52 | }; |
53 | |
54 | GDK_AVAILABLE_IN_ALL |
55 | GType gdk_x11_vulkan_context_get_type (void) G_GNUC_CONST; |
56 | |
57 | G_END_DECLS |
58 | |
59 | #endif /* !GDK_RENDERING_VULKAN */ |
60 | |
61 | #endif /* __GDK_X11_VULKAN_CONTEXT__ */ |
62 | |