1 | /* gdkvulkancontext-wayland.h |
2 | * |
3 | * gdkvulkancontext-wayland.h: Wayland specific Vulkan wrappers |
4 | * |
5 | * Copyright (C) 2017 Georges Basile Stavracas Neto <georges.stavracas@gmail.com> |
6 | * |
7 | * This file is free software; you can redistribute it and/or modify it |
8 | * under the terms of the GNU Lesser General Public License as |
9 | * published by the Free Software Foundation; either version 2 of the |
10 | * License, or (at your option) any later version. |
11 | * |
12 | * This file is distributed in the hope that it will be useful, but |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Lesser General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU General Public License |
18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | */ |
20 | |
21 | #ifndef __GDK_WAYLAND_VULKAN_CONTEXT__ |
22 | #define __GDK_WAYLAND_VULKAN_CONTEXT__ |
23 | |
24 | #include "gdkconfig.h" |
25 | |
26 | #ifdef GDK_RENDERING_VULKAN |
27 | |
28 | #define VK_USE_PLATFORM_WAYLAND_KHR |
29 | |
30 | #include "gdkvulkancontextprivate.h" |
31 | |
32 | G_BEGIN_DECLS |
33 | |
34 | #define GDK_TYPE_WAYLAND_VULKAN_CONTEXT (gdk_wayland_vulkan_context_get_type ()) |
35 | #define GDK_WAYLAND_VULKAN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WAYLAND_VULKAN_CONTEXT, GdkWaylandVulkanContext)) |
36 | #define GDK_IS_WAYLAND_VULKAN_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WAYLAND_VULKAN_CONTEXT)) |
37 | #define GDK_WAYLAND_VULKAN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WAYLAND_VULKAN_CONTEXT, GdkWaylandVulkanContextClass)) |
38 | #define GDK_IS_WAYLAND_VULKAN_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WAYLAND_VULKAN_CONTEXT)) |
39 | #define GDK_WAYLAND_VULKAN_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WAYLAND_VULKAN_CONTEXT, GdkWaylandVulkanContextClass)) |
40 | |
41 | typedef struct _GdkWaylandVulkanContext GdkWaylandVulkanContext; |
42 | typedef struct _GdkWaylandVulkanContextClass GdkWaylandVulkanContextClass; |
43 | |
44 | struct _GdkWaylandVulkanContext |
45 | { |
46 | GdkVulkanContext parent_instance; |
47 | }; |
48 | |
49 | struct _GdkWaylandVulkanContextClass |
50 | { |
51 | GdkVulkanContextClass parent_class; |
52 | }; |
53 | |
54 | GDK_AVAILABLE_IN_ALL |
55 | GType gdk_wayland_vulkan_context_get_type (void) G_GNUC_CONST; |
56 | |
57 | G_END_DECLS |
58 | |
59 | #endif /* !GDK_RENDERING_VULKAN */ |
60 | |
61 | #endif /* __GDK_WAYLAND_VULKAN_CONTEXT__ */ |
62 | |